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

Get correct line_number in commas_linter #129

Merged
merged 2 commits into from
Dec 29, 2015

Conversation

saurfang
Copy link
Contributor

This is related to #111. It looks like the root cause is that when there is empty line(s), the parsed results' row number (id) is different from line number, which is provided in the names.

I also find it more intuitive for the missing space after lint to have position to be after comma so it is as easy as to press space to take the advice in RStudio for example. Hope you are okay with this change and me jamming it in this PR.

@jimhester
Copy link
Member

Looks great to me, thanks!

jimhester added a commit that referenced this pull request Dec 29, 2015
Get correct line_number in commas_linter
@jimhester jimhester merged commit bcf542b into r-lib:master Dec 29, 2015
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.

2 participants