varnamelen
Go analyzer checking that the length of a variable's name matches its usage scope (by blizzy78)
ireturn
Accept Interfaces, Return Concrete Types (by butuzov)
varnamelen | ireturn | |
---|---|---|
1 | 1 | |
14 | 49 | |
- | - | |
3.3 | 7.0 | |
9 months ago | 11 days ago | |
Go | Go | |
MIT 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.
varnamelen
Posts with mentions or reviews of varnamelen.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Newbie to Go, a question
Short variables are a recommended way to define short-lived values, there's also a linter (varnamelen, included in golangci), that helps you detect those cases.
ireturn
Posts with mentions or reviews of ireturn.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-17.
-
Go'ing Insane Part Three: Imperfect Interfaces
Can I highjack a topic? Made a linter recently that will track usage of returned values, just to follow rule return concrete values instead interfaces- ireturn. Can be configurable, can be used with github-actions and will be available with next minor version of golangci-lint.
What are some alternatives?
When comparing varnamelen and ireturn you can also consider the following projects:
nonamedreturns - golang linter to detect named returns
golangci-lint - Fast linters Runner for Go
revive - 🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
go - The Go programming language
wastedassign - Go Linter: finds wasted assignment statements 🗑
GoWrap - GoWrap is a command line tool for generating decorators for Go interfaces
argslen - Go linter that warns about the number of arguments in functions.
go-critic - The most opinionated Go source code linter for code audit.
dockle - Container Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start
guide - The Uber Go Style Guide.