mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
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:
parent
feae4a86bc
commit
1110ccd270
1
.github/workflows/test-lint.yml
vendored
1
.github/workflows/test-lint.yml
vendored
@ -54,3 +54,4 @@ jobs:
|
|||||||
skip-pkg-cache: true
|
skip-pkg-cache: true
|
||||||
skip-build-cache: true
|
skip-build-cache: true
|
||||||
args: --timeout=15m ${{ steps.submods.outputs.submods }}
|
args: --timeout=15m ${{ steps.submods.outputs.submods }}
|
||||||
|
only-new-issues: true
|
||||||
|
@ -46,3 +46,10 @@ linters-settings:
|
|||||||
exclude-functions:
|
exclude-functions:
|
||||||
- (*go.uber.org/zap.Logger).Sync
|
- (*go.uber.org/zap.Logger).Sync
|
||||||
- (*google.golang.org/grpc.Server).Serve
|
- (*google.golang.org/grpc.Server).Serve
|
||||||
|
revive:
|
||||||
|
rules:
|
||||||
|
- name: argument-limit
|
||||||
|
disabled: false
|
||||||
|
arguments:
|
||||||
|
- 5
|
||||||
|
severity: warning
|
||||||
|
Loading…
Reference in New Issue
Block a user