paper-trail-gem--paper_trail/.rubocop_todo.yml

130 lines
3.8 KiB
YAML

# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-03-21 03:46:53 UTC using RuboCop version 1.11.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
# 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:
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.
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
# 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:
- 'lib/capistrano/tasks/**/*.rake'
- 'Rakefile'
# Offense count: 8
# 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: 28
# Configuration parameters: ForbiddenMethods, AllowedMethods.
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
Rails/SkipsModelValidations:
Exclude:
- 'lib/paper_trail/record_trail.rb'
- 'spec/models/gadget_spec.rb'
- 'spec/models/on/create_spec.rb'
- 'spec/models/on/empty_array_spec.rb'
- 'spec/models/on/touch_spec.rb'
- 'spec/models/on/update_spec.rb'
- 'spec/models/widget_spec.rb'
- 'spec/paper_trail/cleaner_spec.rb'
- 'spec/paper_trail/config_spec.rb'
- 'spec/paper_trail/model_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
Rails/WhereNot:
Exclude:
- 'lib/paper_trail/version_concern.rb'
RSpec/FilePath:
Exclude:
- 'spec/paper_trail/model_spec.rb'
- 'spec/paper_trail/serializer_spec.rb'