-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Misspell corrected an imported constant's name. #10
Comments
Hello, your issue is not clear: do you mean that |
Hello @ldez , thank you for the quick response and sorry for the confusion.
|
I understand that can be surprising because it's a constant from another module but misspell checks all the code, neither just comments nor just code "own" by the current module, so the current behavior is expected. The func main() {
//nolint:misspell
fmt.Println(lib.Status_STATUS_CANCELLED)
} |
Hello @ldez , I think there's some miscommunication if the expected behaviour of misspell is to correct any tokens. Because in the Readme it is mentioned explicitly
And it does make sense to have this behaviour as auto-correcting spellings of tokens would easily break our applications. |
The This mode is related to a CLI flag ( I also think that the The current behavior of EDIT: I fixed the documentation (readme and CLI flags) of |
@ldez thanks for the clarification, and the quick responses are much appreciated. I'm closing the thread/issue as I believe it is solved. |
@bnkamalesh I will add an option inside golangci-lint to handle the mode. |
Misspell linter corrected a constant's name which was imported from a protobuff generated package.
The problematic constant name
Status_STATUS_CANCELLED
, was corrected to a single L. This broke our CI as well, becauseautofix: true
is the default setting.Ref:
microsoft/vscode#200638
golang/vscode-go#3087
Below I have provided the configuration of misspell.
p.s: I added the respective word as a config under
ignore-words
as a work around.The text was updated successfully, but these errors were encountered: