Skip to content

Improve project structure #14

Improve project structure

Improve project structure #14

Triggered via pull request December 21, 2023 18:39
Status Failure
Total duration 1m 37s
Artifacts

ci.yml

on: pull_request
Matrix: Integration
Build Image for Deployment
0s
Build Image for Deployment
Fit to window
Zoom out
Zoom in

Annotations

17 errors and 2 warnings
Integration (ubuntu-latest, 1.21): cmd/adan-bot/profiling.go#L14
cognitive complexity 31 of func `Profile` is high (> 10) (gocognit)
Integration (ubuntu-latest, 1.21): cmd/adan-bot/main.go#L17
cognitive complexity 11 of func `Main` is high (> 10) (gocognit)
Integration (ubuntu-latest, 1.21): cmd/adan-bot/profiling.go#L15
`if os.Getenv("TRACE") == "1"` has complex nested blocks (complexity: 5) (nestif)
Integration (ubuntu-latest, 1.21): cmd/adan-bot/profiling.go#L43
`if os.Getenv("PROFILE_CPU") == "1"` has complex nested blocks (complexity: 5) (nestif)
Integration (ubuntu-latest, 1.21): cmd/adan-bot/main.go#L25
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Integration (ubuntu-latest, 1.21): cmd/adan-bot/profiling.go#L26
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Integration (ubuntu-latest, 1.21): cmd/adan-bot/profiling.go#L31
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Integration (ubuntu-latest, 1.21)
Process completed with exit code 2.
Integration (ubuntu-latest, 1.20)
The job was canceled because "ubuntu-latest_1_21" failed.
Integration (ubuntu-latest, 1.20): cmd/adan-bot/profiling.go#L14
cognitive complexity 31 of func `Profile` is high (> 10) (gocognit)
Integration (ubuntu-latest, 1.20): cmd/adan-bot/main.go#L17
cognitive complexity 11 of func `Main` is high (> 10) (gocognit)
Integration (ubuntu-latest, 1.20): cmd/adan-bot/profiling.go#L15
`if os.Getenv("TRACE") == "1"` has complex nested blocks (complexity: 5) (nestif)
Integration (ubuntu-latest, 1.20): cmd/adan-bot/profiling.go#L43
`if os.Getenv("PROFILE_CPU") == "1"` has complex nested blocks (complexity: 5) (nestif)
Integration (ubuntu-latest, 1.20): cmd/adan-bot/main.go#L25
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Integration (ubuntu-latest, 1.20): cmd/adan-bot/profiling.go#L26
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Integration (ubuntu-latest, 1.20): cmd/adan-bot/profiling.go#L31
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Integration (ubuntu-latest, 1.20)
The operation was canceled.
Integration (ubuntu-latest, 1.21)
Restore cache failed: Dependencies file is not found in /home/runner/work/adan-bot/adan-bot. Supported file pattern: go.sum
Integration (ubuntu-latest, 1.20)
Restore cache failed: Dependencies file is not found in /home/runner/work/adan-bot/adan-bot. Supported file pattern: go.sum