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