.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/SpaceAroundEqualsInParameterDefault:
 59  EnforcedStyle: no_space
 60
 61Layout/AccessModifierIndentation:
 62  EnforcedStyle: outdent
 63
 64Layout/FirstParameterIndentation:
 65  EnforcedStyle: consistent
 66
 67Style/AccessModifierDeclarations:
 68  Enabled: false
 69
 70Style/StringLiterals:
 71  EnforcedStyle: double_quotes
 72
 73Style/NumericLiterals:
 74  Enabled: false
 75
 76Style/SymbolArray:
 77  EnforcedStyle: brackets
 78
 79Style/WordArray:
 80  EnforcedStyle: brackets
 81
 82Style/Documentation:
 83  Enabled: false
 84
 85Style/DoubleNegation:
 86  EnforcedStyle: allowed_in_returns
 87  Enabled: false
 88
 89Style/PerlBackrefs:
 90  Enabled: false
 91
 92Style/SpecialGlobalVars:
 93  EnforcedStyle: use_perl_names
 94
 95Style/RegexpLiteral:
 96  EnforcedStyle: slashes
 97  AllowInnerSlashes: true
 98
 99Lint/OutOfRangeRegexpRef:
100  Enabled: false
101
102Lint/MissingSuper:
103  Enabled: false
104
105Style/BlockDelimiters:
106  EnforcedStyle: semantic
107  AllowBracesOnProceduralOneLiners: true
108  ProceduralMethods:
109    - execute_command
110    - new
111
112Style/MultilineBlockChain:
113  Enabled: false
114
115Layout/FirstArgumentIndentation:
116  EnforcedStyle: consistent
117
118Layout/FirstArrayElementIndentation:
119  EnforcedStyle: consistent
120
121Style/FormatString:
122  EnforcedStyle: percent
123
124Style/FormatStringToken:
125  EnforcedStyle: unannotated
126
127Style/FrozenStringLiteralComment:
128  Exclude:
129    - forms/**/*.rb
130
131Naming/AccessorMethodName:
132  Enabled: false