CICD: Add golangci-lint-action to PR pipeline#4058
Merged
tlimoncelli merged 12 commits intoStackExchange:mainfrom Feb 9, 2026
Merged
CICD: Add golangci-lint-action to PR pipeline#4058tlimoncelli merged 12 commits intoStackExchange:mainfrom
tlimoncelli merged 12 commits intoStackExchange:mainfrom
Conversation
129a2a2 to
cb7e89c
Compare
Rename function `new` to `newAutoDNSProvider` to avoid shadowing the predeclared identifier.
Remove unused function `cfCommentAndTagsA`.
Use strings.ReplaceAll instead of strings.Replace with -1.
Omit type from variable declaration where it can be inferred.
Remove redundant embedded field names from selectors.
Apply De Morgan's law to simplify boolean expressions.
Convert if/else chains on single variables to switch statements.
Merge conditional assignments into variable declarations.
cb7e89c to
6e8b53e
Compare
Collaborator
Author
|
This PR is ready for review. 🚀 The New workflow:
Linter configuration (
Code fixes across the codebase:
Not included (per issue description):
|
Contributor
|
Wow! Thanks for all the cleanups and fixes! |
Contributor
|
All tests pass with my creds: #4059 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
golangci-lint-action@v9as a new PR workflow (.github/workflows/pr_lint.yml)..golangci.yml(v2 format) with additional linters:predeclared,godot,asasalint,asciicheck,bidichk,decorder, anddurationcheck.Closes #3313
Test plan
PR: Lintworkflow triggers on this PR.