Improve project structure #14
Annotations
8 errors and 1 warning
Code Analysis:
cmd/adan-bot/profiling.go#L14
cognitive complexity 31 of func `Profile` is high (> 10) (gocognit)
|
Code Analysis:
cmd/adan-bot/main.go#L17
cognitive complexity 11 of func `Main` is high (> 10) (gocognit)
|
Code Analysis:
cmd/adan-bot/profiling.go#L15
`if os.Getenv("TRACE") == "1"` has complex nested blocks (complexity: 5) (nestif)
|
Code Analysis:
cmd/adan-bot/profiling.go#L43
`if os.Getenv("PROFILE_CPU") == "1"` has complex nested blocks (complexity: 5) (nestif)
|
Code Analysis:
cmd/adan-bot/main.go#L25
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
Code Analysis:
cmd/adan-bot/profiling.go#L26
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
Code Analysis:
cmd/adan-bot/profiling.go#L31
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
Code Analysis
Process completed with exit code 2.
|
Set up Go
Restore cache failed: Dependencies file is not found in /home/runner/work/adan-bot/adan-bot. Supported file pattern: go.sum
|
The logs for this run have expired and are no longer available.
Loading