go-ruleguard
Define and run pattern-based custom linting rules. (by quasilyte)
go-mnd
Magic number detector for Go. (by tommy-muehle)
go-ruleguard | go-mnd | |
---|---|---|
2 | 2 | |
814 | 195 | |
0.9% | 1.5% | |
3.8 | 0.0 | |
28 days ago | about 1 year ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-ruleguard
Posts with mentions or reviews of go-ruleguard.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-26.
- Custom Linting Rules in Go
-
Linter for strings ?
You can try https://github.com/quasilyte/go-ruleguard
go-mnd
Posts with mentions or reviews of go-mnd.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-11.
-
strconv.ParseInt(myID, 10, 32) --> avoid magic numbers like '10'
My bad, you can specify what functions should be ignored see issue https://github.com/tommy-muehle/go-mnd/issues/27
-
Runtime immutability checks library
https://github.com/tommy-muehle/go-mnd makes you think a lot about such constants and how you should call them
What are some alternatives?
When comparing go-ruleguard and go-mnd you can also consider the following projects:
smrcptr - detect mixing pointer and value method receivers
go-commentage - How far Go comments drifting behind?
testifylint - The Golang linter that checks usage of github.com/stretchr/testify.
freeze - An immutability helper for Go
gochk - Static Dependency Analysis Tool for Go Files
Chronos - Chronos - A static race detector for the go language