.rubocop.yml in red_amber-0.1.5 vs .rubocop.yml in red_amber-0.1.6
- old
+ new
@@ -54,29 +54,34 @@
# > 30 dangerous
Metrics/AbcSize:
Max: 30
Exclude:
- 'lib/red_amber/data_frame_displayable.rb' # Max: 55
- - 'lib/red_amber/vector_compensable.rb' # Max: 36
+ - 'lib/red_amber/data_frame_selectable.rb' # Max: 51
+ - 'lib/red_amber/vector_updatable.rb' # Max: 36
+ - 'lib/red_amber/vector_selectable.rb' # Max: 33
# Max: 25
Metrics/BlockLength:
Max: 25
Exclude:
- 'test/**/*'
# Max: 100
Metrics/ClassLength:
- Max: 120
+ Max: 100
Exclude:
- 'test/**/*'
+ - 'lib/red_amber/data_frame.rb' #Max: 131
+ - 'lib/red_amber/vector.rb' #Max: 102
# Max: 7
Metrics/CyclomaticComplexity:
Max: 12
Exclude:
- - 'lib/red_amber/vector_compensable.rb' # Max: 14
+ - 'lib/red_amber/data_frame_selectable.rb' # Max: 14
+ - 'lib/red_amber/vector_updatable.rb' # Max: 14
# Max: 10
Metrics/MethodLength:
Max: 30
Exclude:
@@ -84,22 +89,36 @@
# Max: 100
Metrics/ModuleLength:
Max: 100
Exclude:
+ - 'lib/red_amber/data_frame_selectable.rb' # Max: 141
- 'lib/red_amber/vector_functions.rb' # Max: 114
# Max: 8
Metrics/PerceivedComplexity:
Max: 13
Exclude:
- - 'lib/red_amber/vector_compensable.rb' # Max: 15
+ - 'lib/red_amber/data_frame_selectable.rb' # Max: 14
+ - 'lib/red_amber/vector_updatable.rb' # Max: 15
-# Necessary to define is_na
+Naming/FileName:
+ Exclude:
+ - 'lib/red-amber.rb'
+
+# Necessary to define is_na, is_in, etc.
Naming/PredicateName:
Exclude:
- 'lib/red_amber/vector_functions.rb'
+ - 'lib/red_amber/vector.rb'
+ - 'lib/red_amber/vector_selectable.rb'
# Necessary to test when range.end == -1
Style/SlicingWithRange:
Exclude:
- 'test/test_data_frame_selectable.rb'
+
+# Necessary to Vector < 0 element-wise comparison
+Style/NumericPredicate:
+ Exclude:
+ - 'lib/red_amber/data_frame_selectable.rb'
+ - 'lib/red_amber/vector_selectable.rb'