You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add golangci-lint with CI integration and fix all lint issues
Add .golangci.yml (v2 format) with pragmatic linter config and
golangci-lint-action step to CI workflow. Fix 70 lint issues across
the codebase: errcheck for unchecked returns, errorlint for proper
error wrapping, octal literal modernization, misspellings, prealloc
suggestions, if-else to switch conversions, and removal of unused
color variables.
Copy file name to clipboardExpand all lines: pkg/cli/build.go
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -42,12 +42,12 @@ Examples:
42
42
}
43
43
44
44
var (
45
-
buildPolicyFilestring
46
-
buildOutputstring
47
-
buildNamespacestring
48
-
buildDryRunbool
49
-
buildDefaultDenybool
50
-
buildCheckSelectorsbool
45
+
buildPolicyFilestring
46
+
buildOutputstring
47
+
buildNamespacestring
48
+
buildDryRunbool
49
+
buildDefaultDenybool
50
+
buildCheckSelectorsbool
51
51
)
52
52
53
53
funcinit() {
@@ -58,7 +58,7 @@ func init() {
58
58
buildCmd.Flags().BoolVar(&buildDefaultDeny, "default-deny", true, "Generate default-deny policy for each namespace (recommended)")
59
59
buildCmd.Flags().BoolVar(&buildCheckSelectors, "check-selectors", false, "Query cluster to warn about selectors that don't match running pods/namespaces")
0 commit comments