-
Notifications
You must be signed in to change notification settings - Fork 45
/
.rubocop_todo.yml
140 lines (123 loc) · 4.74 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-01-23 10:59:33 +0100 using RuboCop version 0.76.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 4
# Cop supports --auto-correct.
FactoryBot/FactoryClassName:
Exclude:
- 'spec/factories/relation_factory.rb'
- 'spec/factories/relation_type_factory.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
Exclude:
- 'solidus_related_products.gemspec'
# Offense count: 2
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'app/decorators/models/product/add_relation_methods.rb'
- 'app/decorators/models/variant/add_relation_methods.rb'
# Offense count: 19
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/controllers/spree/admin/products_controller_decorator_spec.rb'
- 'spec/controllers/spree/api/relations_controller_spec.rb'
- 'spec/controllers/spree/api/variants/relations_controller_spec.rb'
- 'spec/features/spree/admin/product_relation_spec.rb'
- 'spec/features/spree/admin/relation_types_spec.rb'
- 'spec/features/spree/variant/product_relation_spec.rb'
- 'spec/models/spree/product_spec.rb'
- 'spec/models/spree/relation_spec.rb'
- 'spec/models/spree/relation_type_spec.rb'
- 'spec/models/spree/variant_spec.rb'
# Offense count: 3
RSpec/DescribeClass:
Exclude:
- 'spec/features/spree/admin/product_relation_spec.rb'
- 'spec/features/spree/admin/relation_types_spec.rb'
- 'spec/features/spree/variant/product_relation_spec.rb'
# Offense count: 1
RSpec/ExpectInHook:
Exclude:
- 'spec/features/spree/admin/relation_types_spec.rb'
# Offense count: 123
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/models/spree/calculator/related_product_discount_spec.rb'
- 'spec/models/spree/product_spec.rb'
- 'spec/models/spree/variant_spec.rb'
# Offense count: 2
RSpec/LetSetup:
Exclude:
- 'spec/features/spree/admin/product_relation_spec.rb'
- 'spec/features/spree/variant/product_relation_spec.rb'
# Offense count: 12
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
EnforcedStyle: receive
# Offense count: 31
# Configuration parameters: AggregateFailuresByDefault.
RSpec/MultipleExpectations:
Max: 7
# Offense count: 5
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
Exclude:
- 'spec/models/spree/calculator/related_product_discount_spec.rb'
# Offense count: 8
RSpec/NestedGroups:
Max: 5
# Offense count: 5
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/models/spree/calculator/related_product_discount_spec.rb'
# Offense count: 11
# Configuration parameters: Blacklist, Whitelist.
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
Rails/SkipsModelValidations:
Exclude:
- 'app/controllers/spree/admin/relations_controller.rb'
- 'app/controllers/spree/admin/variants/relations_controller.rb'
- 'app/controllers/spree/api/relations_controller.rb'
- 'app/controllers/spree/api/variants/relations_controller.rb'
- 'db/migrate/20120208144454_update_relation_types.rb'
- 'db/migrate/20120623014337_update_relations.rb'
- 'db/migrate/20190507095755_add_applies_from_to_spree_relation_type.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'app/models/spree/calculator/related_product_discount.rb'
- 'app/models/spree/relation.rb'
- 'app/models/spree/relation_type.rb'
# Offense count: 2
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'app/controllers/spree/admin/relations_controller.rb'
- 'app/controllers/spree/admin/variants/relations_controller.rb'
# Offense count: 63
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 179