refactor: include doublestar #1619
Annotations
10 errors and 1 warning
doublestar/doublestar.go#L438
`if classRunesLen > 0` has complex nested blocks (complexity: 20) (nestif)
|
doublestar/doublestar.go#L280
`if doubleStarPattern.MatchString(components[patIdx])` has complex nested blocks (complexity: 6) (nestif)
|
doublestar/doublestar.go#L48
`if separator == '\\'` has complex nested blocks (complexity: 5) (nestif)
|
doublestar/doublestar.go#L430
error-return: error should be the last type when returning multiple items (revive)
|
doublestar/doublestar.go#L178
calculated cyclomatic complexity for function doMatching is 15, max is 10 (cyclop)
|
doublestar/doublestar.go#L248
calculated cyclomatic complexity for function doGlob is 20, max is 10 (cyclop)
|
doublestar/doublestar.go#L351
calculated cyclomatic complexity for function matchComponent is 23, max is 10 (cyclop)
|
doublestar/doublestar.go#L215
naked return in func `doMatching` with 44 lines of code (nakedret)
|
doublestar/doublestar.go#L261
error is not nil (line 259) but it returns nil (nilerr)
|
doublestar/doublestar.go#L102
return with no blank line before (nlreturn)
|
|
This job failed
Loading