feat: add config for CI linting and code quality improvements #10
security.yml
on: pull_request
Vulnerability Scanning
52s
Matrix: CodeQL Analysis
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/
|