Sha256: 98dad9f0f8d353168cdbe7692e9ccaf8f776458c0ca2862b0e1e2e0a6fa5db87

Contents?: true

Size: 1.88 KB

Versions: 4

Compression:

Stored size: 1.88 KB

Contents

inherit_from: .rubocop_todo.yml

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

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

AllCops:
  NewCops: enable
  TargetRubyVersion: 2.5
  SuggestExtensions: false

InternalAffairs/NodeMatcherDirective:
  Enabled: false

# FIXME: Workaround for a false positive caused by this cop when using `bundle exec rake`.
InternalAffairs/UndefinedConfig:
  Enabled: false

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

Naming/InclusiveLanguage:
  FlaggedTerms:
    offence:
      Suggestions:
        - offense

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/**/*

Metrics/ClassLength:
  Exclude:
    - test/**/*
    - tasks/changelog.rb

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'

Metrics/BlockLength:
  Exclude:
    - 'Rakefile'
    - '**/*.rake'
    - 'test/**/*.rb'
    - 'rubocop-minitest.gemspec'

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubocop-minitest-0.17.2 .rubocop.yml
rubocop-minitest-0.17.1 .rubocop.yml
rubocop-minitest-0.17.0 .rubocop.yml
rubocop-minitest-0.16.0 .rubocop.yml