rubocop-discourse 3.4.1 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/rubocop-core.yml +73 -4
- data/rubocop-discourse.gemspec +5 -5
- data/rubocop-rspec.yml +26 -17
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0e262563d61cc366463be45c83844f79bfd86dd8cb900d73dc1d967cd3589c3
|
4
|
+
data.tar.gz: 5bfe6b2cc743ea58a180e8a47ade170ddd897eec20a922e6181197bdca09a2e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc6f6abdbef09fe097091b9e1ed23971cc2e57a1096ec51bbac2719ac3a2bfaeba2206c137dece21adc9b3d085021528c4259652c8419d0e562ef14ae8b8929
|
7
|
+
data.tar.gz: 10678b059983bd37f4db56caf4d6de13c39aa6808cf8b74f6f716e47f957a46cef68346a2ed1ccc3791139b05681b79f1e7dd120e31393fa6352b9d9676e600b
|
data/rubocop-core.yml
CHANGED
@@ -37,10 +37,10 @@ Style/GlobalVars:
|
|
37
37
|
Enabled: true
|
38
38
|
Severity: warning
|
39
39
|
Exclude:
|
40
|
-
-
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
40
|
+
- "lib/tasks/**/*"
|
41
|
+
- "script/**/*"
|
42
|
+
- "spec/**/*.rb"
|
43
|
+
- "plugins/*/spec/**/*"
|
44
44
|
|
45
45
|
Style/InvertibleUnlessCondition:
|
46
46
|
Enabled: true
|
@@ -69,3 +69,72 @@ Bundler/OrderedGems:
|
|
69
69
|
|
70
70
|
Layout/LineLength:
|
71
71
|
Enabled: false
|
72
|
+
|
73
|
+
Lint/ParenthesesAsGroupedExpression:
|
74
|
+
Enabled: true
|
75
|
+
|
76
|
+
Lint/DuplicateMethods:
|
77
|
+
Enabled: true
|
78
|
+
|
79
|
+
Lint/RedundantWithIndex:
|
80
|
+
Enabled: true
|
81
|
+
|
82
|
+
Lint/RedundantRequireStatement:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
Lint/LiteralInInterpolation:
|
86
|
+
Enabled: true
|
87
|
+
|
88
|
+
Lint/RedundantStringCoercion:
|
89
|
+
Enabled: true
|
90
|
+
|
91
|
+
Lint/BooleanSymbol:
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
Lint/ShadowedArgument:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
Lint/RedundantCopDisableDirective:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Lint/EmptyEnsure:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
Lint/RedundantWithObject:
|
104
|
+
Enabled: true
|
105
|
+
|
106
|
+
Lint/SelfAssignment:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
Lint/Void:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Lint/UselessMethodDefinition:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
Lint/UnreachableCode:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
Lint/DeprecatedOpenSSLConstant:
|
119
|
+
Enabled: true
|
120
|
+
|
121
|
+
Lint/DisjunctiveAssignmentInConstructor:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
Lint/NonLocalExitFromIterator:
|
125
|
+
Enabled: true
|
126
|
+
|
127
|
+
Lint/DeprecatedClassMethods:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
Lint/SafeNavigationChain:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
Lint/RedundantSafeNavigation:
|
134
|
+
Enabled: true
|
135
|
+
|
136
|
+
Lint/EmptyConditionalBody:
|
137
|
+
Enabled: true
|
138
|
+
|
139
|
+
Lint/SafeNavigationConsistency:
|
140
|
+
Enabled: true
|
data/rubocop-discourse.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "rubocop-discourse"
|
5
|
-
s.version = "3.
|
5
|
+
s.version = "3.5.0"
|
6
6
|
s.summary = "Custom rubocop cops used by Discourse"
|
7
7
|
s.authors = ["Discourse Team"]
|
8
8
|
s.license = "MIT"
|
@@ -11,9 +11,9 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.files = `git ls-files`.split($/)
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
|
14
|
-
s.add_runtime_dependency "rubocop", ">= 1.
|
15
|
-
s.add_runtime_dependency "rubocop-rspec", ">= 2.
|
14
|
+
s.add_runtime_dependency "rubocop", ">= 1.59.0"
|
15
|
+
s.add_runtime_dependency "rubocop-rspec", ">= 2.25.0"
|
16
16
|
|
17
|
-
s.add_development_dependency "rake", "~> 13.0"
|
18
|
-
s.add_development_dependency "rspec"
|
17
|
+
s.add_development_dependency "rake", "~> 13.1.0"
|
18
|
+
s.add_development_dependency "rspec", "~> 3.12.0"
|
19
19
|
end
|
data/rubocop-rspec.yml
CHANGED
@@ -32,17 +32,17 @@ RSpec/ContextWording:
|
|
32
32
|
RSpec/DescribeClass:
|
33
33
|
Enabled: true
|
34
34
|
Exclude:
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
44
|
-
-
|
45
|
-
-
|
35
|
+
- "**/spec/features/**/*"
|
36
|
+
- "**/spec/requests/**/*"
|
37
|
+
- "**/spec/routing/**/*"
|
38
|
+
- "**/spec/system/**/*"
|
39
|
+
- "**/spec/views/**/*"
|
40
|
+
- "**/spec/initializers/**/*"
|
41
|
+
- "**/spec/integration/**/*"
|
42
|
+
- "**/spec/integrity/**/*"
|
43
|
+
- "**/spec/tasks/**/*"
|
44
|
+
- "**/spec/lib/freedom_patches/**/*"
|
45
|
+
- "**/spec/multisite/**/*"
|
46
46
|
|
47
47
|
RSpec/DescribeMethod:
|
48
48
|
Enabled: true
|
@@ -54,12 +54,12 @@ RSpec/DescribedClass:
|
|
54
54
|
Enabled: false # To be decided
|
55
55
|
|
56
56
|
RSpec/DescribedClassModuleWrapping:
|
57
|
-
Enabled:
|
57
|
+
Enabled: true
|
58
58
|
|
59
59
|
RSpec/EmptyExampleGroup:
|
60
60
|
Enabled: true
|
61
61
|
Exclude:
|
62
|
-
-
|
62
|
+
- "spec/requests/api/*"
|
63
63
|
|
64
64
|
RSpec/EmptyLineAfterExample:
|
65
65
|
Enabled: false # TODO
|
@@ -92,7 +92,7 @@ RSpec/ExpectChange:
|
|
92
92
|
Enabled: false # To be decided
|
93
93
|
|
94
94
|
RSpec/ExpectInHook:
|
95
|
-
Enabled: false
|
95
|
+
Enabled: false
|
96
96
|
|
97
97
|
RSpec/ExpectOutput:
|
98
98
|
Enabled: true
|
@@ -101,7 +101,7 @@ RSpec/SpecFilePathFormat:
|
|
101
101
|
Enabled: false # To be decided
|
102
102
|
|
103
103
|
RSpec/SpecFilePathSuffix:
|
104
|
-
Enabled:
|
104
|
+
Enabled: true
|
105
105
|
|
106
106
|
RSpec/Focus:
|
107
107
|
Enabled: true
|
@@ -154,9 +154,15 @@ RSpec/MessageSpies:
|
|
154
154
|
RSpec/MissingExampleGroupArgument:
|
155
155
|
Enabled: true
|
156
156
|
|
157
|
+
RSpec/MultipleExpectations:
|
158
|
+
Enabled: false
|
159
|
+
|
157
160
|
RSpec/MultipleDescribes:
|
158
161
|
Enabled: false # TODO
|
159
162
|
|
163
|
+
RSpec/MultipleMemoizedHelpers:
|
164
|
+
Enabled: false
|
165
|
+
|
160
166
|
RSpec/MultipleSubjects:
|
161
167
|
Enabled: true
|
162
168
|
|
@@ -176,7 +182,7 @@ RSpec/ReceiveNever:
|
|
176
182
|
Enabled: true
|
177
183
|
|
178
184
|
RSpec/RepeatedDescription:
|
179
|
-
Enabled: false
|
185
|
+
Enabled: false
|
180
186
|
|
181
187
|
RSpec/RepeatedExample:
|
182
188
|
Enabled: false # TODO
|
@@ -185,7 +191,7 @@ RSpec/RepeatedExampleGroupBody:
|
|
185
191
|
Enabled: false # TODO
|
186
192
|
|
187
193
|
RSpec/RepeatedExampleGroupDescription:
|
188
|
-
Enabled: false
|
194
|
+
Enabled: false
|
189
195
|
|
190
196
|
RSpec/ReturnFromStub:
|
191
197
|
Enabled: true
|
@@ -223,6 +229,9 @@ Capybara/CurrentPathExpectation:
|
|
223
229
|
RSpec/Capybara/FeatureMethods:
|
224
230
|
Enabled: true
|
225
231
|
|
232
|
+
Capybara/VisibilityMatcher:
|
233
|
+
Enabled: true
|
234
|
+
|
226
235
|
FactoryBot/AttributeDefinedStatically:
|
227
236
|
Enabled: true
|
228
237
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-discourse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Discourse Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.59.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.59.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.25.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.25.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 13.1.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 13.1.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 3.12.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 3.12.0
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
executables: []
|