I get different outputs from guard-rubocop and standalone rubocop. In the example below, guard-rubocop reports 1 offenses but rubocop standalone reports 8. How could that be? Is it possible that guard-rubocop runs an older version of rubocop?
$ rubocop spec/requests/admin/orders_spec.rb
Inspecting 1 file
C
Offenses:
spec/requests/admin/orders_spec.rb:84:13: C: RSpec/EmptyLineAfterFinalLet: Add an empty line after the last let block.
let(:delivery_week_2) { create_delivery(end_of_week(year, week)) }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/requests/admin/orders_spec.rb:90:13: C: RSpec/EmptyLineAfterFinalLet: Add an empty line after the last let block.
let(:delivery_week_2) { create_delivery(middle_of_week) }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/requests/admin/orders_spec.rb:107:9: C: RSpec/EmptyLineAfterSubject: Add empty line after subject.
subject { response }
^^^^^^^^^^^^^^^^^^^^
spec/requests/admin/orders_spec.rb:109:9: C: RSpec/EmptyLineAfterFinalLet: Add an empty line after the last let block.
let(:parameters) { { week: week } }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/requests/admin/orders_spec.rb:114:9: C: RSpec/EmptyLineAfterSubject: Add empty line after subject.
subject { response }
^^^^^^^^^^^^^^^^^^^^
spec/requests/admin/orders_spec.rb:116:9: C: RSpec/EmptyLineAfterFinalLet: Add an empty line after the last let block.
let(:parameters) { { year: year} }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/requests/admin/orders_spec.rb:116:40: C: Style/SpaceInsideHashLiteralBraces: Space inside } missing.
let(:parameters) { { year: year} }
^
spec/requests/admin/orders_spec.rb:127:9: C: RSpec/EmptyLineAfterFinalLet: Add an empty line after the last let block.
let(:parameters) { {} }
^^^^^^^^^^^^^^^^^^^^^^^
1 file inspected, 8 offenses detected
I get different outputs from guard-rubocop and standalone rubocop. In the example below, guard-rubocop reports 1 offenses but rubocop standalone reports 8. How could that be? Is it possible that guard-rubocop runs an older version of rubocop?
guard-rubocop reports the following errors:
rubocop reports the following errors: