rubocop / guard-rubocop

Guard plugin for RuboCop
MIT License
262 stars 55 forks source link

Issues with .rubocop_todo.yml #11

Closed jaredmoody closed 10 years ago

jaredmoody commented 10 years ago

I'm having a couple issues now that I've generated a .rubocop_todo.yml file for my project:

  1. Warnings are generated from guard that are not on the command line:

    Warning: unrecognized cop Lint/AmbiguousRegexpLiteral found in /Users/jaredmoody/Sites/my_project/.rubocop_todo.yml
    Warning: unrecognized cop Lint/AmbiguousRegexpLiteral found in /Users/jaredmoody/Sites/my_project/.rubocop.yml
  2. Offenses contained in the .rubocop_todo.yml are properly ignored on the command line, but displayed in guard.

I do have the inherit_from: .rubocop_todo.yml line in my .rubocop.yml file and from the warning, it looks like it is getting picked up properly. Is there something special I need to do to make this work the same as on the command line?

Thanks!

yujinakayama commented 10 years ago

Could you provide a minimal reproducible example? I cannot reproduce the issue with the current information.

jaredmoody commented 10 years ago

Updating my bundle to the latest rubocop resolved the issue. I didn't realize I had a different version in my bundle, sorry about that.