1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/.rubocop_todo.yml
Jared Beck df4f3bba4f Lint: Fix various offenses, mostly rspec
- Fix Lint/RescueWithoutErrorClass
  - And I use the term "fix" loosely
- Fix RSpec/PredicateMatcher
  - The failure message should actually be better this way too.
- RSpec/LetBeforeExamples
- RSpec/HookArgument
- Fix RSpec/ExpectInHook in widget_spec.rb
- Fix RSpec/MessageSpies
  - I like spies. I've never linted them before, but I like how they
    separate test setup from assertions.
2017-09-19 01:25:53 -04:00

47 lines
867 B
YAML

require: rubocop-rspec
# Remove these configuration records
# one by one as the offenses are removed from the code base.
Metrics/AbcSize:
Max: 22 # Goal: 15
Metrics/CyclomaticComplexity:
Max: 8 # Goal: 6
Metrics/PerceivedComplexity:
Max: 9 # Goal: 7
Style/FrozenStringLiteralComment:
Enabled: false
RSpec/BeforeAfterAll:
Enabled: false
RSpec/ExpectInHook:
Exclude:
- spec/paper_trail/associations_spec.rb
- spec/models/version_spec.rb
RSpec/FilePath:
Enabled: false
RSpec/InstanceVariable:
Exclude:
- spec/paper_trail/associations_spec.rb
- spec/paper_trail/model_spec.rb
RSpec/MessageSpies:
Exclude:
- spec/models/version_spec.rb
RSpec/NamedSubject:
Enabled: false
RSpec/NestedGroups:
Exclude:
- spec/paper_trail/associations_spec.rb
- spec/paper_trail/model_spec.rb
Security/YAMLLoad:
Enabled: false