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.
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 19
|
2015-11-28 02:16:37 +00:00
|
|
|
Metrics/AbcSize:
|
2016-03-31 19:56:43 +00:00
|
|
|
Exclude:
|
|
|
|
- 'test/dummy/db/migrate/20110208155312_set_up_test_tables.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
Max: 159
|
2015-11-28 02:16:37 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
Max: 5
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 4
|
|
|
|
# Configuration parameters: CountComments.
|
|
|
|
Metrics/ClassLength:
|
|
|
|
Max: 1106
|
2016-02-15 23:13:45 +00:00
|
|
|
Exclude:
|
|
|
|
- test/**/*
|
2016-02-15 21:50:25 +00:00
|
|
|
|
2015-11-28 02:16:37 +00:00
|
|
|
# Offense count: 6
|
|
|
|
Metrics/CyclomaticComplexity:
|
2016-02-15 21:50:25 +00:00
|
|
|
Max: 13
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 18
|
2015-11-28 02:16:37 +00:00
|
|
|
# Configuration parameters: CountComments.
|
|
|
|
Metrics/MethodLength:
|
2016-02-15 21:50:25 +00:00
|
|
|
Max: 195
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: CountComments.
|
2015-11-28 02:16:37 +00:00
|
|
|
Metrics/ModuleLength:
|
2016-02-15 21:50:25 +00:00
|
|
|
Max: 281
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 6
|
2015-11-28 02:16:37 +00:00
|
|
|
Metrics/PerceivedComplexity:
|
2016-02-15 21:50:25 +00:00
|
|
|
Max: 16
|
|
|
|
|
2015-11-28 02:16:37 +00:00
|
|
|
# Offense count: 1
|
|
|
|
Style/AccessorMethodName:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 11
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 21:50:25 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/Alias:
|
|
|
|
Exclude:
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'lib/paper_trail.rb'
|
|
|
|
- 'lib/paper_trail/config.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'lib/paper_trail/version_concern.rb'
|
|
|
|
- 'test/dummy/app/models/song.rb'
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
# SupportedStyles: nested, compact
|
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Exclude:
|
2016-02-16 03:00:56 +00:00
|
|
|
- 'test/unit/ar_id_map_test.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
|
|
|
|
# Offense count: 33
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
Style/ModuleFunction:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/serializers/json.rb'
|
|
|
|
- 'lib/paper_trail/serializers/yaml.rb'
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
Style/MultilineBlockChain:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/version_concern.rb'
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/MultilineBlockLayout:
|
|
|
|
Exclude:
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 4
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/MultilineTernaryOperator:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/config.rb'
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
- 'lib/paper_trail/reifier.rb'
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 4
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/MutableConstant:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/generators/paper_trail/templates/create_versions.rb'
|
|
|
|
- 'lib/paper_trail/version_number.rb'
|
|
|
|
- 'test/dummy/app/models/widget.rb'
|
|
|
|
- 'test/unit/associations_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 3
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RescueModifier:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/version_concern.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'spec/models/version_spec.rb'
|
|
|
|
- 'test/dummy/app/models/person.rb'
|