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
$ bundle exec rubocop setup
Inspecting 1 file
C
Offenses:
setup:18:26: C: Use || instead of or.
system('bundle check') or system!('bundle install')
^^
1 file inspected, 1 offense detected
which is not corrected
$ bundle exec rubocop setup -a
Inspecting 1 file
C
Offenses:
setup:18:26: C: Use || instead of or.
system('bundle check') or system!('bundle install')
^^
1 file inspected, 1 offense detected
even though the auto-generated config tells me it is "correctable"
$ bundle exec rubocop setup --auto-gen-config
Inspecting 1 file
C
Offenses:
setup:18:26: C: Use || instead of or.
system('bundle check') or system!('bundle install')
^^
1 file inspected, 1 offense detected
Created .rubocop_todo.yml.
Run `rubocop --config .rubocop_todo.yml`, or add `inherit_from: .rubocop_todo.yml` in a .rubocop.yml file.
$ cat .rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-01-09 17:28:15 +0100 using RuboCop version 0.35.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: always, conditionals
Style/AndOr:
Exclude:
- 'setup'
Bug or missing / misunderstanding something?
The text was updated successfully, but these errors were encountered:
After getting the file
running RuboCop on it spits an offense
which is not corrected
even though the auto-generated config tells me it is "correctable"
Bug or missing / misunderstanding something?
The text was updated successfully, but these errors were encountered: