Skip to content

Commit

Permalink
Refact pkg/parser/node (crowdsecurity#2953)
Browse files Browse the repository at this point in the history
* extract method processFilter()

* extract method processWhitelist()

* lint (whitespace, errors)
  • Loading branch information
mmetc authored Apr 25, 2024
1 parent d2c4bc5 commit c447383
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 81 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
linters-settings:
cyclop:
# lower this after refactoring
max-complexity: 53
max-complexity: 48

gci:
sections:
Expand All @@ -22,7 +22,7 @@ linters-settings:

gocyclo:
# lower this after refactoring
min-complexity: 49
min-complexity: 48

funlen:
# Checks the number of lines in a function.
Expand Down
Loading

0 comments on commit c447383

Please sign in to comment.