Skip to content

Chore: Remove unnecessary typecheck linter config #89198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Chore: Remove unnecessary typecheck linter config #89198

merged 1 commit into from
Jul 3, 2024

Conversation

zeghong
Copy link
Contributor

@zeghong zeghong commented Jun 14, 2024

What is this feature?

This removes unnecessary typecheck linter setting from .golangci.toml.

Why do we need this feature?

The typecheck linter has been removed from linter list as of golangci-lint v1.54.0 (See Changelog).

As they stated in FAQ, "typecheck is not a linter", so activation of typecheck is enforced. Therefore, the setting in [linters] section is unnecessary. (Also, there are duplicate items in the list.)

For more explanation and technical detail:

@zeghong zeghong requested a review from a team as a code owner June 14, 2024 03:47
@grafana-pr-automation grafana-pr-automation bot added the pr/external This PR is from external contributor label Jun 14, 2024
@hairyhenderson
Copy link
Member

Thanks for the PR @zeghong - can you please rebase? The linter config has been updated recently.

@zeghong zeghong closed this Jun 20, 2024
@zeghong zeghong reopened this Jun 20, 2024
@zeghong
Copy link
Contributor Author

zeghong commented Jun 20, 2024

@hairyhenderson Sorry for the late reply, I've rebase the branch

@hairyhenderson hairyhenderson added the no-changelog Skip including change in changelog/release notes label Jun 23, 2024
@hairyhenderson hairyhenderson added this to the 11.2.x milestone Jun 23, 2024
@hairyhenderson hairyhenderson enabled auto-merge (squash) June 23, 2024 15:37
auto-merge was automatically disabled June 25, 2024 07:17

Head branch was pushed to by a user without write access

@hairyhenderson hairyhenderson enabled auto-merge (squash) June 25, 2024 17:54
@zeghong
Copy link
Contributor Author

zeghong commented Jul 2, 2024

@hairyhenderson Sorry to bother you, is this pull request ready to be merged?

@hairyhenderson
Copy link
Member

@zeghong sorry, this fell through the cracks... Something went wrong with CI. I'll kick it.

@hairyhenderson hairyhenderson merged commit edc1f50 into grafana:main Jul 3, 2024
11 checks passed
@zeghong zeghong deleted the remove-typecheck-linter branch July 4, 2024 09:10
@aangelisc aangelisc modified the milestones: 11.2.x, 11.2.0 Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Skip including change in changelog/release notes pr/external This PR is from external contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants