Skip to content

fix: resolve linting issues and improve code quality #4

fix: resolve linting issues and improve code quality

fix: resolve linting issues and improve code quality #4

Triggered via push October 3, 2025 07:17
Status Failure
Total duration 28s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Lint: main.go#L416
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"permission denied. Try: sudo commitgen install\")" (err113)
Lint: main.go#L362
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unsupported provider: %s\", provider)" (err113)
Lint: main.go#L311
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"no untracked files found\")" (err113)
Lint: main.go#L249
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"no changes found\")" (err113)
Lint: main.go#L195
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"no staged files found\")" (err113)
Lint: main.go#L142
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"no changes found to analyze\")" (err113)
Lint: main.go#L134
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unknown mode: %s\", mode)" (err113)
Lint: main.go#L120
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"not in a git repository\")" (err113)
Lint: utils_test.go#L71
cyclomatic complexity 17 of func `TestProviderValidation` is high (> 15) (gocyclo)
Lint: main.go#L165
Error return value of `fmt.Scanln` is not checked (errcheck)
Lint
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0pXjfaAAAAADJAZtoJLrHSqr4+AcpTrMqQlkzRURHRTAyMjEARWRnZQ==
Lint
Failed to restore: Cache service responded with 400