You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0.18.1 (using Parser 2.1.5, running on ruby 2.0.0 x86_64-darwin13.0.0)
Issue
I have a .rubocop.yml file in a directory, which contains only:
WordArray:
MinSize: 4
and a file test.rb which contains:
['a', 'b', 'c', 'd', 'e']
When I run rubocop --format offences I get:
1 WordArray
which is fine. When I run rubocop --show-cops however, it says:
WordArray:
Description: Use %w or %W for arrays of words.
Enabled: true
MinSize: 0
Why isn't the output of the --show-cops command updated to match the content of .rubocop.yml regardless of what the output of rubocop -h says for the --show-cops option? Here's a quote from that output
Shows the given cops, or all cops by
default, and their configurations for the
current directory.
The text was updated successfully, but these errors were encountered:
@whatyouhide You're right. It shows the default configuration even though the documentation and the specs say that it should be the actual configuration for the directory. I'll see if I can fix it.
Config
I'm on OSX 10.9.1.
rubocop -V
gives:Issue
I have a
.rubocop.yml
file in a directory, which contains only:and a file
test.rb
which contains:When I run
rubocop --format offences
I get:which is fine. When I run
rubocop --show-cops
however, it says:Why isn't the output of the
--show-cops
command updated to match the content of.rubocop.yml
regardless of what the output ofrubocop -h
says for the--show-cops
option? Here's a quote from that outputThe text was updated successfully, but these errors were encountered: