Skip to content

backport: Fix lint failures on v0.38.x - #922

Merged
thanethomson merged 1 commit into
v0.38.xfrom
thane/bp/v0.38.x/pr-908-fix-lints
Jun 5, 2023
Merged

thanethomson merged 1 commit into
v0.38.xfrom
thane/bp/v0.38.x/pr-908-fix-lints

Conversation

@thanethomson

Copy link
Copy Markdown
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

@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

@mzabaluev mzabaluev left a comment

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.

...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 thread .golangci.yml
Comment on lines +45 to +46
depguard:
rules:

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.

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

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.

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