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