summaryrefslogtreecommitdiff
path: root/spec/ruby/.rubocop.yml
blob: d8b9aa7f8a1b81fe8f5f1e389657156bb577b77d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
inherit_from: .rubocop_todo.yml

AllCops:
  TargetRubyVersion: 2.4
  DisplayCopNames: true
  Exclude:
    - command_line/fixtures/bad_syntax.rb
  DisabledByDefault: true

Layout/TrailingWhitespace:
  Enabled: true

Lint:
  Enabled: true

Lint/AssignmentInCondition:
  Enabled: false

Lint/BooleanSymbol:
  Enabled: false

Lint/InterpolationCheck:
  Enabled: false

Lint/LiteralAsCondition:
  Enabled: false

Lint/UnneededRequireStatement:
  Enabled: false

Lint/RescueWithoutErrorClass:
  Enabled: false

Lint/UnifiedInteger:
  Enabled: false

Lint/UnusedBlockArgument:
  Enabled: false

Lint/UnusedMethodArgument:
  Enabled: false

Lint/UselessAssignment:
  Enabled: false

Lint/UselessComparison:
  Enabled: false

# The cop registers too many false positives to `.should == something`
Lint/Void:
  Enabled: false

Lint/EmptyExpression:
  Exclude:
    - 'language/**/*.rb'

Lint/UriRegexp:
  Exclude:
    - 'library/uri/regexp_spec.rb'