Sha256: 0fc669750fdd70778444be6f0e82e6a4416b84817719db825240812c31a9adaf

Contents?: true

Size: 1.83 KB

Versions: 1

Compression:

Stored size: 1.83 KB

Contents

# We will use cops to detect bugs in an early stage
# Feel free to use .rubocop_todo.yml by --auto-gen-config
inherit_from: .rubocop_todo.yml

require:
  - rubocop-performance
  - rubocop-rubycw
  - rubocop-rake

AllCops:
  # drop support for < 2.7
  TargetRubyVersion: 2.7
  # accept new cops if any
  NewCops: enable

# ===

# alias is hard to see separately 
Style/Alias:
  EnforcedStyle: prefer_alias_method

# For consistency and portability
Style/TrailingCommaInArrayLiteral:
  EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
  EnforcedStyleForMultiline: comma
# Should not set for Style/TrailingCommaInArguments

# ===

# To let you know the possibility of refactoring ===
#
# avoid unused variable asignment
Rubycw/Rubycw:
  Exclude:
    - 'test/**/*'
Lint/UselessAssignment:
  Exclude:
    - 'test/**/*'

# Disabled to define Vector operators
Lint/BinaryOperatorWithIdenticalOperands:
  Exclude:
    - 'test/test_vector_function.rb'

# Max: 120
Layout/LineLength:
  Max: 118
  Exclude:
    - 'test/**/*'

# <= 17 satisfactory
# 18..30 unsatisfactory
# > 30 dangerous
Metrics/AbcSize:
  Max: 23
  Exclude:
    - 'lib/red_amber/data_frame_output.rb' # Max: 51

# Max: 25
Metrics/BlockLength:
  Max: 25
  Exclude:
    - 'test/**/*'

# Max: 100
Metrics/ClassLength:
  Max: 100
  Exclude:
    - 'test/**/*'

# Max: 7
Metrics/CyclomaticComplexity:
  Max: 10

# Max: 10
Metrics/MethodLength:
  Max: 18
  Exclude:
    - 'lib/red_amber/data_frame_output.rb' # Max: 31

# Max: 100
Metrics/ModuleLength:
  Max: 100
  Exclude:
    - 'lib/red_amber/vector_functions.rb' # Max: 114

# Max: 8
Metrics/PerceivedComplexity:
  Max: 11

# Necessary to define is_na
Naming/PredicateName:
  Exclude:
    - 'lib/red_amber/vector_functions.rb'

# Necessary to test when range.end == -1
Style/SlicingWithRange:
  Exclude:
    - 'test/test_data_frame_selectable.rb'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
red_amber-0.1.3 .rubocop.yml