.rubocop_todo.yml in trailblazer-finder-0.1.4 vs .rubocop_todo.yml in trailblazer-finder-0.2.5
- old
+ new
@@ -1,232 +1,78 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
-# on 2018-03-17 16:23:14 +0100 using RuboCop version 0.53.0.
+# on 2018-08-23 00:10:15 +0200 using RuboCop version 0.58.2.
# 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.
-Layout/CommentIndentation:
- Exclude:
- - 'spec/trailblazer/finder/adapters/sequel/predicates_spec.rb'
+Metrics/AbcSize:
+ Max: 31
-# Offense count: 1
-# Cop supports --auto-correct.
-Layout/EmptyLines:
- Exclude:
- - 'spec/trailblazer/operation/finder_spec.rb'
-
# Offense count: 2
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: empty_lines, no_empty_lines
-Layout/EmptyLinesAroundBlockBody:
- Exclude:
- - 'spec/trailblazer/finder/adapters/active_record/sorting_spec.rb'
- - 'spec/trailblazer/finder/features/sorting_spec.rb'
+Metrics/CyclomaticComplexity:
+ Max: 7
-# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
-Layout/EmptyLinesAroundModuleBody:
- Exclude:
- - 'lib/trailblazer/finder/adapters/sequel/predicates.rb'
+# Offense count: 13
+# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
+# URISchemes: http, https
+Metrics/LineLength:
+ Max: 283
-# Offense count: 2
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: native, lf, crlf
-Layout/EndOfLine:
- Exclude:
- - 'lib/trailblazer/finder/adapters/data_mapper/predicates.rb'
- - 'spec/trailblazer/finder/adapters/data_mapper/predicates_spec.rb'
-
# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: normal, rails
-Layout/IndentationConsistency:
- Exclude:
- - 'spec/trailblazer/finder/adapters/sequel/predicates_spec.rb'
+# Configuration parameters: CountKeywordArgs.
+Metrics/ParameterLists:
+ Max: 6
# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: Width, IgnoredPatterns.
-Layout/IndentationWidth:
- Exclude:
- - 'spec/trailblazer/finder/adapters/sequel/predicates_spec.rb'
-
-# Offense count: 1
-# Cop supports --auto-correct.
-Layout/SpaceAroundKeyword:
- Exclude:
- - 'spec/trailblazer/finder/features/predicates_spec.rb'
-
-# Offense count: 4
-# Cop supports --auto-correct.
-# Configuration parameters: AllowForAlignment.
-Layout/SpaceAroundOperators:
- Exclude:
- - 'spec/trailblazer/finder/features/predicates_spec.rb'
-
-# Offense count: 4
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
-# SupportedStyles: space, no_space
-# SupportedStylesForEmptyBraces: space, no_space
-Layout/SpaceBeforeBlockBraces:
- Exclude:
- - 'lib/trailblazer/finder/adapters/sequel/predicates.rb'
-
-# Offense count: 8
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
-# SupportedStyles: space, no_space
-# SupportedStylesForEmptyBraces: space, no_space
-Layout/SpaceInsideBlockBraces:
- Exclude:
- - 'lib/trailblazer/finder/adapters/sequel/predicates.rb'
-
-# Offense count: 4
-# Cop supports --auto-correct.
-Layout/SpaceInsideParens:
- Exclude:
- - 'lib/trailblazer/finder/utils/splitter.rb'
-
-# Offense count: 3
-# Cop supports --auto-correct.
-Layout/TrailingWhitespace:
- Exclude:
- - 'lib/trailblazer/finder/filter.rb'
- - 'spec/trailblazer/finder/adapters/active_record/base_spec.rb'
-
-# Offense count: 1
-Lint/DuplicateMethods:
- Exclude:
- - 'lib/trailblazer/finder/utils/splitter.rb'
-
-# Offense count: 1
-Lint/NestedMethodDefinition:
- Exclude:
- - 'spec/trailblazer/finder/adapters/sequel/base_spec.rb'
-
-# Offense count: 2
-# Cop supports --auto-correct.
-# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
-Lint/UnusedMethodArgument:
- Exclude:
- - 'lib/trailblazer/finder/adapters/sequel/predicates.rb'
-
-# Offense count: 3
-Metrics/AbcSize:
- Max: 17
-
-# Offense count: 9
-# Configuration parameters: CountComments.
-Metrics/MethodLength:
- Max: 51
-
-# Offense count: 8
RSpec/DescribeClass:
Exclude:
- - 'spec/trailblazer/finder/adapters/active_record/sorting_spec.rb'
- - 'spec/trailblazer/finder/adapters/data_mapper/sorting_spec.rb'
- - 'spec/trailblazer/finder/adapters/sequel/predicates_spec.rb'
- - 'spec/trailblazer/finder/adapters/sequel/sorting_spec.rb'
- 'spec/trailblazer/operation/finder_spec.rb'
- - 'spec/trailblazer/operation/paging_spec.rb'
- - 'spec/trailblazer/operation/predicates_spec.rb'
- - 'spec/trailblazer/operation/sorting_spec.rb'
-# Offense count: 50
-# Configuration parameters: CustomTransform, IgnoredWords.
-RSpec/ExampleWording:
+# Offense count: 78
+# Configuration parameters: Max.
+RSpec/ExampleLength:
Exclude:
- - 'spec/trailblazer/finder/adapters/active_record/predicates_spec.rb'
- - 'spec/trailblazer/finder/adapters/data_mapper/predicates_spec.rb'
- - 'spec/trailblazer/finder/adapters/sequel/predicates_spec.rb'
- - 'spec/trailblazer/finder/features/predicates_spec.rb'
- - 'spec/trailblazer/operation/predicates_spec.rb'
+ - 'spec/trailblazer/finder/adapters/active_record_spec.rb'
+ - 'spec/trailblazer/finder/adapters/basic_spec.rb'
+ - 'spec/trailblazer/finder/adapters/kaminari_spec.rb'
+ - 'spec/trailblazer/finder/adapters/sequel_spec.rb'
+ - 'spec/trailblazer/finder/adapters/will_paginate_spec.rb'
+ - 'spec/trailblazer/finder/base_spec.rb'
+ - 'spec/trailblazer/finder/dsl_spec.rb'
+ - 'spec/trailblazer/finder/utils/string_spec.rb'
+# Offense count: 62
+# Configuration parameters: AggregateFailuresByDefault.
+RSpec/MultipleExpectations:
+ Max: 7
+
# Offense count: 2
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: prefer_alias, prefer_alias_method
-Style/Alias:
+RSpec/RepeatedDescription:
Exclude:
- - 'lib/trailblazer/finder/utils/splitter.rb'
+ - 'spec/trailblazer/finder/adapters/basic_spec.rb'
-# Offense count: 18
+# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'spec/trailblazer/operation/finder_spec.rb'
- - 'spec/trailblazer/operation/paging_spec.rb'
- - 'spec/trailblazer/operation/predicates_spec.rb'
- - 'spec/trailblazer/operation/sorting_spec.rb'
# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: compact, expanded
-Style/EmptyMethod:
+# Configuration parameters: SuspiciousParamNames.
+# SuspiciousParamNames: options, opts, args, params, parameters
+Style/OptionHash:
Exclude:
- - 'spec/trailblazer/finder/adapters/sequel/sorting_spec.rb'
+ - 'lib/trailblazer/finder/dsl.rb'
-# Offense count: 1
-# Cop supports --auto-correct.
-Style/IfUnlessModifier:
+# Offense count: 3
+Style/Send:
Exclude:
- - 'lib/trailblazer/finder/utils/deep_locate.rb'
+ - 'lib/trailblazer/finder/adapters/sequel/sorting.rb'
+ - 'lib/trailblazer/operation/finder.rb'
-# Offense count: 2
-# Cop supports --auto-correct.
-# Configuration parameters: IncludeSemanticChanges.
-Style/NonNilCheck:
- Exclude:
- - 'lib/trailblazer/finder/predicates.rb'
-
-# Offense count: 2
-# Cop supports --auto-correct.
-Style/ParallelAssignment:
- Exclude:
- - 'lib/trailblazer/finder/utils/splitter.rb'
-
-# Offense count: 2
-# Cop supports --auto-correct.
-Style/PerlBackrefs:
- Exclude:
- - 'lib/trailblazer/finder/utils/splitter.rb'
-
-# Offense count: 191
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
-# SupportedStyles: single_quotes, double_quotes
-Style/StringLiterals:
- Exclude:
- - 'lib/trailblazer/finder/adapters/sequel/predicates.rb'
- - 'spec/trailblazer/finder/adapters/active_record/predicates_spec.rb'
- - 'spec/trailblazer/finder/adapters/active_record/sorting_spec.rb'
- - 'spec/trailblazer/finder/adapters/data_mapper/predicates_spec.rb'
- - 'spec/trailblazer/finder/adapters/data_mapper/sorting_spec.rb'
- - 'spec/trailblazer/finder/adapters/sequel/predicates_spec.rb'
- - 'spec/trailblazer/finder/features/predicates_spec.rb'
- - 'spec/trailblazer/operation/predicates_spec.rb'
-
-# Offense count: 24
-# Cop supports --auto-correct.
-# Configuration parameters: WordRegex.
-# SupportedStyles: percent, brackets
-Style/WordArray:
- EnforcedStyle: percent
- MinSize: 9
-
-# Offense count: 191
-# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
-# URISchemes: http, https
-Metrics/LineLength:
- Max: 172
+RSpec/DescribedClass:
+ SkipBlocks: true
\ No newline at end of file