Naming/VariableNumber
This assoc. is defunct after the extraction of PT-AT
This commit is contained in:
parent
049d7d635e
commit
e5c913859f
|
@ -29,14 +29,6 @@ Metrics/CyclomaticComplexity:
|
|||
Metrics/PerceivedComplexity:
|
||||
Max: 9 # Goal: 7
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
|
||||
# SupportedStyles: snake_case, normalcase, non_integer
|
||||
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
|
||||
Naming/VariableNumber:
|
||||
Exclude:
|
||||
- 'spec/dummy_app/app/models/person.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Performance/BlockGivenWithExplicitBlock:
|
||||
|
|
|
@ -13,7 +13,6 @@ class Person < ActiveRecord::Base
|
|||
has_one :bicycle, foreign_key: :owner_id
|
||||
|
||||
has_one :thing
|
||||
has_one :thing_2, class_name: "Thing"
|
||||
|
||||
if ActiveRecord.gem_version >= Gem::Version.new("5.0")
|
||||
belongs_to :mentor, class_name: "Person", foreign_key: :mentor_id, optional: true
|
||||
|
|
Loading…
Reference in New Issue