Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)
```