Skip to content
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

*: Enable the misspell linter #10680

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

timflannagan
Copy link
Member

Description

Quick PR that enables a linter that catches spelling mistakes. Follow-up to #10650 and related to #10496.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Signed-off-by: timflannagan <[email protected]>
@timflannagan timflannagan changed the title Enable the misspell linter *: Enable the misspell linter Feb 21, 2025
@@ -42,7 +42,7 @@ func NewPerClientEnvoyEndpoints(
glooEndpoints krt.Collection[ir.EndpointsForUpstream],
translateEndpoints func(kctx krt.HandlerContext, ucc ir.UniqlyConnectedClient, ep ir.EndpointsForUpstream) (*envoy_config_endpoint_v3.ClusterLoadAssignment, uint64),
) PerClientEnvoyEndpoints {
clas := krt.NewManyCollection(glooEndpoints, func(kctx krt.HandlerContext, ep ir.EndpointsForUpstream) []UccWithEndpoints {
Copy link
Member Author

Choose a reason for hiding this comment

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

I could add this variable to the allowlist since the linter was complaining it was a misspell of "class" but I decided to rename it.

@timflannagan
Copy link
Member Author

Linter documentation: https://golangci-lint.run/usage/linters/#misspell.

@nfuden
Copy link
Contributor

nfuden commented Feb 21, 2025

I think its almost inevitable that we hit something that is technically a misspelling but is based on a tech or real reference.

Would you mind adding an example ignored word such as via the ignore setup seen here golangci/golangci-lint@353cd2c

It can even be a silly non-sense word but serves as a plcaholder

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