mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
ci: enable nestif linter
The nestif linter reports deeply nested if statements. This commit enables the nestif linter and sets min-complexity to 7. Closes: #1229 Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
020cded581
commit
9aea701bd9
@ -153,6 +153,8 @@ linters-settings:
|
|||||||
min-complexity: 40
|
min-complexity: 40
|
||||||
dogsled:
|
dogsled:
|
||||||
max-blank-identifiers: 3
|
max-blank-identifiers: 3
|
||||||
|
nestif:
|
||||||
|
min-complexity: 7
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable-all: true
|
enable-all: true
|
||||||
@ -165,7 +167,5 @@ linters:
|
|||||||
- wsl
|
- wsl
|
||||||
- funlen
|
- funlen
|
||||||
- testpackage
|
- testpackage
|
||||||
# TODO: enable nestif, see: https://github.com/ceph/ceph-csi/issues/1229
|
|
||||||
- nestif
|
|
||||||
# TODO: enable goerr113, see: https://github.com/ceph/ceph-csi/issues/1227
|
# TODO: enable goerr113, see: https://github.com/ceph/ceph-csi/issues/1227
|
||||||
- goerr113
|
- goerr113
|
||||||
|
Loading…
Reference in New Issue
Block a user