nonamedreturns
varnamelen
nonamedreturns | varnamelen | |
---|---|---|
2 | 1 | |
24 | 14 | |
- | - | |
5.9 | 3.3 | |
14 days ago | 9 months ago | |
Go | Go | |
GNU General Public License v3.0 only | MIT License |
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.
nonamedreturns
varnamelen
-
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.
What are some alternatives?
argslen - Go linter that warns about the number of arguments in functions.
ireturn - Accept Interfaces, Return Concrete Types
returnstyles - :dark_sunglasses: Golang linter to check function return styles.
revive - 🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
woke - Detect non-inclusive language in your source code.
golangci-lint - Fast linters Runner for Go
reviewdog - 🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
wastedassign - Go Linter: finds wasted assignment statements 🗑
docked - A Dockerfile linting tool
vacuum - vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool. Built in go, it tears through API specs faster than you can think. vacuum is compatible with Spectral rulesets and generates compatible reports.
dockle - Container Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start