Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T07:24:16.000Z (5 months ago)
- Last Synced: 2024-10-16T12:05:53.367Z (2 months ago)
- Topics: arguments, function-arguments, go, golang, golangci-lint, golint, hacktoberfest, lint, linter
- Language: Go
- Homepage:
- Size: 8.88 MB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# argslen linter
[![CI](https://github.com/guerinoni/argslen/actions/workflows/CI.yml/badge.svg)](https://github.com/guerinoni/argslen/actions/workflows/CI.yml)
[![codecov](https://codecov.io/gh/guerinoni/argslen/branch/main/graph/badge.svg?token=N5M67KW7KV)](https://codecov.io/gh/guerinoni/argslen)
[![lint](https://github.com/guerinoni/argslen/actions/workflows/lint.yml/badge.svg)](https://github.com/guerinoni/argslen/actions/workflows/lint.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/guerinoni/argslen)](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)
```