Improved documentation for `Rack::Builder`.
[rack.git] / .rubocop.yml
blob7188939dc382c008007b7fe1966f8f575c10a0bd
1 require:
2   - rubocop-packaging
4 AllCops:
5   TargetRubyVersion: 2.4
6   DisabledByDefault: true
7   Exclude:
8     - '**/vendor/**/*'
10 Style/FrozenStringLiteralComment:
11   Enabled: true
12   EnforcedStyle: always
13   Exclude:
14     - 'test/builder/bom.ru'
16 # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
17 Style/HashSyntax:
18   Enabled: true
20 Style/MethodDefParentheses:
21   Enabled: true
23 Layout/EmptyLineAfterMagicComment:
24   Enabled: true
26 Layout/LeadingCommentSpace:
27   Enabled: true
28   Exclude:
29     - 'test/builder/options.ru'
31 Layout/SpaceAfterColon:
32   Enabled: true
34 Layout/SpaceAfterComma:
35   Enabled: true
37 Layout/SpaceAroundEqualsInParameterDefault:
38   Enabled: true
40 Layout/SpaceAroundKeyword:
41   Enabled: true
43 Layout/SpaceAroundOperators:
44   Enabled: true
46 Layout/SpaceBeforeComma:
47   Enabled: true
49 Layout/SpaceBeforeFirstArg:
50   Enabled: true
52 # Use `{ a: 1 }` not `{a:1}`.
53 Layout/SpaceInsideHashLiteralBraces:
54   Enabled: true
56 Layout/IndentationStyle:
57   Enabled: true
59 Layout/TrailingWhitespace:
60   Enabled: true
62 Lint/DeprecatedOpenSSLConstant:
63   Enabled: true