.rubocop.yml

  1AllCops:
  2  TargetRubyVersion: 2.5
  3  NewCops: enable
  4
  5Metrics/ClassLength:
  6  CountAsOne:
  7    - heredoc
  8  Exclude:
  9    - test/*
 10
 11Metrics/MethodLength:
 12  Exclude:
 13    - test/*
 14
 15Metrics/BlockLength:
 16  ExcludedMethods:
 17    - route
 18    - "on"
 19    - json
 20  Exclude:
 21    - test/*
 22
 23Metrics/AbcSize:
 24  Exclude:
 25    - test/*
 26
 27Metrics/ParameterLists:
 28  Max: 8
 29
 30Naming/MethodParameterName:
 31  AllowNamesEndingInNumbers: false
 32  AllowedNames:
 33    - io
 34    - m
 35    - e
 36    - q
 37    - s
 38    - k
 39    - v
 40    - ex
 41    - tx
 42    - id
 43    - iq
 44    - db
 45    - to
 46    - tn
 47
 48Layout/IndentationStyle:
 49  Enabled: false
 50  EnforcedStyle: tabs
 51  IndentationWidth: 2
 52
 53Layout/IndentationWidth:
 54  Width: 1 # one tab
 55
 56Layout/LineLength:
 57  Max: 80
 58  Exclude:
 59    - Gemfile
 60
 61Layout/EndAlignment:
 62  EnforcedStyleAlignWith: start_of_line
 63
 64Layout/SpaceAroundEqualsInParameterDefault:
 65  EnforcedStyle: no_space
 66
 67Layout/AccessModifierIndentation:
 68  EnforcedStyle: outdent
 69
 70Layout/FirstParameterIndentation:
 71  EnforcedStyle: consistent
 72
 73Layout/MultilineMethodCallIndentation:
 74  EnforcedStyle: indented
 75
 76Style/AccessModifierDeclarations:
 77  Enabled: false
 78
 79Style/ArrayCoercion:
 80  Enabled: false
 81
 82Style/StringLiterals:
 83  EnforcedStyle: double_quotes
 84
 85Style/NumericLiterals:
 86  Enabled: false
 87
 88Style/SymbolArray:
 89  EnforcedStyle: brackets
 90
 91Style/WordArray:
 92  EnforcedStyle: brackets
 93
 94Style/Documentation:
 95  Enabled: false
 96
 97Style/DoubleNegation:
 98  EnforcedStyle: allowed_in_returns
 99  Enabled: false
100
101Style/ParallelAssignment:
102  Enabled: false
103
104Style/PerlBackrefs:
105  Enabled: false
106
107Style/SpecialGlobalVars:
108  EnforcedStyle: use_perl_names
109
110Style/RegexpLiteral:
111  EnforcedStyle: slashes
112  AllowInnerSlashes: true
113
114Lint/OutOfRangeRegexpRef:
115  Enabled: false
116
117Lint/MissingSuper:
118  Enabled: false
119
120Style/BlockDelimiters:
121  EnforcedStyle: semantic
122  AllowBracesOnProceduralOneLiners: true
123  ProceduralMethods:
124    - execute_command
125    - new
126
127Style/MultilineBlockChain:
128  Enabled: false
129
130Layout/FirstArgumentIndentation:
131  EnforcedStyle: consistent
132
133Layout/FirstArrayElementIndentation:
134  EnforcedStyle: consistent
135
136Style/FormatString:
137  EnforcedStyle: percent
138
139Style/FormatStringToken:
140  EnforcedStyle: unannotated
141
142Style/FrozenStringLiteralComment:
143  Exclude:
144    - forms/**/*.rb
145
146Naming/AccessorMethodName:
147  Enabled: false