mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
135 lines
3.6 KiB
YAML
135 lines
3.6 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2021-06-18 11:38:36 UTC using RuboCop version 1.17.0.
|
|
# The point is for the user to remove these configuration records
|
|
# one by one as the offenses are removed from the code base.
|
|
# 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'
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
|
Metrics/AbcSize:
|
|
Max: 19 # Goal: the default (17?)
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: IgnoredMethods.
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 8 # Goal: 7
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: IgnoredMethods.
|
|
Metrics/PerceivedComplexity:
|
|
Max: 9 # Goal: 7
|
|
|
|
# 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'
|
|
|
|
# Offense count: 115
|
|
# Configuration parameters: Prefixes.
|
|
# Prefixes: when, with, without
|
|
RSpec/ContextWording:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
|
# Include: **/*_spec*rb*, **/spec/**/*
|
|
RSpec/FilePath:
|
|
Exclude:
|
|
- 'spec/paper_trail/model_spec.rb'
|
|
- 'spec/paper_trail/serializer_spec.rb'
|
|
|
|
# Offense count: 1
|
|
RSpec/IdenticalEqualityAssertion:
|
|
Exclude:
|
|
- 'spec/models/widget_spec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Rails/ApplicationController:
|
|
Exclude:
|
|
- 'spec/dummy_app/app/controllers/test_controller.rb'
|
|
|
|
# Offense count: 56
|
|
# Cop supports --auto-correct.
|
|
Rails/ApplicationRecord:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: Include, AllowReads, AllowWrites.
|
|
# Include: app/**/*.rb, lib/**/*.rb
|
|
Rails/EnvironmentVariableAccess:
|
|
Exclude:
|
|
- 'lib/paper_trail/compatibility.rb'
|
|
|
|
# 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'
|
|
|
|
# Offense count: 4
|
|
# 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'
|
|
|
|
# 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:
|
|
Exclude:
|
|
- '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'
|
|
- 'spec/paper_trail/model_spec.rb'
|
|
- 'spec/paper_trail/serializer_spec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantBegin:
|
|
Exclude:
|
|
- 'lib/paper_trail/events/base.rb'
|