Skip to content

firewall: fix linter complaints#2997

Merged
stgraber merged 1 commit intolxc:mainfrom
J0nasDotDev:chore/2636/golangci-lint-internal-server-firewall
Mar 3, 2026
Merged

firewall: fix linter complaints#2997
stgraber merged 1 commit intolxc:mainfrom
J0nasDotDev:chore/2636/golangci-lint-internal-server-firewall

Conversation

@J0nasDotDev
Copy link
Copy Markdown
Contributor

This PR relates to #2636 and address the lint issues in internal/server/firewall/....

@J0nasDotDev J0nasDotDev force-pushed the chore/2636/golangci-lint-internal-server-firewall branch from d100b09 to 76a53ac Compare March 2, 2026 22:00
@J0nasDotDev J0nasDotDev marked this pull request as ready for review March 2, 2026 22:06
@J0nasDotDev J0nasDotDev requested a review from stgraber as a code owner March 2, 2026 22:06
@stgraber
Copy link
Copy Markdown
Member

stgraber commented Mar 2, 2026

Checking that functional blocks are followed by newlines...
internal/server/firewall/drivers/drivers_xtables.go:396
internal/server/firewall/drivers/drivers_xtables.go:415
internal/server/firewall/drivers/drivers_xtables.go:710

@J0nasDotDev J0nasDotDev force-pushed the chore/2636/golangci-lint-internal-server-firewall branch from 76a53ac to 71439fa Compare March 2, 2026 23:41
@J0nasDotDev
Copy link
Copy Markdown
Contributor Author

I added newlines after the functional blocks.

Is it expected that there is no configured linter or formatter that enforces this rule?

@stgraber
Copy link
Copy Markdown
Member

stgraber commented Mar 3, 2026

Is it expected that there is no configured linter or formatter that enforces this rule?

Yeah. It's only pretty recently that wsl can handle this particular one and we haven't yet switched the check over to it.

@stgraber stgraber merged commit ab1e936 into lxc:main Mar 3, 2026
54 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants