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 | |
---|---|---|
1 | 2 | |
763 | 187 | |
- | - | |
5.6 | 0.0 | |
about 1 month ago | 5 months 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.
-
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:
semgrep-rules-manager - Manager of third-party sources of Semgrep rules 🗂
mimemagic - Powerful and versatile MIME sniffing package using pre-compiled glob patterns, magic number signatures, XML document namespaces, and tree magic for mounted volumes, generated from the XDG shared-mime-info database.
looppointer - An analyzer that checks for pointers to enclosing loop variables.
Chronos - Chronos - A static race detector for the go language
gochk - Static Dependency Analysis Tool for Go Files
go-commentage - How far Go comments drifting behind?
semgrep-rules
freeze - An immutability helper for Go
smrcptr - detect mixing pointer and value method receivers
immcheck
go - The Go programming language