warn about function argument count over 5 (#558)

* warn about function argument count over 5
* only on new code
Signed-off-by: Fabian Kammel <fk@edgeless.systems>
This commit is contained in:
Fabian Kammel 2022-11-17 17:31:00 +01:00 committed by GitHub
parent feae4a86bc
commit 1110ccd270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -54,3 +54,4 @@ jobs:
skip-pkg-cache: true
skip-build-cache: true
args: --timeout=15m ${{ steps.submods.outputs.submods }}
only-new-issues: true

View File

@ -46,3 +46,10 @@ linters-settings:
exclude-functions:
- (*go.uber.org/zap.Logger).Sync
- (*google.golang.org/grpc.Server).Serve
revive:
rules:
- name: argument-limit
disabled: false
arguments:
- 5
severity: warning