-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Off-by-one diagnostic #595
Comments
That diagnostic gets reported because of the trailing period in |
Just to be really clear, the diagnostic itself is expected. The range it returns is out of bounds. |
Ah, gotcha. RuboCop uses 1-based lines and columns, and there's a branch in the reporter that doesn't account for it. I'll fix it in a patch. |
Released in v0.47.2. |
After a little digging, I've discovered that the following document will produce a diagnostic with a position that is 1 character past the end of the last line. Something with the line being empty matters here. If it is a single space, things are ok.
The diagnostic is:
rubocop.yml
The text was updated successfully, but these errors were encountered: