summaryrefslogtreecommitdiff
path: root/.rubocop.yml
blob: 37560a23712245e5bc34b3df0f665882cc04b047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require: rubocop-performance

AllCops:
  NewCops: enable
  TargetRubyVersion: 2.7
  Exclude:
    - "spec/data/**/*"
    - "vendor/**/*"
    - "pkg/**/*"

# these have shellout examples that need to have the tabs that come with the shellout
Layout/IndentationStyle:
  Exclude:
    - "lib/ohai/plugins/mono.rb"
    - "lib/ohai/plugins/darwin/hardware.rb"

Performance/Caller:
  Enabled: false

Performance/CollectionLiteralInLoop:
  Enabled: false