.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: 7
 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/PerlBackrefs:
100  Enabled: false
101
102Style/SpecialGlobalVars:
103  EnforcedStyle: use_perl_names
104
105Style/RegexpLiteral:
106  EnforcedStyle: slashes
107  AllowInnerSlashes: true
108
109Lint/OutOfRangeRegexpRef:
110  Enabled: false
111
112Lint/MissingSuper:
113  Enabled: false
114
115Style/BlockDelimiters:
116  EnforcedStyle: semantic
117  AllowBracesOnProceduralOneLiners: true
118  ProceduralMethods:
119    - execute_command
120    - new
121
122Style/MultilineBlockChain:
123  Enabled: false
124
125Layout/FirstArgumentIndentation:
126  EnforcedStyle: consistent
127
128Layout/FirstArrayElementIndentation:
129  EnforcedStyle: consistent
130
131Style/FormatString:
132  EnforcedStyle: percent
133
134Style/FormatStringToken:
135  EnforcedStyle: unannotated
136
137Style/FrozenStringLiteralComment:
138  Exclude:
139    - forms/**/*.rb
140
141Naming/AccessorMethodName:
142  Enabled: false