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-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'
|
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
# SupportedStyles: nested, compact
|
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Exclude:
|
|
|
|
- 'test/functional/sinatra_test.rb'
|
|
|
|
- 'test/test_helper.rb'
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Keywords.
|
|
|
|
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
|
|
|
Style/CommentAnnotation:
|
|
|
|
Exclude:
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
|
2015-11-28 02:16:37 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/CommentIndentation:
|
|
|
|
Exclude:
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'spec/spec_helper.rb'
|
|
|
|
- 'test/functional/modular_sinatra_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: SingleLineConditionsOnly.
|
|
|
|
Style/ConditionalAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'test/dummy/app/controllers/articles_controller.rb'
|
|
|
|
- 'test/dummy/app/controllers/widgets_controller.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/DeprecatedHashMethods:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 33
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 48
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
# SupportedStyles: leading, trailing
|
|
|
|
Style/DotPosition:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 4
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/DoubleNegation:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 21:50:25 +00:00
|
|
|
# Configuration parameters: AllowAdjacentOneLineDefs.
|
|
|
|
Style/EmptyLineBetweenDefs:
|
|
|
|
Exclude:
|
|
|
|
- 'test/dummy/app/models/song.rb'
|
|
|
|
|
|
|
|
# Offense count: 17
|
|
|
|
# Cop supports --auto-correct.
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/EmptyLines:
|
|
|
|
Exclude:
|
|
|
|
- 'Rakefile'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'test/unit/model_test.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 1
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/EmptyLinesAroundAccessModifier:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/generators/paper_trail/install_generator.rb'
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 14
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: empty_lines, no_empty_lines
|
|
|
|
Style/EmptyLinesAroundBlockBody:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/models/json_version_spec.rb'
|
|
|
|
- 'spec/modules/version_concern_spec.rb'
|
|
|
|
- 'spec/modules/version_number_spec.rb'
|
|
|
|
- 'test/dummy/db/schema.rb'
|
|
|
|
- 'test/functional/modular_sinatra_test.rb'
|
|
|
|
- 'test/functional/sinatra_test.rb'
|
|
|
|
- 'test/unit/cleaner_test.rb'
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
- 'test/unit/protected_attrs_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 17
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
|
|
# SupportedStyles: empty_lines, no_empty_lines
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/EmptyLinesAroundClassBody:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/generators/paper_trail/templates/add_object_changes_to_versions.rb'
|
|
|
|
- 'lib/generators/paper_trail/templates/create_versions.rb'
|
|
|
|
- 'lib/paper_trail/record_history.rb'
|
|
|
|
- 'lib/paper_trail/reifier.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'test/dummy/app/controllers/widgets_controller.rb'
|
|
|
|
- 'test/functional/enabled_for_controller_test.rb'
|
|
|
|
- 'test/functional/sinatra_test.rb'
|
|
|
|
- 'test/unit/cleaner_test.rb'
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
- 'test/unit/serializer_test.rb'
|
|
|
|
- 'test/unit/serializers/json_test.rb'
|
|
|
|
- 'test/unit/serializers/mixin_json_test.rb'
|
|
|
|
- 'test/unit/serializers/mixin_yaml_test.rb'
|
|
|
|
- 'test/unit/serializers/yaml_test.rb'
|
|
|
|
- 'test/unit/timestamp_test.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: empty_lines, no_empty_lines
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/EmptyLinesAroundModuleBody:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/frameworks/rails/controller.rb'
|
|
|
|
- 'lib/paper_trail/frameworks/sinatra.rb'
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
- 'lib/paper_trail/record_history.rb'
|
|
|
|
- 'lib/paper_trail/reifier.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 21:50:25 +00:00
|
|
|
Style/EmptyLiteral:
|
|
|
|
Exclude:
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 14
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/ExtraSpacing:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/generators/paper_trail/templates/create_versions.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'test/dummy/app/models/person.rb'
|
|
|
|
- 'test/dummy/config.ru'
|
|
|
|
- 'test/dummy/db/migrate/20110208155312_set_up_test_tables.rb'
|
|
|
|
- 'test/dummy/db/schema.rb'
|
|
|
|
- 'test/dummy/script/rails'
|
|
|
|
- 'test/test_helper.rb'
|
|
|
|
- 'test/unit/model_test.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 21:50:25 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
|
|
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/FirstParameterIndentation:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/serializers/json.rb'
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 606
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/HashSyntax:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: MaxLineLength.
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Exclude:
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'test/dummy/config/application.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 3
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 21:50:25 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/IndentHash:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 2
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Width.
|
|
|
|
Style/IndentationWidth:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'spec/models/widget_spec.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 4
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/Lambda:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
- 'lib/paper_trail/version_concern.rb'
|
2016-02-15 21:50:25 +00: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-28 02:16:37 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
2015-11-28 02:16:37 +00: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 21:50:25 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/MultilineBlockLayout:
|
|
|
|
Exclude:
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
|
2015-11-28 02:16:37 +00:00
|
|
|
# Offense count: 23
|
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 21:50:25 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
|
|
# SupportedStyles: aligned, indented
|
|
|
|
Style/MultilineMethodCallIndentation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
|
|
# SupportedStyles: aligned, indented
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/MultilineOperationIndentation:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# 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: 1
|
|
|
|
Style/NestedParenthesizedCalls:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: skip_modifier_ifs, always
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/Next:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/reifier.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/Not:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 21:50:25 +00:00
|
|
|
Style/NumericLiterals:
|
|
|
|
MinDigits: 15
|
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ParallelAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/models/gadget_spec.rb'
|
|
|
|
- 'test/test_helper.rb'
|
|
|
|
|
|
|
|
# Offense count: 6
|
|
|
|
# Cop supports --auto-correct.
|
2015-11-28 02:16:37 +00:00
|
|
|
# Configuration parameters: PreferredDelimiters.
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'spec/models/json_version_spec.rb'
|
|
|
|
- 'spec/models/version_spec.rb'
|
|
|
|
- 'test/unit/inheritance_column_test.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
|
2016-02-15 21:50:25 +00:00
|
|
|
# NamePrefix: is_, has_, have_
|
|
|
|
# NamePrefixBlacklist: is_, has_, have_
|
|
|
|
# NameWhitelist: is_a?
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/PredicateName:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 6
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/Proc:
|
|
|
|
Exclude:
|
|
|
|
- 'test/dummy/app/models/article.rb'
|
|
|
|
- 'test/dummy/app/models/translation.rb'
|
|
|
|
|
2015-11-28 02:16:37 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: compact, exploded
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/RaiseArgs:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 35
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantSelf:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
- 'lib/paper_trail/version_concern.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'test/dummy/app/models/article.rb'
|
|
|
|
- 'test/unit/associations_test.rb'
|
|
|
|
- 'test/unit/cleaner_test.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# 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'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 1
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: only_raise, only_fail, semantic
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/SignalException:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: Methods.
|
2016-02-15 21:50:25 +00:00
|
|
|
# Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]}
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/SingleLineBlockParams:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/reifier.rb'
|
|
|
|
|
|
|
|
# Offense count: 14
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/SpaceAfterComma:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/has_paper_trail.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'test/custom_json_serializer.rb'
|
|
|
|
- 'test/unit/cleaner_test.rb'
|
|
|
|
- 'test/unit/model_test.rb'
|
|
|
|
- 'test/unit/serializer_test.rb'
|
|
|
|
- 'test/unit/serializers/mixin_json_test.rb'
|
|
|
|
- 'test/unit/serializers/mixin_yaml_test.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: space, no_space
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/SpaceAroundEqualsInParameterDefault:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 9
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 21:50:25 +00:00
|
|
|
# Configuration parameters: AllowForAlignment.
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/SpaceAroundOperators:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/frameworks/rails/controller.rb'
|
|
|
|
- 'lib/paper_trail/frameworks/sinatra.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'spec/models/thing_spec.rb'
|
|
|
|
- 'test/unit/cleaner_test.rb'
|
|
|
|
- 'test/unit/serializer_test.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 4
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: space, no_space
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/SpaceBeforeBlockBraces:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowForAlignment.
|
|
|
|
Style/SpaceBeforeFirstArg:
|
|
|
|
Exclude:
|
|
|
|
- 'test/dummy/db/migrate/20110208155312_set_up_test_tables.rb'
|
|
|
|
|
|
|
|
# Offense count: 12
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: space, no_space
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/SpaceInsideBlockBraces:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
2016-02-15 21:50:25 +00:00
|
|
|
Style/SpaceInsideBrackets:
|
|
|
|
Exclude:
|
|
|
|
- 'test/dummy/app/models/article.rb'
|
|
|
|
|
|
|
|
# Offense count: 26
|
|
|
|
# Cop supports --auto-correct.
|
2015-11-28 02:16:37 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: space, no_space
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/SpaceInsideHashLiteralBraces:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/SpaceInsideParens:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/models/widget_spec.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: use_perl_names, use_english_names
|
|
|
|
Style/SpecialGlobalVars:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 519
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/StringLiterals:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 1
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/StringLiteralsInInterpolation:
|
|
|
|
Enabled: false
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 3
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
2016-02-15 21:50:25 +00:00
|
|
|
# IgnoredMethods: respond_to
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/SymbolProc:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/reifier.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'test/unit/version_test.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 8
|
2015-11-28 02:16:37 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: final_newline, final_blank_line
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/TrailingBlankLines:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/frameworks/active_record/models/paper_trail/version_association.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
- 'spec/spec_helper.rb'
|
|
|
|
- 'test/custom_json_serializer.rb'
|
|
|
|
- 'test/dummy/app/models/thing.rb'
|
|
|
|
- 'test/dummy/app/versions/post_version.rb'
|
|
|
|
- 'test/dummy/config/boot.rb'
|
|
|
|
- 'test/dummy/config/environments/development.rb'
|
|
|
|
- 'test/test_helper.rb'
|
2015-11-28 02:16:37 +00:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
2016-02-15 21:50:25 +00:00
|
|
|
# SupportedStyles: comma, consistent_comma, no_comma
|
|
|
|
Style/TrailingCommaInLiteral:
|
2015-11-28 02:16:37 +00:00
|
|
|
Exclude:
|
|
|
|
- 'lib/paper_trail/frameworks/rails/controller.rb'
|
|
|
|
|
2016-02-15 21:50:25 +00:00
|
|
|
# Offense count: 3
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/TrailingWhitespace:
|
|
|
|
Exclude:
|
|
|
|
- 'test/dummy/app/models/person.rb'
|
|
|
|
- 'test/paper_trail_test.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
|
|
|
|
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
|
|
|
Style/TrivialAccessors:
|
|
|
|
Exclude:
|
|
|
|
- 'test/dummy/app/controllers/application_controller.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
2015-11-28 02:16:37 +00:00
|
|
|
Style/UnlessElse:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/generators/paper_trail/install_generator.rb'
|
2016-02-15 21:50:25 +00:00
|
|
|
|
|
|
|
# Offense count: 13
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: SupportedStyles, WordRegex.
|
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/WordArray:
|
|
|
|
EnforcedStyle: percent
|
|
|
|
MinSize: 4
|