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