2021-03-18 03:32:08 +00:00
|
|
|
# This configuration was generated by
|
|
|
|
# `rubocop --auto-gen-config`
|
2021-06-18 11:43:04 +00:00
|
|
|
# on 2021-06-18 11:38:36 UTC using RuboCop version 1.17.0.
|
2021-03-18 03:32:08 +00:00
|
|
|
# The point is for the user to remove these configuration records
|
2015-11-28 02:16:37 +00:00
|
|
|
# one by one as the offenses are removed from the code base.
|
2021-03-18 03:32:08 +00:00
|
|
|
# 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: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
|
|
|
# Include: **/*.gemspec
|
|
|
|
Gemspec/OrderedDependencies:
|
|
|
|
Exclude:
|
|
|
|
- 'paper_trail.gemspec'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2021-03-21 03:48:30 +00:00
|
|
|
# Offense count: 5
|
|
|
|
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
2015-11-28 02:16:37 +00:00
|
|
|
Metrics/AbcSize:
|
2021-03-18 03:32:08 +00:00
|
|
|
Max: 19 # Goal: the default (17?)
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2021-03-18 03:32:08 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
2015-11-28 02:16:37 +00:00
|
|
|
Metrics/CyclomaticComplexity:
|
2020-08-03 02:36:09 +00:00
|
|
|
Max: 8 # Goal: 7
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2021-03-18 03:32:08 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
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
|
|
|
|
2021-03-21 03:48:30 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Performance/BlockGivenWithExplicitBlock:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: MinSize.
|
|
|
|
Performance/CollectionLiteralInLoop:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/models/version_spec.rb'
|
|
|
|
|
2021-03-18 03:32:08 +00:00
|
|
|
# Offense count: 115
|
|
|
|
# Configuration parameters: Prefixes.
|
|
|
|
# Prefixes: when, with, without
|
2018-03-27 22:56:07 +00:00
|
|
|
RSpec/ContextWording:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-06-18 11:43:04 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
|
|
|
# Include: **/*_spec*rb*, **/spec/**/*
|
|
|
|
RSpec/FilePath:
|
2021-03-18 03:32:08 +00:00
|
|
|
Exclude:
|
|
|
|
- 'spec/paper_trail/model_spec.rb'
|
|
|
|
- 'spec/paper_trail/serializer_spec.rb'
|
|
|
|
|
2021-06-18 11:43:04 +00:00
|
|
|
# Offense count: 1
|
|
|
|
RSpec/IdenticalEqualityAssertion:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/models/widget_spec.rb'
|
|
|
|
|
2021-03-18 03:32:08 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/ApplicationController:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/dummy_app/app/controllers/test_controller.rb'
|
2020-03-03 02:58:33 +00:00
|
|
|
|
2021-03-18 03:32:08 +00:00
|
|
|
# Offense count: 56
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/ApplicationRecord:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-06-18 11:43:04 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: Include, AllowReads, AllowWrites.
|
|
|
|
# Include: app/**/*.rb, lib/**/*.rb
|
|
|
|
Rails/EnvironmentVariableAccess:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/compatibility.rb'
|
|
|
|
|
2021-03-18 03:32:08 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/NegateInclude:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/events/base.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/Presence:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/reifier.rb'
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: **/Rakefile, **/*.rake
|
|
|
|
Rails/RakeEnvironment:
|
|
|
|
Exclude:
|
|
|
|
- 'Rakefile'
|
|
|
|
|
2021-06-18 11:43:04 +00:00
|
|
|
# Offense count: 4
|
2021-03-18 03:32:08 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/RedundantForeignKey:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/dummy_app/app/models/family/family.rb'
|
|
|
|
- 'spec/dummy_app/app/models/family/family_line.rb'
|
|
|
|
- 'spec/dummy_app/app/models/person.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/WhereNot:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/version_concern.rb'
|
|
|
|
|
2021-06-18 11:43:04 +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.
|
|
|
|
# Offense count: 13
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Security/YAMLLoad:
|
2021-03-21 03:48:30 +00:00
|
|
|
Exclude:
|
2021-06-18 11:43:04 +00:00
|
|
|
- 'lib/paper_trail/serializers/yaml.rb'
|
|
|
|
- 'spec/models/gadget_spec.rb'
|
|
|
|
- 'spec/models/no_object_spec.rb'
|
|
|
|
- 'spec/models/person_spec.rb'
|
|
|
|
- 'spec/models/version_spec.rb'
|
|
|
|
- 'spec/paper_trail/events/destroy_spec.rb'
|
2021-03-21 03:48:30 +00:00
|
|
|
- 'spec/paper_trail/model_spec.rb'
|
|
|
|
- 'spec/paper_trail/serializer_spec.rb'
|
2021-06-18 11:43:04 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantBegin:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/events/base.rb'
|