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

Globally looks for .rubocop_todo.yml regardless of configuration #41

Open
jdickey opened this issue Nov 27, 2018 · 0 comments
Open

Globally looks for .rubocop_todo.yml regardless of configuration #41

jdickey opened this issue Nov 27, 2018 · 0 comments

Comments

@jdickey
Copy link

jdickey commented Nov 27, 2018

Given this Guard definition in my Guardfile:

guard :rubocop do
  watch(%r{^lib/crypt_ident/.*?[^/]+\.rb$})
end

I expect only files in or below the lib/crypt_ident directory to be inspected. Yet it goes off into my tmp/gemset directory as well. Why? How can this be fixed?

[1] guard(main)> rubocop
00:43:18 - INFO - Run RuboCop
00:43:18 - INFO - Inspecting Ruby code style of all files
/Users/jeffdickey/src/ruby/crypt_ident/tmp/gemset/gems/axiom-types-0.1.1/.rubocop.yml - AllCops/Excludes was renamed to AllCops/Exclude
/Users/jeffdickey/src/ruby/crypt_ident/tmp/gemset/gems/axiom-types-0.1.1/.rubocop.yml - AllCops/Includes was renamed to AllCops/Include
tmp/gemset/gems/dry-container-0.6.0/.rubocop.yml: Style/FileName has the wrong namespace - should be Naming
tmp/gemset/gems/dry-logic-0.4.2/.rubocop.yml: Style/FileName has the wrong namespace - should be Naming
tmp/gemset/gems/inch-0.8.0/.rubocop_todo.yml: Lint/SpaceBeforeFirstArg has the wrong namespace - should be Layout
tmp/gemset/gems/inch-0.8.0/.rubocop_todo.yml: Style/AccessorMethodName has the wrong namespace - should be Naming
tmp/gemset/gems/inch-0.8.0/.rubocop_todo.yml: Style/EmptyLines has the wrong namespace - should be Layout
tmp/gemset/gems/inch-0.8.0/.rubocop_todo.yml: Style/LeadingCommentSpace has the wrong namespace - should be Layout
tmp/gemset/gems/inch-0.8.0/.rubocop_todo.yml: Style/PredicateName has the wrong namespace - should be Naming
tmp/gemset/gems/inch-0.8.0/.rubocop_todo.yml: Style/SpaceInsideHashLiteralBraces has the wrong namespace - should be Layout
tmp/gemset/gems/inch-0.8.0/.rubocop_todo.yml: Style/TrailingBlankLines has the wrong namespace - should be Layout
Error: The `Style/TrailingComma` cop no longer exists. Please use `Style/TrailingCommaInArguments`, `Style/TrailingCommaInArrayLiteral`, and/or `Style/TrailingCommaInHashLiteral` instead.
(obsolete configuration found in tmp/gemset/gems/inch-0.8.0/.rubocop_todo.yml, please update it)
The `Style/SingleSpaceBeforeFirstArg` cop has been renamed to `Layout/SpaceBeforeFirstArg`.
(obsolete configuration found in tmp/gemset/gems/inch-0.8.0/.rubocop_todo.yml, please update it)
00:43:19 - ERROR - The following exception occurred while running guard-rubocop: /Users/jeffdickey/.rbenv/versions/2.5.3/lib/ruby/2.5.0/json/common.rb:156:in `parse' 765: unexpected token at '' (JSON::ParserError)
[1] guard(main)> 
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

No branches or pull requests

1 participant