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