.rubocop.yml in red_amber-0.4.0 vs .rubocop.yml in red_amber-0.4.1

- old
+ new

@@ -42,21 +42,20 @@ # EnforcedStyle: aligned Layout/MultilineMethodCallIndentation: EnforcedStyle: indented_relative_to_receiver -# avoid unused variable asignment -Rubycw/Rubycw: - Exclude: - - 'test/**/*' - # Disabled to define Vector operators # Offense count: 38 Lint/BinaryOperatorWithIdenticalOperands: Exclude: - 'test/test_vector_binary_element_wise.rb' +Lint/Debugger: + Exclude: + - 'bin/example' + # Need for test with empty block # Offense count: 1 # Configuration parameters: AllowComments, AllowEmptyLambdas. Lint/EmptyBlock: Exclude: @@ -85,10 +84,11 @@ 'slice_by', # 38.29 'remove', # 44.42 'drop', # 31.42 '[]', # 33.76 'split', # 37.35 + 'aggregate', # 38.13 ] # Max: 25 # Offense count: 57 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. @@ -108,10 +108,11 @@ - 'test/**/*' - 'lib/red_amber/data_frame.rb' # 162 - 'lib/red_amber/group.rb' # 105 - 'lib/red_amber/subframes.rb' # 110 - 'lib/red_amber/vector.rb' # 152 + - 'lib/red_amber/vector_binary_element_wise.rb' # 109 # Only for monitoring. I will measure by PerceivedComplexity. # Max: 7 # Offense count: 16 # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. @@ -125,10 +126,12 @@ 'assign_update', # 14 'join', # 14 'parse_range', # 14 'remove', # 14 '[]', # 13 + 'drop', # 13 + 'aggregate', # 13 ] # Max: 10 # Offense count: 34 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. @@ -138,10 +141,11 @@ 'join', # 47 'dataframe_info', # 33 'format_table', # 53 'slice_by', # 38 'assign_update', # 35 + 'drop', # 32 'aggregate', # 31 ] # Max: 100 # Offense count: 5 @@ -185,10 +189,11 @@ 'aggregate', # 12 '[]', # 11 'filters', # 11 'html_table', # 11 'slice', # 11 + 'pick', # 11 ] # Offense count: 1 # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms. # CheckDefinitionPathHierarchyRoots: lib, spec, test, src @@ -208,10 +213,16 @@ Exclude: - 'lib/red_amber/vector.rb' - 'lib/red_amber/vector_functions.rb' - 'lib/red_amber/vector_selectable.rb' +# avoid unused variable asignment +Rubycw/Rubycw: + Exclude: + - 'test/**/*' + - 'bin/example' + # Offense count: 16 # This cop supports safe autocorrection (--autocorrect). Style/OperatorMethodCall: Exclude: - 'test/test_vector_binary_element_wise.rb' @@ -220,9 +231,13 @@ # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). Style/SlicingWithRange: Exclude: - 'test/test_data_frame_selectable.rb' + +Style/MixinUsage: + Exclude: + - 'bin/example' # Necessary to Vector < 0 element-wise comparison # Offense count: 5 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods.