Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.rubocop.yml 2.18 KiB
AllCops:
  TargetRubyVersion: 2.0
  Include:
    - '**/.simplecov'
  Exclude:
    - '**/Casks/**/*'
    - '**/vendor/**/*'

Metrics/AbcSize:
  Enabled: false

Metrics/ClassLength:
    Enabled: false

Metrics/CyclomaticComplexity:
  Enabled: false

Metrics/LineLength:
  Enabled: false

Metrics/MethodLength:
  Enabled: false

Metrics/ModuleLength:
  CountComments: false
  Exclude:
    - 'lib/hbc/locations.rb'
    - 'lib/hbc/macos.rb'
    - 'lib/hbc/utils.rb'

Metrics/PerceivedComplexity:
  Enabled: false

Style/AlignHash:
  EnforcedHashRocketStyle: table
  EnforcedColonStyle: table

Style/BarePercentLiterals:
  EnforcedStyle: percent_q

Style/BlockDelimiters:
  EnforcedStyle: semantic
  FunctionalMethods:
    - expect
    - let
    - let!
    - subject
    - watch
    - inject
    - map
    - map!
    - collect
    - collect!
    - reject
    - reject!
    - delete_if
    - with_object
  ProceduralMethods:
    - after
    - at_exit
    - before
    - benchmark
    - bm
    - bmbm
    - capture_io
    - capture_output
    - capture_subprocess_io
    - chdir
    - context
    - create