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
When rubocop is called by passing a configuration file (rubocop -c .rubocop.yml) it shows the pending cops warnings like it does when it's called without configuration file (rubocop).
Actual behavior
By passing the configuration file it's not showing any warning. I know it's using the .rubocop file in both cases because it's not showing the frozen string warning.
$ rubocop
The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file:
- Lint/RaiseException (0.81)
- Lint/StructNewOverride (0.81)
- Style/HashEachMethods (0.80)
- Style/HashTransformKeys (0.80)
- Style/HashTransformValues (0.80)
For more information: https://docs.rubocop.org/en/latest/versioning/
Inspecting 2 files
..
2 files inspected, no offenses detected
$ rubocop -c .rubocop.yml
Inspecting 2 files
..
2 files inspected, no offenses detected
RuboCop version
0.81.0
Ruby version
2.7.0
The text was updated successfully, but these errors were encountered:
Expected behavior
When
rubocop
is called by passing a configuration file (rubocop -c .rubocop.yml
) it shows the pending cops warnings like it does when it's called without configuration file (rubocop
).Actual behavior
By passing the configuration file it's not showing any warning. I know it's using the
.rubocop
file in both cases because it's not showing the frozen string warning.Steps to reproduce the problem
Output
RuboCop version
0.81.0
Ruby version
2.7.0
The text was updated successfully, but these errors were encountered: