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:
Rakshith R 2021-04-05 10:14:26 +05:30 committed by mergify[bot]
parent 020cded581
commit 9aea701bd9

View File

@ -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