Skip to content

refactor: include doublestar #1619

refactor: include doublestar

refactor: include doublestar #1619

Triggered via pull request October 19, 2024 11:15
Status Failure
Total duration 2m 42s
Artifacts 8

ci.yml

on: pull_request
fmt
29s
fmt
lint
26s
lint
backwards-compatibility
1m 2s
backwards-compatibility
artifactcollector (linux)
20s
artifactcollector (linux)
artifactcollector (macos)
21s
artifactcollector (macos)
artifactcollector (win)
2m 24s
artifactcollector (win)
artifactcollector (win2k)
58s
artifactcollector (win2k)
artifactcollector (winxp)
1m 10s
artifactcollector (winxp)
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

24 errors and 11 warnings
lint: doublestar/doublestar.go#L438
`if classRunesLen > 0` has complex nested blocks (complexity: 20) (nestif)
lint: doublestar/doublestar.go#L280
`if doubleStarPattern.MatchString(components[patIdx])` has complex nested blocks (complexity: 6) (nestif)
lint: doublestar/doublestar.go#L48
`if separator == '\\'` has complex nested blocks (complexity: 5) (nestif)
lint: doublestar/doublestar.go#L430
error-return: error should be the last type when returning multiple items (revive)
lint: doublestar/doublestar.go#L178
calculated cyclomatic complexity for function doMatching is 15, max is 10 (cyclop)
lint: doublestar/doublestar.go#L248
calculated cyclomatic complexity for function doGlob is 20, max is 10 (cyclop)
lint: doublestar/doublestar.go#L351
calculated cyclomatic complexity for function matchComponent is 23, max is 10 (cyclop)
lint: doublestar/doublestar.go#L215
naked return in func `doMatching` with 44 lines of code (nakedret)
lint: doublestar/doublestar.go#L261
error is not nil (line 259) but it returns nil (nilerr)
lint: doublestar/doublestar.go#L102
return with no blank line before (nlreturn)
fmt: doublestar/doublestar.go#L102
return statements should not be cuddled if block has more than two lines
fmt: doublestar/doublestar.go#L336
return statements should not be cuddled if block has more than two lines
fmt: doublestar/doublestar.go#L369
only one cuddle assignment allowed before switch statement
fmt: doublestar/doublestar.go#L510
return statements should not be cuddled if block has more than two lines
fmt: doublestar/doublestar.go#L72
assignments should only be cuddled with other assignments
fmt: doublestar/doublestar.go#L98
only one cuddle assignment allowed before if statement
fmt: doublestar/doublestar.go#L450
only one cuddle assignment allowed before if statement
fmt: doublestar/doublestar.go#L464
assignments should only be cuddled with other assignments
fmt: doublestar/doublestar.go#L438
only one cuddle assignment allowed before if statement
fmt: doublestar/doublestar.go#L295
assignments should only be cuddled with other assignments
fmt
Process completed with exit code 1.
test (ubuntu-latest)
Process completed with exit code 2.
test (macos-latest)
Process completed with exit code 2.
test (windows-latest)
Process completed with exit code 2.
artifactcollector (macos)
Restore cache failed: Dependencies file is not found in /Users/runner/work/artifactcollector/artifactcollector. Supported file pattern: go.sum
artifactcollector (linux)
Restore cache failed: Dependencies file is not found in /home/runner/work/artifactcollector/artifactcollector. Supported file pattern: go.sum
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/artifactcollector/artifactcollector. Supported file pattern: go.sum
fmt
Restore cache failed: Dependencies file is not found in /home/runner/work/artifactcollector/artifactcollector. Supported file pattern: go.sum
test (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/artifactcollector/artifactcollector. Supported file pattern: go.sum
test (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/artifactcollector/artifactcollector. Supported file pattern: go.sum
artifactcollector (win2k)
Restore cache failed: Dependencies file is not found in /home/runner/work/artifactcollector/artifactcollector. Supported file pattern: go.sum
backwards-compatibility
Restore cache failed: Dependencies file is not found in D:\a\artifactcollector\artifactcollector. Supported file pattern: go.sum
artifactcollector (winxp)
Restore cache failed: Dependencies file is not found in /home/runner/work/artifactcollector/artifactcollector. Supported file pattern: go.sum
test (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\artifactcollector\artifactcollector. Supported file pattern: go.sum
artifactcollector (win)
Restore cache failed: Dependencies file is not found in D:\a\artifactcollector\artifactcollector. Supported file pattern: go.sum

Artifacts

Produced during runtime
Name Size
artifactcollector (Windows 2000, 32bit)
1.72 MB
artifactcollector (Windows XP, 32bit)
1.59 MB
artifactcollector (linux)
2.52 MB
artifactcollector (macos)
2.38 MB
artifactcollector (windows)
2.78 MB
output linux
2.53 MB
output macos
2.67 MB
output windows
19.1 MB