Skip to content

ci(lint): enable errorlint linter on cmd#12898

Merged
roidelapluie merged 1 commit intoprometheus:mainfrom
mmorel-35:lint/errorlint
Sep 29, 2023
Merged

ci(lint): enable errorlint linter on cmd#12898
roidelapluie merged 1 commit intoprometheus:mainfrom
mmorel-35:lint/errorlint

Conversation

@mmorel-35
Copy link
Copy Markdown
Contributor

@mmorel-35 mmorel-35 commented Sep 28, 2023

This enables errorlint on cmd package and disables it for discovery, model, scrape, storage, tsdb, util, web folders.
It will help to apply it step by step.

Signed-off-by: Matthieu MOREL [email protected]

@mmorel-35 mmorel-35 requested a review from dgl as a code owner September 28, 2023 08:22
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
cache: false
Copy link
Copy Markdown
Contributor Author

@mmorel-35 mmorel-35 Sep 28, 2023

Choose a reason for hiding this comment

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

There is another cache handled by golangci-lint. This avoid errors when they both try to retrieve their contents.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We could have that in a comment in the yaml file.

@roidelapluie roidelapluie merged commit a56e5a1 into prometheus:main Sep 29, 2023
@roidelapluie
Copy link
Copy Markdown
Member

Thanks!

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.

2 participants