go-mnd
Magic number detector for Go. (by tommy-muehle)
go-ruleguard
Define and run pattern-based custom linting rules. (by quasilyte)
go-mnd | go-ruleguard | |
---|---|---|
2 | 1 | |
187 | 763 | |
- | - | |
0.0 | 5.6 | |
4 months ago | 27 days ago | |
Go | Go | |
MIT License | BSD 3-clause "New" or "Revised" 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-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
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
What are some alternatives?
When comparing go-mnd and go-ruleguard you can also consider the following projects:
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.
semgrep-rules-manager - Manager of third-party sources of Semgrep rules 🗂
Chronos - Chronos - A static race detector for the go language
looppointer - An analyzer that checks for pointers to enclosing loop variables.
go-commentage - How far Go comments drifting behind?
gochk - Static Dependency Analysis Tool for Go Files
freeze - An immutability helper for Go
semgrep-rules
immcheck
smrcptr - detect mixing pointer and value method receivers
go - The Go programming language