Skip to content

server util: fix linter complaints#3000

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

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

Conversation

@J0nasDotDev
Copy link
Copy Markdown
Contributor

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

@J0nasDotDev J0nasDotDev requested a review from stgraber as a code owner March 3, 2026 01:13
@J0nasDotDev J0nasDotDev changed the title server util: fix linter complaints - #2636 server util: fix linter complaints Mar 3, 2026
@stgraber
Copy link
Copy Markdown
Member

stgraber commented Mar 3, 2026

Instead of nolint for the packages named public, it's probably better to ignore the specific error as we've done within incus-os.

See: https://github.com/lxc/incus-os/blob/main/incus-osd/.golangci.yml#L89

@J0nasDotDev J0nasDotDev force-pushed the chore/2636/golangci-lint-internal-server-util branch from 98f965f to cfc2412 Compare March 3, 2026 19:01
Comment on lines +78 to +79
- path: internal/server/util/
text: "avoid meaningless package names"
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.

@stgraber Indeed, it's way better to adapt golangci-lint config file.
It was a rather lazy approach on my part to 'nolint' the name of the package.

@stgraber stgraber merged commit f5293ff into lxc:main Mar 3, 2026
92 of 108 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