-
Notifications
You must be signed in to change notification settings - Fork 843
Enable Go nil pointer linting, and consider other opportunities to improve linting. #32999
Copy link
Copy link
Closed
Labels
#g-security-complianceSecurity & Compliance product groupSecurity & Compliance product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.storyA user story defining an entire featureA user story defining an entire feature~engineering-initiatedEngineering-initiated story, such as a bug, refactor, or contributor experience improvement.Engineering-initiated story, such as a bug, refactor, or contributor experience improvement.~postmortem-action-itemIssue is an action item resulting from an incident postmortem.Issue is an action item resulting from an incident postmortem.
Milestone
Metadata
Metadata
Assignees
Labels
#g-security-complianceSecurity & Compliance product groupSecurity & Compliance product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.storyA user story defining an entire featureA user story defining an entire feature~engineering-initiatedEngineering-initiated story, such as a bug, refactor, or contributor experience improvement.Engineering-initiated story, such as a bug, refactor, or contributor experience improvement.~postmortem-action-itemIssue is an action item resulting from an incident postmortem.Issue is an action item resulting from an incident postmortem.
Type
Projects
Status
Done
Status
Done
Status
Done
Goal
Proposal: Use NilAway with golangci-lint v2 incremental run
--new-from-rev=origin/${{ github.base_ref }}, which would be an additional golangci-lint run.-include-pkgs="github.com/fleetdm/fleet/v4" -test=falseWe would have 2 golangci-lint runs. One catches all issues globally, and one (with a different set of linters) only catching issues on incremental changes. The goal would be to eventually move all linters from the incremental check to the global check.
Evaluate other linters:
fmt\.Print.*(# Do not commit print statements\.)?Roadmap item
Original requests
Context
Changes
Product
Engineering
QA
NA
Test plan
NA