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

Ignore misspellings in variable names if correction contains a colon #151

Open
leonklingele opened this issue Jan 29, 2019 · 1 comment
Open

Comments

@leonklingele
Copy link

I ran this tool against the Go source:

cmd/compile/internal/ssa/compile.go:278:1:warning: "alltime" is a misspelling of "all-time" (misspell)
cmd/compile/internal/ssa/compile.go:283:3:warning: "alltime" is a misspelling of "all-time" (misspell)
cmd/compile/internal/ssa/compile.go:337:12:warning: "alltime" is a misspelling of "all-time" (misspell)

alltime in this case is a variable and as variables are not allowed to contain colons, this warning should not be issued.

Are there any other cases when the correction is not applicable?

@mwat56
Copy link

mwat56 commented Aug 12, 2019

@leonklingele

alltime in this case is a variable and as variables are not allowed to contain colons, this warning should not be issued.

Use CamelCase instead.

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

No branches or pull requests

2 participants