tomoya / rubocop-auto-correct

Auto-correct ruby source code by using rubocop in Atom.
https://atom.io/packages/rubocop-auto-correct
MIT License
29 stars 17 forks source link

Does this respect my .rubocop.yml? #25

Closed monkseal closed 8 years ago

monkseal commented 8 years ago

Hey, just installed this plugin but wondering if it respects the .rubocob.yml for the project I'm working on?

I have the cop:

Style/StringLiterals:
  EnforcedStyle: double_quotes

but when I run the Rubocop auto correct, it changes everything to single quotes...

tomoya commented 8 years ago

Hi, this package does not check .rubocop.yml yet. I have thought that I want to apply this. But, I do not have time currently :-(

monkseal commented 8 years ago

Ok, if I have time I'll work on it and submit a PR.

tomoya commented 8 years ago

That's great. I think that linter-eslint code is good as a useful reference. Because it uses .eslintrc. Thank you,

monkseal commented 8 years ago

@tomoya I must have been doing something wrong the first time because it is now respecting my rubocop.yml file when I run it. I had to open atom from my project directory. Closing this issue. Thanks for the plugin!

tomoya commented 8 years ago

Hi, @monkseal, I got it. Thank you for using my plugin!

dogweather commented 8 years ago

Has this been explicitly coded, to check for the .rubocop.yml file in the current project?

I get this problem pretty much in all my projects.