Skip to content

feat: add config for CI linting and code quality improvements #10

feat: add config for CI linting and code quality improvements

feat: add config for CI linting and code quality improvements #10

Triggered via pull request March 6, 2026 19:55
Status Success
Total duration 1m 32s
Artifacts

security.yml

on: pull_request
Vulnerability Scanning
52s
Vulnerability Scanning
Matrix: CodeQL Analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
CodeQL Analysis (go): pkg/tar-diff/analysis.go#L283
redefines-builtin-id: redefinition of the built-in function new (revive)
CodeQL Analysis (go): pkg/tar-diff/analysis.go#L261
superfluous-else: if block ends with a break statement, so drop this else and outdent its block (revive)
CodeQL Analysis (go): pkg/tar-diff/analysis.go#L220
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
CodeQL Analysis (go): pkg/tar-diff/analysis.go#L147
superfluous-else: if block ends with a break statement, so drop this else and outdent its block (revive)
CodeQL Analysis (go): pkg/common/common.go#L2
var-naming: avoid meaningless package names (revive)
CodeQL Analysis (go): pkg/tar-diff/bsdiff.go#L39
cyclomatic complexity 32 of func `bsdiff` is high (> 30) (gocyclo)
CodeQL Analysis (go): pkg/tar-diff/diff.go#L160
ifElseChain: rewrite if-else to switch statement (gocritic)
CodeQL Analysis (go): pkg/tar-diff/bsdiff.go#L325
ifElseChain: rewrite if-else to switch statement (gocritic)
CodeQL Analysis (go): cmd/tar-patch/main.go#L49
exitAfterDefer: log.Fatalf will exit, and `defer func(){...}(...)` will not run (gocritic)
CodeQL Analysis (go): cmd/tar-diff/main.go#L56
exitAfterDefer: log.Fatalf will exit, and `defer func(){...}(...)` will not run (gocritic)
CodeQL Analysis (go)
CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/