Dormant is a go.mod dependencies analyzing tool. Find out which of your used dependencies are actively, inactively or sporadically maintained.
- Table of content
- Installation
- Usage
- Overview
- Changing Default Values
- Upcoming Features
- How To Contribute
- Bugs
- License
Install:
go install github.com/iljaSL/dormant@latest
Run:
$GOPATH/dormant
Note: If you encounter an error while trying to run dormant with the message it cannot be found or is not defined, you may need to add ~/go/bin to your $GOPATH (MacOS/Linux), or %HOME%\go\bin (Windows).
CLI Overview
dormant --help
Inspect Dependencies inside a go.mod
file:
dormant inspect go.mod
Dormant is using GitHub's REST API, in particular this endpoint here, https://docs.github.com/en/rest/reference/commits, in order to retrieve the information needed. GitHub does not require an authentication for this endpoint, but it comes with a rate limit in how many times you can call the API with your IP address, the rate limit allows you to make up to 10 requests per minute.
The authenticated requests feature will come in the near future. This feature will also allow to inspect Dependencies on GitLab, which Dormant is not supporting at the moment.
By default Dormant is set to determine an inactive dependency which has
not been updated for more than 6 months and an sporadic status for a dependency
which has been updated in a period between 4 and 6 months. Everything under 4 months
is actively maintained according to Dormant's default settings.
This default values can bee changed by creating a file called .dormant.yaml
inside the Home Directory.
~ cat .dormant.yaml
inactivityDuration: 12
sporadicDuration: 6
Dormant is automatically parsing the Home Directory for the .dormant.yaml
file,
a special command to use the env file is not needed.
- Authenticated requests for GitHub
- Option for analyzing only the Direct Dependencies
- Dependencies Health Percentage
- Fancy HTML Report
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Added some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
If you experience any problems, please let me know by creating a new issue.
Dormant is released under the MIT license. See LICENSE