-
Notifications
You must be signed in to change notification settings - Fork 187
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
Auto lintr? #227
Comments
Oh, I just found https://github.com/yihui/formatR, which probably covers most bases. Sorry for the noise. |
Hrm.. except it does not deal very well with line breaks inside function calls (yihui/formatR#53)... |
I have long wanted to extend lintr, or write a package which builds on lintr outputs to do reformatting / autocorrecting of lint results. There are some issues with the amount of informationHowever there are a few packages that give you some of this functionality.
|
Has anyone looked at implementing an automatic lint fixer for R? Something along the lines of autopep8? R really lends it self to writing untidy code, and so an automatic tool would be really useful. For example, it could be applied to multiple branches of a repo before merging to make merging much smoother.
I'm not sure how much work would be involved, but I guess a fair bit. I also guess there probably wouldn't be much code worth sharing with autopep8, but there might be some lessons to be learned from there. Perhaps @hhatto or @myint would be able to provide some insight?
The text was updated successfully, but these errors were encountered: