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)>
Given this Guard definition in my
Guardfile
:I expect only files in or below the
lib/crypt_ident
directory to be inspected. Yet it goes off into mytmp/gemset
directory as well. Why? How can this be fixed?