summaryrefslogtreecommitdiff
path: root/.rubocop.yml
blob: ced86eaa16c3d52f4ef54281ae684e7e9e35b64a (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
AllCops:
  Include:
    - Guardfile
    - Rakefile
  Exclude:
    - .bundle/**/*
    - vendor/**/*

inherit_from: .rubocop_todo.yml

# Disabled until we can use the squiggly heredoc (after deprecating Ruby <2.3)
Layout/HeredocIndentation:
  Enabled: false

Metrics/ClassLength:
  Enabled: false

Metrics/ModuleLength:
  Enabled: false

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

Metrics/LineLength:
  Exclude:
    - 'Guardfile'
  Max: 100

Lint/UnifiedInteger:
  Exclude:
    - 'lib/hashie/extensions/coercion.rb'
    - 'spec/hashie/extensions/coercion_spec.rb'

Naming/FileName:
  Exclude:
    - 'Dangerfile'
    - '**/Gemfile'
    - '**/Rakefile'

# Disabled because of the very generic nature of Hashie. In the cases where we
# use double negation, there isn't a means that as succinct of doing the type of
# boolean casting that we do.
Style/DoubleNegation:
  Enabled: false

Style/HashSyntax:
  Enabled: false