mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +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
|
||||
dogsled:
|
||||
max-blank-identifiers: 3
|
||||
nestif:
|
||||
min-complexity: 7
|
||||
|
||||
linters:
|
||||
enable-all: true
|
||||
@ -165,7 +167,5 @@ linters:
|
||||
- wsl
|
||||
- funlen
|
||||
- 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
|
||||
- goerr113
|
||||
|
Loading…
Reference in New Issue
Block a user