Skip to content

Conversation

thanethomson
Copy link
Contributor

Backport of #908 to v0.38.x


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

* add config for depguard

for more info, see https://github.com/OpenPeeDeeP/depguard#example-configs

* fix nakedret

Signed-off-by: Thane Thomson <connect@thanethomson.com>
@thanethomson thanethomson requested a review from a team as a code owner June 5, 2023 19:49
@thanethomson thanethomson mentioned this pull request Jun 5, 2023
3 tasks
@thanethomson thanethomson changed the title fix: lint fail when golangci-lint bump from v1.52.2 to v1.53.x (#908) backport: Fix lint failures on v0.38.x Jun 5, 2023
Copy link
Contributor

@mzabaluev mzabaluev left a comment

Choose a reason for hiding this comment

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

...but then, you have already approved and merged the PR with the same changes against main, so let's not diverge here.

The coding style changes look good.

Comment on lines +45 to +46
depguard:
rules:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't claim I understand the logic behind these exceptions, other than
"grab and override whatever the linter is currently complaining about"...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Afaik depguard is just one of the linters that golangci-lint runs, and this provides explicit configuration for it. See https://github.com/OpenPeeDeeP/depguard

@thanethomson thanethomson merged commit afd742e into v0.38.x Jun 5, 2023
@thanethomson thanethomson deleted the thane/bp/v0.38.x/pr-908-fix-lints branch June 5, 2023 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants