GithubHelp home page GithubHelp logo

brompwnie / gocheckit Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 2.0 24 KB

A Go tool to help identify Deprecated Go Modules.

License: GNU General Public License v3.0

Go 81.41% Makefile 18.59%
go modules deprecated tool

gocheckit's Introduction

Gocheckit

Gocheckit is a Go tool that can be used to help identify Go modules that are potentially Deprecated.

What does it do?

Gocheckit uses your go.mod in JSON format and analyzes the modules to determine if they might be deprecated. It does the following:

  • Check a Go modules Github repo for any Deprecated Topics
  • Analyze the contents of a modules README for the presence of certain keywords i.e deprecated
  • Utilise your .netrc Github creds so you aren't throttled and can access Private Repos
  • It's multithreaded, if you're in a rush, use those cores!

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

Via Go

go get github.com/brompwnie/gocheckit

Building from source

Building Gocheckit via Go:

go build

Building Gocheckit via Make:

make

Usage

Gocheckit can be compiled into a binary for the targeted platform and supports the following usage

Usage of ./gocheckit:
  -gomod string
        go.mod JSON file to analyze. Run 'go mod edit -json' to get the JSON for your go.mod (default "go.m
od.json")
  -netrc string
        Makes Gocheckit scan the provided '.netrc' file in the user's home directory for login name and pas
sword. (default "nil")
  -repo string
        Repo to analyze (default "nil")
  -threads int
        Amount of threads to spawn. (default 5)
  -verbose
        Verbosity Level

Example

Simplest Usage

// Run this command to get your go modules in json format
# go mod edit -json > go.mod.json
// Run gocheckit to analyze the go modules in the file go.mod.json
# ./gocheckit
[+] Go Checkit
[*] Loading Modules from: go.mod.json
[*] 11 Modules Loaded
[!] Deprecated README Identified: github.com/bsm/sarama-cluster
[!] Deprecated Topic Identified: github.com/bsm/sarama-cluster
[!] Deprecated README Identified: github.com/uudashr/go-module

Throw some threads at the problem

# go mod edit -json > go.mod.json
# ./gocheckit -threads=10
[+] Go Checkit
[*] Loading Modules from: go.mod.json
[*] 11 Modules Loaded
[!] Deprecated README Identified: github.com/bsm/sarama-cluster
[!] Deprecated Topic Identified: github.com/bsm/sarama-cluster
[!] Deprecated README Identified: github.com/uudashr/go-module

User your Github creds from .netrc for no throttling

# go mod edit -json > go.mod.json
# ./gocheckit -threads=10 -netrc=.netrc
[+] Go Checkit
[*] Loading Modules from: go.mod.json
[*] 11 Modules Loaded
[!] Deprecated README Identified: github.com/bsm/sarama-cluster
[!] Deprecated Topic Identified: github.com/bsm/sarama-cluster
[!] Deprecated README Identified: github.com/uudashr/go-module

Issues, Bugs and Improvements

For any bugs, please submit an issue. There is a long list of improvements but please submit an Issue if there is something you want to see added to Gocheckit.

License

Gocheckit is licensed under the GNU General Public License v3.0

gocheckit's People

Contributors

brompwnie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sasqwatch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.