Skip to content

refactor: include doublestar #1620

refactor: include doublestar

refactor: include doublestar #1620

Triggered via pull request October 19, 2024 11:17
@cugucugu
synchronize #170
doublestar
Status Failure
Total duration 2m 27s
Artifacts 8

ci.yml

on: pull_request
fmt
32s
fmt
lint
18s
lint
backwards-compatibility
1m 19s
backwards-compatibility
artifactcollector (linux)
20s
artifactcollector (linux)
artifactcollector (macos)
21s
artifactcollector (macos)
artifactcollector (win)
2m 14s
artifactcollector (win)
artifactcollector (win2k)
57s
artifactcollector (win2k)
artifactcollector (winxp)
1m 4s
artifactcollector (winxp)
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 11 warnings
lint: doublestar/doublestar.go#L471
`if classRunesLen > 0` has complex nested blocks (complexity: 20) (nestif)
lint: doublestar/doublestar.go#L293
`if doubleStarPattern.MatchString(components[patIdx])` has complex nested blocks (complexity: 6) (nestif)
lint: doublestar/doublestar.go#L49
`if separator == '\\'` has complex nested blocks (complexity: 5) (nestif)
lint: doublestar/doublestar.go#L185
calculated cyclomatic complexity for function doMatching is 15, max is 10 (cyclop)
lint: doublestar/doublestar.go#L259
calculated cyclomatic complexity for function doGlob is 20, max is 10 (cyclop)
lint: doublestar/doublestar.go#L372
calculated cyclomatic complexity for function matchComponent is 23, max is 10 (cyclop)
lint: doublestar/doublestar.go#L225
naked return in func `doMatching` with 48 lines of code (nakedret)
lint: doublestar/doublestar.go#L272
error is not nil (line 270) but it returns nil (nilerr)
lint: doublestar/doublestar.go#L278
return with no blank line before (nlreturn)
lint
issues found
fmt: collector/collector_test.go#L229
block should not end with a whitespace (or comment)
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.
lint
Restore cache failed: Dependencies file is not found in /home/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
artifactcollector (macos)
Restore cache failed: Dependencies file is not found in /Users/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
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
backwards-compatibility
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) Expired
1.72 MB
artifactcollector (Windows XP, 32bit) Expired
1.59 MB
artifactcollector (linux) Expired
2.52 MB
artifactcollector (macos) Expired
2.38 MB
artifactcollector (windows) Expired
2.78 MB
output linux Expired
2.53 MB
output macos Expired
2.67 MB
output windows Expired
19.1 MB