Skip to content
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

Adjust golangci-lint linters #1058

Merged
merged 5 commits into from
Dec 4, 2024
Merged

Conversation

tpantelis
Copy link
Contributor

Added new linters (some commented out if not needed) and removed deprecated linters. Also addressed violations reported by new linters (in separate commits).

Related to submariner-io/enhancements#231

Added new linters (some commented out if not needed) and removed
deprecated linters.

Related to submariner-io/enhancements#231

Signed-off-by: Tom Pantelis <[email protected]>
- "wrong length assertion. Consider using
  `Expect(t.machineSets).To(BeEmpty(),
      "Unexpected machine sets deleted: %#v", t.machineSets)` instead"
- wrong length assertion. Consider using
     `Expect(machineSetList).To(HaveLen(1))` instead

Signed-off-by: Tom Pantelis <[email protected]>
"for loop can be changed to use an integer range"

Signed-off-by: Tom Pantelis <[email protected]>
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr1058/tpantelis/adj_linters

@tpantelis tpantelis requested a review from aswinsuryan December 2, 2024 15:52
"fmt.Sprintf can be replaced with string concatenation"

Signed-off-by: Tom Pantelis <[email protected]>
@tpantelis
Copy link
Contributor Author

@aswinsuryan Please review

@tpantelis tpantelis enabled auto-merge (rebase) December 4, 2024 02:37
@tpantelis tpantelis merged commit 907b4d3 into submariner-io:devel Dec 4, 2024
16 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr1058/tpantelis/adj_linters]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants