2017-03-03 18:12:27 +00:00
|
|
|
require: rubocop-rspec
|
|
|
|
|
2016-02-15 23:13:45 +00:00
|
|
|
# Remove these configuration records
|
2015-11-28 02:16:37 +00:00
|
|
|
# one by one as the offenses are removed from the code base.
|
|
|
|
|
2020-03-03 02:58:33 +00:00
|
|
|
Layout/ArgumentAlignment:
|
2019-06-06 12:20:17 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2015-11-28 02:16:37 +00:00
|
|
|
Metrics/AbcSize:
|
2019-06-06 12:20:17 +00:00
|
|
|
Max: 20 # Goal: 15
|
2015-11-28 02:16:37 +00:00
|
|
|
|
|
|
|
Metrics/CyclomaticComplexity:
|
2019-06-06 12:20:17 +00:00
|
|
|
Max: 7 # Goal: 6
|
2015-11-28 02:16:37 +00:00
|
|
|
|
|
|
|
Metrics/PerceivedComplexity:
|
2016-12-14 03:23:30 +00:00
|
|
|
Max: 9 # Goal: 7
|
2016-07-06 00:16:20 +00:00
|
|
|
|
2018-03-27 22:11:10 +00:00
|
|
|
Naming/MemoizedInstanceVariableName:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-03-27 22:56:07 +00:00
|
|
|
RSpec/ContextWording:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-06-06 12:20:17 +00:00
|
|
|
RSpec/HooksBeforeExamples:
|
|
|
|
Exclude:
|
|
|
|
- spec/controllers/articles_controller_spec.rb
|
|
|
|
- spec/models/version_spec.rb
|
|
|
|
- spec/paper_trail/config_spec.rb
|
|
|
|
- spec/paper_trail/request_spec.rb
|
|
|
|
- spec/paper_trail_spec.rb
|
|
|
|
|
2017-05-24 05:08:53 +00:00
|
|
|
RSpec/NestedGroups:
|
|
|
|
Exclude:
|
2017-05-25 05:45:31 +00:00
|
|
|
- spec/paper_trail/model_spec.rb
|
2017-05-24 05:08:53 +00:00
|
|
|
|
2017-10-27 15:54:34 +00:00
|
|
|
# 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.
|
2017-04-01 01:42:14 +00:00
|
|
|
Security/YAMLLoad:
|
|
|
|
Enabled: false
|
2020-03-03 02:58:33 +00:00
|
|
|
|
|
|
|
# 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
|