Skip to content

.github: update to golangci-lint v2#1166

Open
squeed wants to merge 2 commits intocontainernetworking:mainfrom
squeed:bump-golint
Open

.github: update to golangci-lint v2#1166
squeed wants to merge 2 commits intocontainernetworking:mainfrom
squeed:bump-golint

Conversation

@squeed
Copy link
Copy Markdown
Member

@squeed squeed commented Jul 21, 2025

  • change config file
  • bump action and lint version
  • fix minor issues found.

squeed added 2 commits July 21, 2025 17:32
Some more issues picked up by a new version of golangci-lint.

Signed-off-by: Casey Callendrello <c1@caseyc.net>
- change config file
- bump action and lint version

Signed-off-by: Casey Callendrello <c1@caseyc.net>
@squeed squeed requested a review from mmorel-35 July 21, 2025 15:44
@@ -1,30 +1,40 @@
version: "2"
linters:
enable:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Keep the list of used linter visible, only typecheck and maybe ineffassign are not available anymore here. Appart form gofumpt and gci as they are now in formatter section

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i just did golangci-lint migrate and this is exactly what it spit out. I'll take a closer look.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That's exactly why I point it 😉. The migrate tool is noisy on that part

Comment on lines +21 to +24
paths:
- third_party$
- builtin$
- examples$
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove this part as there are no path matching those in the project

Comment on lines +37 to +40
paths:
- third_party$
- builtin$
- examples$
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove this part as there are no path matching those in the project

config_file: .yamllint.yaml

- uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
- uses: golangci/golangci-lint-action@v8
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- uses: golangci/golangci-lint-action@v8
- uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants