2016-02-15 18:13:45 -05:00
|
|
|
# Remove these configuration records
|
2015-11-27 21:16:37 -05:00
|
|
|
# one by one as the offenses are removed from the code base.
|
|
|
|
|
2016-02-15 16:50:25 -05:00
|
|
|
# Offense count: 19
|
2015-11-27 21:16:37 -05:00
|
|
|
Metrics/AbcSize:
|
2016-02-15 16:50:25 -05:00
|
|
|
Max: 159
|
2015-11-27 21:16:37 -05:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
Max: 5
|
|
|
|
|
2016-02-15 16:50:25 -05:00
|
|
|
# Offense count: 4
|
|
|
|
# Configuration parameters: CountComments.
|
|
|
|
Metrics/ClassLength:
|
|
|
|
Max: 1106
|
2016-02-15 18:13:45 -05:00
|
|
|
Exclude:
|
|
|
|
- test/**/*
|
2016-02-15 16:50:25 -05:00
|
|
|
|
2015-11-27 21:16:37 -05:00
|
|
|
# Offense count: 6
|
|
|
|
Metrics/CyclomaticComplexity:
|
2016-02-15 16:50:25 -05:00
|
|
|
Max: 13
|
2015-11-27 21:16:37 -05:00
|
|
|
|
2016-02-15 16:50:25 -05:00
|
|
|
# Offense count: 18
|
2015-11-27 21:16:37 -05:00
|
|
|
# Configuration parameters: CountComments.
|
|
|
|
Metrics/MethodLength:
|
2016-02-15 16:50:25 -05:00
|
|
|
Max: 195
|
2015-11-27 21:16:37 -05:00
|
|
|
|
2016-02-15 16:50:25 -05:00
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: CountComments.
|
2015-11-27 21:16:37 -05:00
|
|
|
Metrics/ModuleLength:
|
2016-02-15 16:50:25 -05:00
|
|
|
Max: 281
|
2015-11-27 21:16:37 -05:00
|
|
|
|
2016-02-15 16:50:25 -05:00
|
|
|
# Offense count: 6
|
2015-11-27 21:16:37 -05:00
|
|
|
Metrics/PerceivedComplexity:
|
2016-02-15 16:50:25 -05:00
|
|
|
Max: 16
|
|
|
|
|
2015-11-27 21:16:37 -05:00
|
|
|
# Offense count: 1
|
|
|
|
Style/AccessorMethodName:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
|
2016-02-15 16:50:25 -05:00
|
|
|
# Offense count: 11
|
2015-11-27 21:16:37 -05:00
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 16:50:25 -05:00
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
2015-11-27 21:16:37 -05:00
|
|
|
Style/Alias:
|
|
|
|
Exclude:
|
2016-02-15 16:50:25 -05:00
|
|
|
- 'lib/paper_trail.rb'
|
|
|
|
- 'lib/paper_trail/config.rb'
|
2015-11-27 21:16:37 -05:00
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
2016-02-15 16:50:25 -05: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-15 22:00:56 -05:00
|
|
|
- 'test/unit/ar_id_map_test.rb'
|
2016-02-15 16:50:25 -05:00
|
|
|
|
|
|
|
# Offense count: 33
|
2015-11-27 21:16:37 -05:00
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 16:50:25 -05:00
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
|
|
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
2015-11-27 21:16:37 -05:00
|
|
|
Style/FirstParameterIndentation:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/serializers/json.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: MaxLineLength.
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Exclude:
|
2016-02-15 16:50:25 -05:00
|
|
|
- 'test/dummy/config/application.rb'
|
2015-11-27 21:16:37 -05:00
|
|
|
|
2016-02-15 16:50:25 -05:00
|
|
|
# Offense count: 3
|
2015-11-27 21:16:37 -05:00
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 16:50:25 -05:00
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
2015-11-27 21:16:37 -05:00
|
|
|
Style/IndentHash:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 16:50:25 -05:00
|
|
|
# Offense count: 2
|
2015-11-27 21:16:37 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Width.
|
|
|
|
Style/IndentationWidth:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
2016-02-15 16:50:25 -05:00
|
|
|
- 'spec/models/widget_spec.rb'
|
2015-11-27 21:16:37 -05:00
|
|
|
|
2016-02-15 16:50:25 -05:00
|
|
|
# Offense count: 4
|
2015-11-27 21:16:37 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/Lambda:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
- 'lib/paper_trail/version_concern.rb'
|
2016-02-15 16:50:25 -05:00
|
|
|
- 'test/dummy/app/models/widget.rb'
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/LeadingCommentSpace:
|
|
|
|
Exclude:
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/LineEndConcatenation:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/generators/paper_trail/install_generator.rb'
|
|
|
|
- 'lib/paper_trail.rb'
|
|
|
|
- 'lib/paper_trail/config.rb'
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
2015-11-27 21:16:37 -05:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 16:50:25 -05:00
|
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
2015-11-27 21:16:37 -05:00
|
|
|
Style/MethodDefParentheses:
|
|
|
|
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 16:50:25 -05:00
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/MultilineBlockLayout:
|
|
|
|
Exclude:
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 4
|
2015-11-27 21:16:37 -05:00
|
|
|
Style/MultilineTernaryOperator:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/config.rb'
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
- 'lib/paper_trail/reifier.rb'
|
|
|
|
|
2016-02-15 16:50:25 -05: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: 1
|
|
|
|
Style/NestedParenthesizedCalls:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
|
|
|
|
# Offense count: 3
|
2015-11-27 21:16:37 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RescueModifier:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/version_concern.rb'
|
2016-02-15 16:50:25 -05:00
|
|
|
- 'spec/models/version_spec.rb'
|
|
|
|
- 'test/dummy/app/models/person.rb'
|