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 292050288f Lint: Fix RSpec/NestedGroups
Test are easier to understand when you can see the whole test on one
page, without scrolling around through half a dozen nesting levels.

This will be a difficult diff to review. Basically, I've converted
tests like:

```
context 'create' do
  context 'update' do
    context 'delete' do
```

to:

```
context 'create'
context 'create, then update'
context 'create, then update, then delete'
```
2020-08-18 02:21:41 -04:00

33 lines
813 B
YAML

require: rubocop-rspec
# Remove these configuration records
# one by one as the offenses are removed from the code base.
Metrics/AbcSize:
Max: 20 # Goal: 15
Metrics/CyclomaticComplexity:
Max: 8 # Goal: 7
Metrics/PerceivedComplexity:
Max: 9 # Goal: 7
Naming/MemoizedInstanceVariableName:
Enabled: false
RSpec/ContextWording:
Enabled: false
# It may be possible for us to use safe_load, but we'd have to pass the
# safelists, like `whitelist_classes` into our serializer, and the serializer
# interface is a public API, so that would be a breaking change.
Security/YAMLLoad:
Enabled: false
# We want this, but not until we drop support for ruby 2.4
Style/HashTransformKeys:
Enabled: false
# We want this, but not until we drop support for ruby 2.4
Style/HashTransformValues:
Enabled: false