https://github.com/guerinoni/argslen
Go linter that warns about the number of arguments in functions.
https://github.com/guerinoni/argslen
arguments function-arguments go golang golangci-lint golint hacktoberfest lint linter
Last synced: 12 months ago
JSON representation
Go linter that warns about the number of arguments in functions.
- Host: GitHub
- URL: https://github.com/guerinoni/argslen
- Owner: guerinoni
- License: mit
- Created: 2021-08-05T21:46:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T07:24:16.000Z (over 1 year ago)
- Last Synced: 2025-03-18T22:35:44.626Z (about 1 year ago)
- Topics: arguments, function-arguments, go, golang, golangci-lint, golint, hacktoberfest, lint, linter
- Language: Go
- Homepage:
- Size: 8.88 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# argslen linter
[](https://github.com/guerinoni/argslen/actions/workflows/CI.yml)
[](https://codecov.io/gh/guerinoni/argslen)
[](https://github.com/guerinoni/argslen/actions/workflows/lint.yml)
[](https://goreportcard.com/report/github.com/guerinoni/argslen)
Argslen is a linter that checks for long list of argument in functions.
The default limit is 5 (`maxArguments`) and skip the test files (`skipTests`), but you can configure these.
## Usage
```zsh
argslen ./... (scan all pkg)
argslen . (scan current pkg)
argslen -maxArguments=2 . (scan currente with max args 2)
argslen -skipTests=true ./... (scan all pkg skipping tests files)
```