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
[Bug] Not enough whitespace after ... mark is recognized as new variable #460
Comments
Yeah, I think this rule should not be reported. The cause here is actually what you wrote ("not-enough-whitespace-after-newline-marker") so I tihnk this should be reported. Also, it would be nice to have this as a Token, to be able to catch it easier. Do you remember which token is it (this new line marker)? |
|
So there are two tasks a) make duplicated-variable immune to ... not enough whitespace b) export not-enough-whitespace-after-newline-marker to spacing rules and match more cases (keywords, variables, imports, settings). |
What about involving @pekkaklarck into it? Maybe something on the parsing side can be improved about it? |
Also (space before ...) -> I it's also reported as not left aligned variable (which is fine):
|
Parsing already detects the error. It notices that Error handling in parsing could be enhanced to handle this particular case a bit better, though. We could report a slightly different error if the name starts with
after the current message. |
It doesnt matter for us since we will add extra parsing and deal with reporting the issue but it would be certainly good addition for RF users if they encounter such problem. |
Feel free to submit issues, and PRs, about error messages that can be enhanced! |
This code:
produces:
I think it should rather be catched by "not-enough-whitespace-after-newline-marker" rule (but it's keyword naming rule.. maybe we should export it to be general rule checking all statements that starts from the beginning of line and contains ...?)
The text was updated successfully, but these errors were encountered: