rubocop-inhouse 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.yml +1 -1
- data/config/layout.yml +1 -1
- data/config/lint.yml +1 -1
- data/config/metrics.yml +13 -7
- data/config/rails.yml +61 -54
- data/config/rspec.yml +21 -21
- data/lib/rubocop/inhouse/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f2d2f82b334805ec6ea98e68d067953896fdc9c250cc12115bba836e09c8345
|
4
|
+
data.tar.gz: dc33c2d393c7661f15226085d70679f3b6c1ac02eaf808613fb469d0180e449c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f382c1f1fd115f79da807496d0ff532989536738bbe1b38e8d403ccc217a353562e8e46c61f4f567a78fdf9308a867e74fe43ebf25789ae9e91fe923e7a7229e
|
7
|
+
data.tar.gz: a416e0b1db47e19d14c15a168e9aff37c5f788c0faa32a014ce4594892d08b0a50cd64f27b7091518bbb2ecc0f70d348bb03fef88ec2a8187d613869619b309e
|
data/config/default.yml
CHANGED
data/config/layout.yml
CHANGED
data/config/lint.yml
CHANGED
data/config/metrics.yml
CHANGED
@@ -4,16 +4,18 @@ Metrics/AbcSize:
|
|
4
4
|
# Excluding controllers here because respond_to blocks and others make this
|
5
5
|
# higher than they otherwise should be
|
6
6
|
Exclude:
|
7
|
-
- "
|
7
|
+
- "app/controllers/**/*"
|
8
|
+
- "app/views/**/*.rb"
|
8
9
|
|
9
10
|
Metrics/BlockLength:
|
10
11
|
CountComments: false
|
11
12
|
Max: 25
|
12
13
|
Exclude:
|
13
|
-
- "
|
14
|
+
- "spec/**/*.rb"
|
15
|
+
- "config/**/*.rb"
|
16
|
+
- "app/views/**/*.rb"
|
17
|
+
- "lib/tasks/**/*.rake"
|
14
18
|
- "**/*.rake"
|
15
|
-
- "**/factories/**/*"
|
16
|
-
- "**/config/**/*"
|
17
19
|
|
18
20
|
Metrics/CollectionLiteralLength:
|
19
21
|
Enabled: true
|
@@ -22,7 +24,8 @@ Metrics/ClassLength:
|
|
22
24
|
CountAsOne: ["array", "hash"]
|
23
25
|
Max: 100
|
24
26
|
Exclude:
|
25
|
-
- "
|
27
|
+
- "app/controllers/**/*.rb"
|
28
|
+
- "app/views/**/*.rb"
|
26
29
|
|
27
30
|
Metrics/CyclomaticComplexity:
|
28
31
|
Max: 10
|
@@ -30,12 +33,14 @@ Metrics/CyclomaticComplexity:
|
|
30
33
|
Metrics/MethodLength:
|
31
34
|
CountAsOne: ["array", "hash", "method_call"]
|
32
35
|
Max: 20
|
36
|
+
Exclude:
|
37
|
+
- "app/views/**/*.rb"
|
33
38
|
|
34
39
|
Metrics/ModuleLength:
|
35
40
|
CountAsOne: ["array", "hash"]
|
36
41
|
Max: 100
|
37
42
|
Exclude:
|
38
|
-
- "
|
43
|
+
- "spec/**/*.rb"
|
39
44
|
|
40
45
|
Metrics/ParameterLists:
|
41
46
|
Max: 2
|
@@ -43,4 +48,5 @@ Metrics/ParameterLists:
|
|
43
48
|
|
44
49
|
Metrics/PerceivedComplexity:
|
45
50
|
Max: 8
|
46
|
-
|
51
|
+
Exclude:
|
52
|
+
- "app/views/**/*.rb"
|
data/config/rails.yml
CHANGED
@@ -3,11 +3,21 @@ require:
|
|
3
3
|
- rubocop-rails
|
4
4
|
- rubocop-capybara
|
5
5
|
- rubocop-factory_bot
|
6
|
+
- rubocop-rspec_rails
|
6
7
|
|
7
8
|
inherit_from:
|
8
9
|
- ./capybara.yml
|
9
10
|
- ./factory_bot.yml
|
10
11
|
|
12
|
+
Rails/ActionFilter:
|
13
|
+
Enabled: true
|
14
|
+
|
15
|
+
Rails/ActiveRecordCallbacksOrder:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
Rails/AfterCommitOverride:
|
19
|
+
Enabled: true
|
20
|
+
|
11
21
|
Rails/ActionControllerTestCase:
|
12
22
|
Enabled: false
|
13
23
|
|
@@ -59,144 +69,141 @@ Rails/ExpandedDateRange:
|
|
59
69
|
Rails/FreezeTime:
|
60
70
|
Enabled: true
|
61
71
|
|
62
|
-
Rails/
|
63
|
-
Enabled:
|
72
|
+
Rails/CreateTableWithTimestamps:
|
73
|
+
Enabled: false
|
64
74
|
|
65
|
-
Rails/
|
75
|
+
Rails/Date:
|
66
76
|
Enabled: true
|
77
|
+
EnforcedStyle: strict
|
67
78
|
|
68
|
-
Rails/
|
79
|
+
Rails/Delegate:
|
69
80
|
Enabled: true
|
70
81
|
|
71
|
-
Rails/
|
82
|
+
Rails/DefaultScope:
|
72
83
|
Enabled: true
|
73
84
|
|
74
|
-
Rails/
|
85
|
+
Rails/FindById:
|
75
86
|
Enabled: true
|
76
87
|
|
77
|
-
Rails/
|
88
|
+
Rails/I18nLazyLookup:
|
78
89
|
Enabled: true
|
79
90
|
|
80
|
-
Rails/
|
91
|
+
Rails/I18nLocaleAssignment:
|
81
92
|
Enabled: true
|
82
93
|
|
83
|
-
Rails/
|
94
|
+
Rails/I18nLocaleTexts:
|
84
95
|
Enabled: true
|
85
96
|
|
86
|
-
Rails/
|
97
|
+
Rails/IgnoredColumnsAssignment:
|
87
98
|
Enabled: true
|
88
99
|
|
89
|
-
Rails/
|
100
|
+
Rails/Inquiry:
|
90
101
|
Enabled: true
|
91
102
|
|
92
|
-
Rails/
|
103
|
+
Rails/MigrationClassName:
|
93
104
|
Enabled: true
|
94
105
|
|
95
|
-
Rails/
|
106
|
+
Rails/MailerName:
|
96
107
|
Enabled: true
|
97
108
|
|
98
|
-
Rails/
|
109
|
+
Rails/MatchRoute:
|
99
110
|
Enabled: true
|
100
111
|
|
101
|
-
Rails/
|
112
|
+
Rails/NegateInclude:
|
102
113
|
Enabled: true
|
103
114
|
|
104
|
-
Rails/
|
115
|
+
Rails/OrderById:
|
105
116
|
Enabled: true
|
106
117
|
|
107
|
-
Rails/
|
108
|
-
|
118
|
+
Rails/Output:
|
119
|
+
Exclude:
|
120
|
+
- "app/views/**/*.rb"
|
109
121
|
|
110
|
-
Rails/
|
122
|
+
Rails/Pluck:
|
111
123
|
Enabled: true
|
112
124
|
|
113
|
-
Rails/
|
125
|
+
Rails/PluckId:
|
114
126
|
Enabled: true
|
115
127
|
|
116
|
-
Rails/
|
128
|
+
Rails/PluckInWhere:
|
117
129
|
Enabled: true
|
118
130
|
|
119
|
-
Rails/
|
131
|
+
Rails/RenderInline:
|
120
132
|
Enabled: true
|
121
133
|
|
122
|
-
Rails/
|
134
|
+
Rails/RenderPlainText:
|
123
135
|
Enabled: true
|
124
136
|
|
125
|
-
Rails/
|
137
|
+
Rails/RedundantActiveRecordAllMethod:
|
126
138
|
Enabled: true
|
127
139
|
|
128
|
-
Rails/
|
140
|
+
Rails/RedundantPresenceValidationOnBelongsTo:
|
129
141
|
Enabled: true
|
130
142
|
|
131
|
-
Rails/
|
143
|
+
Rails/RedundantTravelBack:
|
132
144
|
Enabled: true
|
133
145
|
|
134
|
-
Rails/
|
146
|
+
Rails/ResponseParsedBody:
|
135
147
|
Enabled: true
|
136
148
|
|
137
|
-
Rails/
|
149
|
+
Rails/RootJoinChain:
|
138
150
|
Enabled: true
|
139
151
|
|
140
|
-
Rails/
|
152
|
+
Rails/RootPublicPath:
|
141
153
|
Enabled: true
|
142
154
|
|
143
|
-
Rails/
|
155
|
+
Rails/RootPathnameMethods:
|
144
156
|
Enabled: true
|
145
157
|
|
146
|
-
Rails/
|
147
|
-
Enabled: false
|
148
|
-
|
149
|
-
Rails/Date:
|
158
|
+
Rails/SaveBang:
|
150
159
|
Enabled: true
|
151
|
-
|
160
|
+
AllowImplicitReturn: false
|
161
|
+
Exclude:
|
162
|
+
- "spec/factories/**/*.rb"
|
152
163
|
|
153
|
-
Rails/
|
164
|
+
Rails/ShortI18n:
|
154
165
|
Enabled: true
|
155
166
|
|
156
|
-
Rails/
|
167
|
+
Rails/SquishedSQLHeredocs:
|
157
168
|
Enabled: true
|
158
169
|
|
159
|
-
Rails/
|
170
|
+
Rails/StripHeredoc:
|
160
171
|
Enabled: true
|
161
172
|
|
162
|
-
Rails/
|
173
|
+
Rails/ThreeStateBooleanColumn:
|
163
174
|
Enabled: true
|
164
175
|
|
165
|
-
Rails/
|
176
|
+
Rails/TimeZoneAssignment:
|
166
177
|
Enabled: true
|
167
178
|
|
168
|
-
Rails/
|
179
|
+
Rails/ToFormattedS:
|
169
180
|
Enabled: true
|
170
181
|
|
171
|
-
Rails/
|
182
|
+
Rails/ToSWithArgument:
|
172
183
|
Enabled: true
|
173
184
|
|
174
|
-
Rails/
|
185
|
+
Rails/TopLevelHashWithIndifferentAccess:
|
175
186
|
Enabled: true
|
176
187
|
|
177
|
-
Rails/
|
188
|
+
Rails/TransactionExitStatement:
|
178
189
|
Enabled: true
|
179
190
|
|
180
|
-
Rails/
|
191
|
+
Rails/UnusedIgnoredColumns:
|
181
192
|
Enabled: true
|
182
193
|
|
183
|
-
Rails/
|
194
|
+
Rails/UnusedRenderContent:
|
184
195
|
Enabled: true
|
185
196
|
|
186
|
-
Rails/
|
197
|
+
Rails/WhereEquals:
|
187
198
|
Enabled: true
|
188
199
|
|
189
|
-
Rails/
|
200
|
+
Rails/WhereMissing:
|
190
201
|
Enabled: true
|
191
202
|
|
192
|
-
Rails/
|
203
|
+
Rails/WhereNotWithMultipleConditions:
|
193
204
|
Enabled: true
|
194
|
-
AllowImplicitReturn: false
|
195
|
-
Exclude:
|
196
|
-
- "spec/factories/*.rb"
|
197
205
|
|
198
|
-
|
199
|
-
Enabled: true
|
206
|
+
|
200
207
|
|
201
208
|
Rails/WhereExists:
|
202
209
|
Enabled: true
|
data/config/rspec.yml
CHANGED
@@ -67,101 +67,101 @@ RSpec/VerifiedDoubleReference:
|
|
67
67
|
RSpec/SpecFilePathFormat:
|
68
68
|
Enabled: true
|
69
69
|
Exclude:
|
70
|
-
- "
|
71
|
-
- "
|
70
|
+
- "spec/factories/**/*.rb"
|
71
|
+
- "spec/components/**/*.rb"
|
72
72
|
|
73
73
|
RSpec/MissingExampleGroupArgument:
|
74
74
|
Enabled: true
|
75
75
|
Exclude:
|
76
|
-
- '
|
76
|
+
- 'spec/factories/**/*.rb'
|
77
77
|
|
78
78
|
RSpec/EmptyExampleGroup:
|
79
79
|
Enabled: true
|
80
80
|
Exclude:
|
81
|
-
- '
|
81
|
+
- 'spec/factories/**/*.rb'
|
82
82
|
|
83
83
|
RSpec/AnyInstance:
|
84
84
|
Enabled: false
|
85
85
|
Exclude:
|
86
|
-
- '
|
86
|
+
- 'spec/factories/**/*.rb'
|
87
87
|
|
88
88
|
RSpec/BeforeAfterAll:
|
89
89
|
Enabled: false
|
90
90
|
Exclude:
|
91
|
-
- '
|
91
|
+
- 'spec/factories/**/*.rb'
|
92
92
|
|
93
93
|
RSpec/ContextWording:
|
94
94
|
Enabled: false
|
95
95
|
Exclude:
|
96
|
-
- '
|
96
|
+
- 'spec/factories/**/*.rb'
|
97
97
|
|
98
98
|
RSpec/DescribeClass:
|
99
99
|
Enabled: false
|
100
100
|
Exclude:
|
101
|
-
- '
|
101
|
+
- 'spec/factories/**/*.rb'
|
102
102
|
|
103
103
|
RSpec/ExampleLength:
|
104
104
|
Enabled: false
|
105
105
|
Exclude:
|
106
|
-
- '
|
106
|
+
- 'spec/factories/**/*.rb'
|
107
107
|
|
108
108
|
RSpec/ExpectInHook:
|
109
109
|
Enabled: false
|
110
110
|
Exclude:
|
111
|
-
- '
|
111
|
+
- 'spec/factories/**/*.rb'
|
112
112
|
|
113
113
|
RSpec/FilePath:
|
114
114
|
Enabled: false
|
115
115
|
Exclude:
|
116
|
-
- '
|
116
|
+
- 'spec/factories/**/*.rb'
|
117
117
|
|
118
118
|
RSpec/InstanceVariable:
|
119
119
|
Enabled: false
|
120
120
|
Exclude:
|
121
|
-
- '
|
121
|
+
- 'spec/factories/**/*.rb'
|
122
122
|
|
123
123
|
RSpec/LetSetup:
|
124
124
|
Enabled: false
|
125
125
|
Exclude:
|
126
|
-
- '
|
126
|
+
- 'spec/factories/**/*.rb'
|
127
127
|
|
128
128
|
RSpec/MessageChain:
|
129
129
|
Enabled: false
|
130
130
|
Exclude:
|
131
|
-
- '
|
131
|
+
- 'spec/factories/**/*.rb'
|
132
132
|
|
133
133
|
RSpec/MessageSpies:
|
134
134
|
Enabled: false
|
135
135
|
Exclude:
|
136
|
-
- '
|
136
|
+
- 'spec/factories/**/*.rb'
|
137
137
|
|
138
138
|
RSpec/MultipleExpectations:
|
139
139
|
Enabled: false
|
140
140
|
Exclude:
|
141
|
-
- '
|
141
|
+
- 'spec/factories/**/*.rb'
|
142
142
|
|
143
143
|
RSpec/NamedSubject:
|
144
144
|
Enabled: false
|
145
145
|
Exclude:
|
146
|
-
- '
|
146
|
+
- 'spec/factories/**/*.rb'
|
147
147
|
|
148
148
|
RSpec/NestedGroups:
|
149
149
|
Max: 7
|
150
150
|
Exclude:
|
151
|
-
- '
|
151
|
+
- 'spec/factories/**/*.rb'
|
152
152
|
|
153
153
|
RSpec/SubjectStub:
|
154
154
|
Enabled: false
|
155
155
|
Exclude:
|
156
|
-
- '
|
156
|
+
- 'spec/factories/**/*.rb'
|
157
157
|
|
158
158
|
RSpec/VerifiedDoubles:
|
159
159
|
Enabled: false
|
160
160
|
Exclude:
|
161
|
-
- '
|
161
|
+
- 'spec/factories/**/*.rb'
|
162
162
|
|
163
163
|
RSpec/VoidExpect:
|
164
164
|
Enabled: false
|
165
165
|
Exclude:
|
166
|
-
- '
|
166
|
+
- 'spec/factories/**/*.rb'
|
167
167
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-inhouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nolan J Tait
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
|
-
rubygems_version: 3.5.
|
144
|
+
rubygems_version: 3.5.7
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Rubocop configuration for InHouse projects
|