-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Disable default golangci-lint exclusions #712
Conversation
@@ -21,6 +21,7 @@ import ( | |||
) | |||
|
|||
const ( | |||
// HostDeviceNetworkCRDName is used for the CRD Kind. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the changes in this PR are adding comments or slightly changing existing comments to meet Go conventions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabling this now and fixing outstanding issues means we'll have a check for comments on packages and exported types in future.
@@ -133,7 +135,7 @@ func main() { | |||
} | |||
// Generate new file full path | |||
outputFile := filepath.Join(*outputDir, strings.Replace(filepath.Base(file), ".template", ".yaml", 1)) | |||
f, err := os.Create(outputFile) | |||
f, err := os.Create(filepath.Clean(outputFile)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's three instances of adding filepath.Clean() to file operations which was caught by the gosec
linter.
7f6ca0e
to
9b0662c
Compare
Hey, add a new line to the PR text to make |
Should we hold this to not get conflict with Alex's PRs? |
Hey, after merging #706 the project layout has changed. Could you rebase your PR? |
Signed-off-by: killianmuldoon <[email protected]>
9b0662c
to
b6d1bd7
Compare
Set
.issues.exclude-use-default: false
to expose new linter findings and fix them.This will enable checking for package comments and comments on exported types going forward.