Closed richrace closed 10 years ago
Thanks for the pull request.
I agree that rubocop
should be run in the project root directory. I also think all linter commands should alway be run there since it would make the logic simpler and there's no disadvantage.
Ok sounds good.
Do you want me to close this PR and come back with a new one for just setting the cwd
?
Do you want me to close this PR and come back with a new one for just setting the
cwd
?
No you need not. You can add further changes in the current branch, squash the commits, and git push -f
, then this pull request will be updated.
Here we go. Will set the CWD for any linter.
As noted above, could you remove the rails
configuration option handling? I'm planning to add more generic option to specify CLI arguments.
This is ready to be merged now.
Thanks!
rubocop
needs to be ran from the project directory where the Rails app lives to work. Therefore, ifrubocop
is used then change the CWD to the project path if the Rails flag has been set.To enable this add
rails: true
to yourconfig.cson
e.g.All specs pass in Atom (0.118.0 using React Editor). Using the
rake
command one fails, but it also fails in master, hopefully a separate issue.