rubocop-discourse 3.4.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35b608dad822a1609917cf7d64b1426414a7c3457a5f274bf8ca33c1b43e5435
4
- data.tar.gz: 69d5c9287ecf7762bdf87009b2e28173b63d23d5035cb8c792b31e494bc5e3a6
3
+ metadata.gz: e0e262563d61cc366463be45c83844f79bfd86dd8cb900d73dc1d967cd3589c3
4
+ data.tar.gz: 5bfe6b2cc743ea58a180e8a47ade170ddd897eec20a922e6181197bdca09a2e7
5
5
  SHA512:
6
- metadata.gz: 3f451974509c7ea0bd3c3030a5ad953cfd572a4230380b513de1db56ce0a4d6079a747df71e852129e94b4a639ded91989bb8019de0be6f0656822fdf56e80d3
7
- data.tar.gz: 6cb9f773b5f97a6902122830e9907723bc42f4a79dc1e9a26ef8644e85ea045bbcd89cfb307e5c6585aa548e3aa1cf2a495e96e97da39b5c938e8b2836446a70
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
- - 'lib/tasks/**/*'
41
- - 'script/**/*'
42
- - 'spec/**/*.rb'
43
- - 'plugins/*/spec/**/*'
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rubocop-discourse"
5
- s.version = "3.4.0"
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.1.0"
15
- s.add_runtime_dependency "rubocop-rspec", ">= 2.0.0"
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
@@ -27,21 +27,22 @@ RSpec/ContextWording:
27
27
  - if
28
28
  - as
29
29
  - after
30
+ - in
30
31
 
31
32
  RSpec/DescribeClass:
32
33
  Enabled: true
33
34
  Exclude:
34
- - '**/spec/features/**/*'
35
- - '**/spec/requests/**/*'
36
- - '**/spec/routing/**/*'
37
- - '**/spec/system/**/*'
38
- - '**/spec/views/**/*'
39
- - '**/spec/initializers/**/*'
40
- - '**/spec/integration/**/*'
41
- - '**/spec/integrity/**/*'
42
- - '**/spec/tasks/**/*'
43
- - '**/spec/lib/freedom_patches/**/*'
44
- - '**/spec/multisite/**/*'
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/**/*"
45
46
 
46
47
  RSpec/DescribeMethod:
47
48
  Enabled: true
@@ -53,12 +54,12 @@ RSpec/DescribedClass:
53
54
  Enabled: false # To be decided
54
55
 
55
56
  RSpec/DescribedClassModuleWrapping:
56
- Enabled: false # To be decided
57
+ Enabled: true
57
58
 
58
59
  RSpec/EmptyExampleGroup:
59
60
  Enabled: true
60
61
  Exclude:
61
- - 'spec/requests/api/*'
62
+ - "spec/requests/api/*"
62
63
 
63
64
  RSpec/EmptyLineAfterExample:
64
65
  Enabled: false # TODO
@@ -91,7 +92,7 @@ RSpec/ExpectChange:
91
92
  Enabled: false # To be decided
92
93
 
93
94
  RSpec/ExpectInHook:
94
- Enabled: false # To be decided
95
+ Enabled: false
95
96
 
96
97
  RSpec/ExpectOutput:
97
98
  Enabled: true
@@ -100,7 +101,7 @@ RSpec/SpecFilePathFormat:
100
101
  Enabled: false # To be decided
101
102
 
102
103
  RSpec/SpecFilePathSuffix:
103
- Enabled: false # To be decided
104
+ Enabled: true
104
105
 
105
106
  RSpec/Focus:
106
107
  Enabled: true
@@ -153,9 +154,15 @@ RSpec/MessageSpies:
153
154
  RSpec/MissingExampleGroupArgument:
154
155
  Enabled: true
155
156
 
157
+ RSpec/MultipleExpectations:
158
+ Enabled: false
159
+
156
160
  RSpec/MultipleDescribes:
157
161
  Enabled: false # TODO
158
162
 
163
+ RSpec/MultipleMemoizedHelpers:
164
+ Enabled: false
165
+
159
166
  RSpec/MultipleSubjects:
160
167
  Enabled: true
161
168
 
@@ -175,7 +182,7 @@ RSpec/ReceiveNever:
175
182
  Enabled: true
176
183
 
177
184
  RSpec/RepeatedDescription:
178
- Enabled: false # TODO
185
+ Enabled: false
179
186
 
180
187
  RSpec/RepeatedExample:
181
188
  Enabled: false # TODO
@@ -184,7 +191,7 @@ RSpec/RepeatedExampleGroupBody:
184
191
  Enabled: false # TODO
185
192
 
186
193
  RSpec/RepeatedExampleGroupDescription:
187
- Enabled: false # TODO
194
+ Enabled: false
188
195
 
189
196
  RSpec/ReturnFromStub:
190
197
  Enabled: true
@@ -222,6 +229,9 @@ Capybara/CurrentPathExpectation:
222
229
  RSpec/Capybara/FeatureMethods:
223
230
  Enabled: true
224
231
 
232
+ Capybara/VisibilityMatcher:
233
+ Enabled: true
234
+
225
235
  FactoryBot/AttributeDefinedStatically:
226
236
  Enabled: true
227
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.0
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-09-13 00:00:00.000000000 Z
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.1.0
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.1.0
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.0.0
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.0.0
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: '13.0'
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: '13.0'
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: '0'
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: '0'
68
+ version: 3.12.0
69
69
  description:
70
70
  email:
71
71
  executables: []