rubocop-discourse 3.4.1 → 3.5.1

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: 55967a0ab5a874717eadec5f7ac5f06d726b5080187aff4ed2429461b56227d8
4
- data.tar.gz: 42f9dc93ca9d20ac5e4c105bd186e479446b451bb8d4e2752c3568d05dc0f621
3
+ metadata.gz: e2b049b290bf937da8f8b3a95203f25954bf2e85b16e003d0a200e4cf90aa52d
4
+ data.tar.gz: fbd835949b73e4de70aef27895cd7ba7210b4c4a8b911c7048f00112a6334f6f
5
5
  SHA512:
6
- metadata.gz: 47494189954eb4d825b80c72d58a62ac3e0ed2fb6288b3346a6a344e9950b0ce335dc2dbe161905e6e937d1e8dcd63763ceabd8d9207fd199709442bb8b9b01e
7
- data.tar.gz: 2aadfe6189b4c2f5466725eebfe103d31754c83e8862fe2e3f2d4eed121caeb552adbd0777e1ee89fee632e9664a83204efc7be9db478547ba3f48df035630f2
6
+ metadata.gz: 58db04806e8ab6cf509a5953cba0bc3d1e24476459a783314a8d39d86dd89d5d89a5f95bd9e5d74b4935a70ce475e6af974031d8724cad54fded6e1a5b0ec9eb
7
+ data.tar.gz: 8c45b4576541ade60ca9186359985c0b6d5ffd14a94d5c45ebd465d6bd10c997e1f86150815ed6348dacd11569c753d072524323e8c9c797eb1c722b6ca27aca
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,73 @@ 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
+ AutoCorrect: false # it breaks the code
94
+
95
+ Lint/ShadowedArgument:
96
+ Enabled: true
97
+
98
+ Lint/RedundantCopDisableDirective:
99
+ Enabled: true
100
+
101
+ Lint/EmptyEnsure:
102
+ Enabled: true
103
+
104
+ Lint/RedundantWithObject:
105
+ Enabled: true
106
+
107
+ Lint/SelfAssignment:
108
+ Enabled: true
109
+
110
+ Lint/Void:
111
+ Enabled: true
112
+
113
+ Lint/UselessMethodDefinition:
114
+ Enabled: true
115
+
116
+ Lint/UnreachableCode:
117
+ Enabled: true
118
+
119
+ Lint/DeprecatedOpenSSLConstant:
120
+ Enabled: true
121
+
122
+ Lint/DisjunctiveAssignmentInConstructor:
123
+ Enabled: true
124
+
125
+ Lint/NonLocalExitFromIterator:
126
+ Enabled: true
127
+
128
+ Lint/DeprecatedClassMethods:
129
+ Enabled: true
130
+
131
+ Lint/SafeNavigationChain:
132
+ Enabled: true
133
+
134
+ Lint/RedundantSafeNavigation:
135
+ Enabled: true
136
+
137
+ Lint/EmptyConditionalBody:
138
+ Enabled: true
139
+
140
+ Lint/SafeNavigationConsistency:
141
+ 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.1"
5
+ s.version = "3.5.1"
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
@@ -32,17 +32,17 @@ RSpec/ContextWording:
32
32
  RSpec/DescribeClass:
33
33
  Enabled: true
34
34
  Exclude:
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/**/*'
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: false # To be decided
57
+ Enabled: true
58
58
 
59
59
  RSpec/EmptyExampleGroup:
60
60
  Enabled: true
61
61
  Exclude:
62
- - 'spec/requests/api/*'
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 # To be decided
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: false # To be decided
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 # TODO
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 # TODO
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.1
4
+ version: 3.5.1
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-14 00:00:00.000000000 Z
11
+ date: 2023-12-15 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: []