Sha256: e3b312bd17a8db6f1ee9c16201c0e6544dbfcce52ba43451a6005e2716e289a4

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

# This is the configuration used to check the rubocop source code.

require:
  - rubocop/cop/internal_affairs
  - rubocop-performance

AllCops:
  NewCops: enable
  TargetRubyVersion: 2.5
  SuggestExtensions: false

Naming/PredicateName:
  # Method define macros for dynamically generated method.
  MethodDefinitionMacros:
    - define_method
    - define_singleton_method
    - def_node_matcher
    - def_node_search

Style/FormatStringToken:
  # Because we parse a lot of source codes from strings. Percent arrays
  # look like unannotated format string tokens to this cop.
  Exclude:
    - test/**/*

Layout/EndOfLine:
  EnforcedStyle: lf

Layout/ClassStructure:
  Enabled: true
  Categories:
    module_inclusion:
      - include
      - prepend
      - extend
  ExpectedOrder:
      - module_inclusion
      - constants
      - public_class_methods
      - initializer
      - instance_methods
      - protected_methods
      - private_methods

# Trailing white space is meaningful in code examples
Layout/TrailingWhitespace:
  AllowInHeredoc: true

Lint/AmbiguousBlockAssociation:
  Exclude:
    - 'test/**/*.rb'

Lint/InterpolationCheck:
  Exclude:
    - 'test/**/*.rb'

Lint/UselessAccessModifier:
  MethodCreatingMethods:
    - 'def_matcher'
    - 'def_node_matcher'

Lint/BooleanSymbol:
  Enabled: false

Metrics/AbcSize:
  Max: 20

Metrics/BlockLength:
  Exclude:
    - 'Rakefile'
    - '**/*.rake'
    - 'spec/**/*.rb'
    - '**/*.gemspec'

Naming/FileName:
  Exclude:
    - lib/rubocop-oracle.rb

Metrics/ModuleLength:
  Exclude:
    - 'test/**/*.rb'

Performance/ChainArrayAllocation:
  Enabled: false

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-oracle-0.2.0 .rubocop.yml
rubocop-oracle-0.1.0 .rubocop.yml