Skip to content

chore(taskfile): Cleanup lint task#315

Open
robertgzr wants to merge 2 commits into
prod-stagingfrom
rgz/chore/linter
Open

chore(taskfile): Cleanup lint task#315
robertgzr wants to merge 2 commits into
prod-stagingfrom
rgz/chore/linter

Conversation

@robertgzr

Copy link
Copy Markdown
Contributor

Determine the config path using a dynamic variable and then only run
additional commands if we are creating the file from builtin
configuration.

This makes it so that for projects which ship their own config, only the
actual linter invocation runs.

Also sets the path-prefix option, to avoid suprises when the config is not
located in the working directory. Golangci interprets paths passed to the
output options as relative to config.

Signed-off-by: Robert Günzler robert@unikraft.cloud

Determine the config path using a dynamic variable and then only run
additional commands if we are creating the file from builtin
configuration.

This makes it so that for projects which ship their own config, only the
actual linter invocation runs.

Also sets the path-prefix option, to avoid suprises when the config is not
located in the working directory. Golangci interprets paths passed to the
output options as relative to config.

Signed-off-by: Robert Günzler <robert@unikraft.cloud>
@robertgzr robertgzr requested review from craciunoiuc and jedevc July 1, 2026 09:49
@jedevc

jedevc commented Jul 1, 2026

Copy link
Copy Markdown
Member

Which projects do we want to actually ship their own config? Shouldn't we try and enforce a consistent style across all projects, instead of allowing customization?

Copy link
Copy Markdown
Contributor Author

Agreed, it would be even better to enforce only the builtin config!

@robertgzr

Copy link
Copy Markdown
Contributor Author

@unikraft-cloud/team-tooling @unikraft-cloud/team-qa any objections to this? does anyone use a repo-local .golangci.yml? agent has one, but it would not be too much work to support the upstream config here

@ajpetersons

Copy link
Copy Markdown
Contributor

@robertgzr

does anyone use a repo-local .golangci.yml? agent has one, but it would not be too much work to support the upstream config here

Integration framework has a custom config, though it's not very indepth

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.

3 participants