Platform API - Orders endpoints
[spree.git] / .rubocop.yml
blob2af62b5ab1309e3ada30b96b3e6eb477116470a5
1 require: rubocop-rspec
3 AllCops:
4   TargetRubyVersion: 2.5
5   Exclude:
6     - '**/sandbox/**/*'
7     - '**/db/migrate/*'
8     - '**/Gemfile'
9     - '**/Gemfile.lock'
10     - '**/Rakefile'
11     - '**/rails'
12     - '**/*.gemspec'
13     - '**/dummy/**/*'
14     - '**/vendor/**/*'
15     - '**/spec_helper.rb'
16     - '**/templates/**/*'
18 Layout/MultilineOperationIndentation:
19   EnforcedStyle: indented
21 Layout/ParameterAlignment:
22   Enabled: false
24 Metrics/ClassLength:
25   CountComments: false
26   Max: 150
28 Metrics/ModuleLength:
29   CountComments: false
30   Max: 250
31   Exclude:
32     - '**/spec/**/*'
34 Style/Documentation:
35   Enabled: false
37 Layout/LineLength:
38   Max: 150
39   Exclude:
40     - '**/spec/**/*'
42 Metrics/MethodLength:
43   CountComments: false
44   Max: 50
46 Metrics/BlockLength:
47   CountComments: false
48   Max: 50
49   Exclude:
50     - '**/spec/**/*'
51     - '**/*.rake'
52     - '**/factories/**/*'
53     - '**/config/routes.rb'
55 Metrics/AbcSize:
56  Max: 45
58 Style/StringLiterals:
59   EnforcedStyle: single_quotes
61 Layout/DotPosition:
62   EnforcedStyle: trailing
63   Enabled: true
65 Layout/SpaceInsideArrayLiteralBrackets:
66   Exclude:
67     - 'api/spec/integration/**/*.rb'
68     - 'api/lib/spree/api/testing_support/v2/platform_contexts.rb'
70 Style/FrozenStringLiteralComment:
71   Enabled: false
73 Style/RegexpLiteral:
74   Enabled: false
76 Style/WordArray:
77   Enabled: false
79 Style/SymbolArray:
80   Enabled: false
82 Style/SymbolProc:
83   Exclude:
84     - '**/app/serializers/**/*'
86 Style/GuardClause:
87   Enabled: false
89 Style/TrailingCommaInArrayLiteral:
90   Enabled: false
92 Style/TrailingCommaInHashLiteral:
93   Enabled: false
95 Style/BarePercentLiterals:
96   Enabled: false
98 Style/MutableConstant:
99   Enabled: false
101 Style/PercentLiteralDelimiters:
102   Enabled: false
104 Style/IfUnlessModifier:
105   Enabled: false
107 Naming/VariableNumber:
108   Enabled: false
110 Style/RedundantPercentQ:
111   Enabled: false
113 Lint/ParenthesesAsGroupedExpression:
114   Enabled: false
116 Style/NumericPredicate:
117   Enabled: false
119 Metrics/PerceivedComplexity:
120   Max: 10
122 Metrics/CyclomaticComplexity:
123   Max: 10
125 Style/ClassAndModuleChildren:
126   Enabled: false
128 Style/AndOr:
129   Exclude:
130     - '**/*controller.rb'
132 Style/HashEachMethods:
133   Enabled: false
135 Style/HashTransformKeys:
136   Enabled: false
138 Style/HashTransformValues:
139   Enabled: false
141 RSpec/NestedGroups:
142   Max: 7
144 Lint/AmbiguousBlockAssociation:
145   Exclude:
146     - '**/spec/**/*'
148 Style/NumericLiterals:
149   Enabled: false
151 RSpec/DescribeClass:
152   Enabled: false
154 RSpec/VerifiedDoubles:
155   Enabled: false
157 RSpec/MessageChain:
158   Enabled: false
160 RSpec/AnyInstance:
161   Enabled: false
163 RSpec/InstanceVariable:
164   Enabled: false
166 RSpec/ContextWording:
167   Enabled: false
169 RSpec/ExpectInHook:
170   Enabled: false
172 RSpec/ExampleLength:
173   Enabled: false
175 RSpec/MessageSpies:
176   Enabled: false
178 RSpec/NamedSubject:
179   Enabled: false
181 RSpec/MultipleExpectations:
182   Enabled: false
184 RSpec/FilePath:
185   Enabled: false
187 RSpec/LetSetup:
188   Enabled: false
190 RSpec/SubjectStub:
191   Enabled: false
193 RSpec/VoidExpect:
194   Enabled: false
196 RSpec/BeforeAfterAll:
197   Enabled: false