Skip to content

Bump golangci lint to last major version and fix static-check errors#30752

Merged
robertsirc merged 11 commits intohelm:mainfrom
benoittgt:bump-golangci-lint-action
Apr 16, 2025
Merged

Bump golangci lint to last major version and fix static-check errors#30752
robertsirc merged 11 commits intohelm:mainfrom
benoittgt:bump-golangci-lint-action

Conversation

@benoittgt
Copy link
Copy Markdown
Contributor

@benoittgt benoittgt commented Apr 14, 2025

What this PR does / why we need it:

Trying to close dependabot auto-update #30706

The update triggered few static-check errors that I fixed. It's grouped by commit for easier review

Special notes for your reviewer:

If applicable:

  • this PR contains user facing changes (the docs needed label should be applied if so)
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Closes: #30706

Close dependabot helm#30706

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
```
WARN The configuration comments are not migrated.
WARN Details about the migration: https://golangci-lint.run/product/migration-guide/
WARN The configuration `run.timeout` is ignored. By default, in v2, the timeout is disabled.
```

I've backported comment and timeout

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
> xinternal/third_party/dep/fs/fs.go:175:3: naked return in func `copyFile` with 59 lines of code (nakedret)

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 14, 2025
@benoittgt benoittgt force-pushed the bump-golangci-lint-action branch from 460fbdd to 6caa1c1 Compare April 14, 2025 09:03
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
@benoittgt benoittgt force-pushed the bump-golangci-lint-action branch from 6caa1c1 to a1c2f47 Compare April 14, 2025 09:11
@@ -1,45 +1,63 @@
version: "2"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only ran the golangci migrate command, then reapply the timeout and the big comment. But that's it.

@benoittgt benoittgt marked this pull request as ready for review April 14, 2025 09:21
Copy link
Copy Markdown
Collaborator

@mattfarina mattfarina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Member

@robertsirc robertsirc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@robertsirc robertsirc merged commit da096e1 into helm:main Apr 16, 2025
5 checks passed
@benoittgt benoittgt deleted the bump-golangci-lint-action branch April 16, 2025 22:28
@scottrigby scottrigby added the bug Categorizes issue or PR as related to a bug. label Nov 5, 2025
@scottrigby scottrigby added this to the 4.0.0 milestone Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Categorizes issue or PR as related to a bug. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants