.rubocop.yml

 1AllCops:
 2  TargetRubyVersion: 2.5
 3
 4Metrics/LineLength:
 5  Max: 80
 6  Exclude:
 7    - Gemfile
 8
 9Metrics/ClassLength:
10  Exclude:
11    - test/*
12
13Metrics/MethodLength:
14  Exclude:
15    - test/*
16
17Metrics/BlockLength:
18  ExcludedMethods:
19    - route
20    - "on"
21  Exclude:
22    - test/*
23
24Metrics/ClassLength:
25  Exclude:
26    - test/*
27
28Metrics/AbcSize:
29  Exclude:
30    - test/*
31
32Style/Tab:
33  Enabled: false
34
35Style/IndentationWidth:
36  Width: 1 # one tab
37
38Style/StringLiterals:
39  EnforcedStyle: double_quotes
40
41Style/NumericLiterals:
42  Enabled: false
43
44Style/SymbolArray:
45  EnforcedStyle: brackets
46
47Style/WordArray:
48  EnforcedStyle: brackets
49
50Style/Documentation:
51  Enabled: false
52
53Style/DoubleNegation:
54  EnforcedStyle: allowed_in_returns
55  Enabled: false
56
57Style/PerlBackrefs:
58  Enabled: false
59
60Style/SpecialGlobalVars:
61  EnforcedStyle: use_perl_names
62
63Style/RegexpLiteral:
64  EnforcedStyle: slashes
65  AllowInnerSlashes: true
66
67Layout/SpaceAroundEqualsInParameterDefault:
68  EnforcedStyle: no_space
69
70Layout/AccessModifierIndentation:
71  EnforcedStyle: outdent
72
73Layout/FirstParameterIndentation:
74  EnforcedStyle: consistent
75
76Style/BlockDelimiters:
77  EnforcedStyle: braces_for_chaining
78
79Style/MultilineBlockChain:
80  Enabled: false
81
82Layout/IndentArray:
83  EnforcedStyle: consistent
84
85Style/FormatString:
86  EnforcedStyle: percent
87
88Style/FormatStringToken:
89  EnforcedStyle: unannotated
90
91Style/FrozenStringLiteralComment:
92  Exclude:
93    - forms/*
94
95Naming/AccessorMethodName:
96  Enabled: false