Giter Club home page Giter Club logo

voorhees's Introduction

Voorhees

Voorhees is a program that parses a Go dependency tree to find dependencies that might no longer be maintained.

❯ go list -json -m -u all | voorhees
+-----------------------------------+----------------------------+
|              MODULE               |        LAST UPDATE         |
+-----------------------------------+----------------------------+
| github.com/olekukonko/tablewriter | 13 months ago (2019/12/05) |
| github.com/pkg/errors             | 12 months ago (2020/01/14) |
| github.com/spf13/pflag            | 16 months ago (2019/09/18) |
+-----------------------------------+----------------------------+

usage

go list -json -m -u all | voorhees [flags]

| Flag          | Description                                                               |
| ------------- | ------------------------------------------------------------------------- |
| --config, -c  | Path to the optional config file (default: ./.voorhees.yml)               |
| --help, -h    | Display the help options                                                  |
| --ignore, -i  | Coma separated list of packages to ignore                                 |
| --limit -l    | Number of months after which a dep is considered unmaintained (default 6) |
| --version, -v | Display the version number                                                |

Installation

Github Action

See voorhees-github-action.

voorhees:
  runs-on: ubuntu-latest
  steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-go@v2

    - name: Generate go.list
      run: go list -json -m all > go.list

    - name: Run Voorhees
      uses: Nivl/voorhees-github-action@v1

macOS

brew install Nivl/homebrew-tap/voorhees

Linux and Windows

Download a binary from the Release page.

Docker

go list -json -m all | docker run --rm -i ghcr.io/nivl/voorhees:latest

Latest master

go get -u github.com/Nivl/voorhees

Configration

You can configure each package separatetly using .voorhees.yml.

Example:

version: 1
default:
  limit: 6 months
rules:
  github.com/olekukonko/tablewriter: 52 weeks
  github.com/pkg/errors: 10 months
  github.com/spf13/pflag: skip
  • version: version of the config file (default is and always will be 1 for the current major version of Voorhees).
  • default:
    • limit: Will only report the packages if it hasn't been updated in the last N weeks or month.
  • rules: contains a list of key/values. The keys represents the packages, the value, the rule you want to apply. The value can have any of the following format:
    • ignore: Ignore the package.
    • skip: Alias for ignore.
    • N weeks: Will only report the package if it hasn't been updated in N weeks.
    • N week: Alias for N weeks
    • N months: Will only report the package if it hasn't been updated in N months.
    • N month: Alias for N months.

voorhees's People

Contributors

nivl avatar

Stargazers

Had avatar Romain Sylvian avatar

Watchers

 avatar James Cloos avatar  avatar

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.