Sha256: 4884e723aa96cf326118022c222f8720556fa66785990a1a02ba6b1db5f4dfa8

Contents?: true

Size: 1.79 KB

Versions: 5

Compression:

Stored size: 1.79 KB

Contents

# The behavior of RuboCop can be controlled via the .rubocop.yml
# configuration file. It makes it possible to enable/disable
# certain cops (checks) and to alter their behavior if they accept
# any parameters. The file can be placed either in your home
# directory or in some project directory.
#
# RuboCop will start looking for the configuration file in the directory
# where the inspected file is and continue its way up to the root directory.
#
# See https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md

require:
  - rubocop-performance
  - rubocop-rspec
  - rubocop-rake

AllCops:
  TargetRubyVersion: 2.7
  EnabledByDefault: true
  DisplayCopNames: true

Style/Copyright:
  Enabled: true
  Notice: 'Copyright (\(c\) )?202[0-9] Jerome Arbez-Gindre'
  AutocorrectNotice: '# Copyright (c) 2023 Jerome Arbez-Gindre'

Lint/ConstantResolution: # Not available ins rubocop 0.81
  Enabled: false

Style/DocumentationMethod:
  Enabled: false

Style/StringHashKeys :
  Enabled: true
  Exclude:
    - '*.gemspec'

Style/MissingElse:
  EnforcedStyle: case

Metrics/ModuleLength :
  Exclude:
    - 'spec/**/*'

Metrics/BlockLength :
  Exclude:
    - 'spec/**/*'
    - '*.gemspec'

Security/Eval :
  Exclude:
    - 'Rakefile'

Style/ConstantVisibility :
  Exclude:
     # there is one unique explicit constant visibility for all
     # constants
    - 'lib/asciidoctor-defmastership/extension.rb'

# rubocop-rspec options
RSpec/MessageExpectation :
  Enabled: true

RSpec/SpecFilePathFormat :
  Enabled: true

RSpec/SpecFilePathSuffix :
  Enabled: true

RSpec/NestedGroups:
  Max: 4

Layout/RedundantLineBreak:
  Enabled: false
  
Style/DisableCopsWithinSourceCodeDirective:
  Enabled: true
  AllowedCops: ['Lint/InterpolationCheck', 'Naming/FileName']
  Exclude:
    - 'Gemfile'

Layout/EndOfLine:
  EnforcedStyle: lf
  

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciidoctor-defmastership-1.3.0 config/rubocop.yml
asciidoctor-defmastership-1.2.0 config/rubocop.yml
asciidoctor-defmastership-1.1.2 config/rubocop.yml
asciidoctor-defmastership-1.1.1 config/rubocop.yml
asciidoctor-defmastership-1.1.0 config/rubocop.yml