.rubocop.yml

  1Layout/LineLength:
  2  Max: 80
  3
  4Layout/IndentationStyle:
  5  Enabled: false
  6  EnforcedStyle: tabs
  7  IndentationWidth: 2
  8
  9Layout/IndentationWidth:
 10  Width: 1 # one tab
 11
 12Layout/EndAlignment:
 13  EnforcedStyleAlignWith: variable
 14
 15Lint/RescueException:
 16  Enabled: false
 17
 18Metrics/AbcSize:
 19  Max: 190
 20
 21Metrics/BlockLength:
 22  Max: 200
 23
 24Metrics/BlockNesting:
 25  Max: 5
 26
 27Metrics/ClassLength:
 28  Max: 200
 29
 30Metrics/CyclomaticComplexity:
 31  Max: 30
 32
 33Metrics/MethodLength:
 34  Max: 200
 35  CountAsOne: ["hash"]
 36
 37Metrics/ModuleLength:
 38  Max: 1000
 39
 40Metrics/ParameterLists:
 41  Max: 8
 42
 43Metrics/PerceivedComplexity:
 44  Max: 30
 45
 46Naming/MethodParameterName:
 47  Enabled: false
 48
 49Style/AndOr:
 50  Enabled: false
 51
 52Layout/ParameterAlignment:
 53  Enabled: false
 54
 55Style/BlockDelimiters:
 56  Enabled: false
 57
 58Layout/CaseIndentation:
 59  EnforcedStyle: end
 60
 61Style/Documentation:
 62  Enabled: false
 63
 64Style/FormatString:
 65  EnforcedStyle: percent
 66
 67# Offense count: 1
 68Style/IfInsideElse:
 69  Exclude:
 70    - "sgx-bwmsgsv2.rb"
 71
 72Layout/LeadingCommentSpace:
 73  Enabled: false
 74
 75Layout/MultilineMethodCallBraceLayout:
 76  Enabled: false
 77
 78Layout/MultilineOperationIndentation:
 79  Enabled: false
 80
 81Style/MultilineTernaryOperator:
 82  Enabled: false
 83
 84Style/Next:
 85  Enabled: false
 86
 87Style/Not:
 88  Enabled: false
 89
 90Style/NumericLiterals:
 91  MinDigits: 20
 92  Strict: true
 93
 94Style/NumericPredicate:
 95  Enabled: false
 96
 97Layout/SpaceAroundOperators:
 98  Enabled: false
 99
100Layout/SpaceInsideHashLiteralBraces:
101  EnforcedStyle: no_space
102
103Style/StringLiterals:
104  EnforcedStyle: double_quotes
105  Enabled: false
106
107Style/NegatedIf:
108  Enabled: false
109
110Style/RedundantReturn:
111  Enabled: false
112
113Style/MultilineBlockChain:
114  Enabled: false
115
116Layout/SpaceAroundEqualsInParameterDefault:
117  EnforcedStyle: no_space
118
119Layout/FirstArrayElementIndentation:
120  EnforcedStyle: consistent
121
122Style/SymbolArray:
123  EnforcedStyle: brackets
124
125Layout/FirstParameterIndentation:
126  EnforcedStyle: consistent
127
128Style/Lambda:
129  EnforcedStyle: lambda
130
131Layout/AccessModifierIndentation:
132  EnforcedStyle: outdent
133
134Style/FormatStringToken:
135  Enabled: false
136
137Style/WordArray:
138  EnforcedStyle: brackets