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