ergomentum_rubocop 0.9.0 → 0.12.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: 52917bbb303bf726e854631bcfd27537abac9f7a9ca7f94738571d113ff61b68
4
- data.tar.gz: a4389e5fa8908f579150c1672b4a4dcce842d970eb037babc0d7e498eb53a494
3
+ metadata.gz: e2f1c3a9b6c35bd7d9b10fcb76356dd875c01a02cb97d27804ff5323e5d4bbf3
4
+ data.tar.gz: ec981f1ae3404e2c7d5fdd4c91fb2c5c673536acb6b8b011371b82e03828f388
5
5
  SHA512:
6
- metadata.gz: e1dab0410e4ca59e4cc9cf6d9d5e09e18e54b541ac0a1e8a103aea9c4017238a377c1954c4126eed4277371c744e3a082ff69949b559c0c6d9248be2e6c169d7
7
- data.tar.gz: 889f813fc57596a81b912c664a932d0b4693a8db6ff31f2e9ffe5965feef73467ef9470f82d0aaa1667ca66489a971a4c3fb0df6cdd0793fd7558643ffef76d6
6
+ metadata.gz: c8ba3ba0a687911d6dae68cb6895d2c67ecb4064defe039a9e860df8125500abc68fa67bcb739ad8140178374b279596b2cce80f365e2e15baa55e55e6cb5add
7
+ data.tar.gz: fcc04fe30083156cfac6f2cb540a24a5d27e3ee414ba93c3deaa2a715d1e50020cfaa8eb48ed5ed1143ce1bbf3d44298cbf911cf72fd53e905177e80dfad95d1
data/Gemfile CHANGED
@@ -4,3 +4,11 @@ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in omniauth-shipcloud.gemspec
6
6
  gemspec
7
+
8
+ gem "byebug", "~> 11.1"
9
+ gem "rake", "~> 13.0"
10
+ gem "rspec", "~> 3.11"
11
+ gem "rspec_junit_formatter", "~> 0.5"
12
+ gem "simplecov", "~> 0.21"
13
+ gem "test-prof", "~> 1.0"
14
+ gem "webmock", "~> 3.14"
@@ -1,2 +1,4 @@
1
1
  inherit_from: default_shared.yml
2
2
 
3
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.10
4
+ Enabled: true
@@ -4,14 +4,26 @@ require:
4
4
 
5
5
  Rails/ActiveRecordCallbacksOrder:
6
6
  Enabled: true
7
+ Rails/ActionControllerTestCase: # new in 2.14
8
+ Enabled: true
7
9
  Rails/AddColumnIndex: # (new in 2.11)
8
10
  Enabled: true
9
11
  Rails/AfterCommitOverride:
10
12
  Enabled: true
11
13
  Rails/AttributeDefaultBlockValue: # (new in 2.9)
12
14
  Enabled: true
15
+ Rails/CompactBlank: # new in 2.13
16
+ Enabled: true
13
17
  Rails/Delegate:
14
18
  Enabled: false
19
+ Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
20
+ Enabled: true
21
+ Rails/DuplicateAssociation: # new in 2.14
22
+ Enabled: true
23
+ Rails/DuplicateScope: # new in 2.14
24
+ Enabled: true
25
+ Rails/DurationArithmetic: # new in 2.13
26
+ Enabled: true
15
27
  Rails/EagerEvaluationLogMessage: # (new in 2.11)
16
28
  Enabled: true
17
29
  Rails/EnvironmentVariableAccess: # (new in 2.10)
@@ -22,30 +34,44 @@ Rails/FilePath:
22
34
  EnforcedStyle: arguments
23
35
  Rails/FindById:
24
36
  Enabled: true
37
+ Rails/I18nLazyLookup: # new in 2.14
38
+ Enabled: true
25
39
  Rails/I18nLocaleAssignment: # (new in 2.11)
26
40
  Enabled: true
41
+ Rails/I18nLocaleTexts: # new in 2.14
42
+ Enabled: true
27
43
  Rails/Inquiry:
28
44
  Enabled: true
29
45
  Rails/MailerName:
30
46
  Enabled: true
31
47
  Rails/MatchRoute:
32
48
  Enabled: true
49
+ Rails/MigrationClassName: # new in 2.14
50
+ Enabled: true
33
51
  Rails/NegateInclude:
34
52
  Enabled: true
35
53
  Rails/Pluck:
36
54
  Enabled: true
37
55
  Rails/PluckInWhere:
38
56
  Enabled: true
57
+ Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
58
+ Enabled: true
59
+ Rails/RedundantTravelBack: # new in 2.12
60
+ Enabled: true
39
61
  Rails/RenderInline:
40
62
  Enabled: true
41
63
  Rails/RenderPlainText:
42
64
  Enabled: true
65
+ Rails/RootJoinChain: # new in 2.13
66
+ Enabled: true
43
67
  Rails/ShortI18n:
44
68
  Enabled: true
45
69
  Rails/SquishedSQLHeredocs:
46
70
  Enabled: true
47
71
  Rails/TimeZoneAssignment: # (new in 2.10)
48
72
  Enabled: true
73
+ Rails/TransactionExitStatement: # new in 2.14
74
+ Enabled: true
49
75
  Rails/UnusedIgnoredColumns: # (new in 2.11)
50
76
  Enabled: true
51
77
  Rails/WhereEquals: # (new in 2.9)
@@ -5,6 +5,10 @@ AllCops:
5
5
  Exclude:
6
6
  - vendor/**/*
7
7
  - node_modules/**/*
8
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
9
+ Enabled: true
10
+ Gemspec/DevelopmentDependencies: # new in 1.44
11
+ Enabled: true
8
12
  Gemspec/RequireMFA: # new in 1.23
9
13
  Enabled: true
10
14
  Layout/DotPosition:
@@ -15,6 +19,10 @@ Layout/FirstHashElementLineBreak:
15
19
  Enabled: true
16
20
  Layout/FirstMethodArgumentLineBreak:
17
21
  Enabled: true
22
+ Layout/LineContinuationLeadingSpace: # new in 1.31
23
+ Enabled: true
24
+ Layout/LineContinuationSpacing: # new in 1.31
25
+ Enabled: true
18
26
  Layout/LineLength:
19
27
  Max: 120
20
28
  Layout/MultilineMethodCallIndentation:
@@ -31,10 +39,16 @@ Lint/AmbiguousOperatorPrecedence: # new in 1.21
31
39
  Enabled: true
32
40
  Lint/AmbiguousRange: # (new in 1.19)
33
41
  Enabled: true
42
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
43
+ Enabled: true
34
44
  Lint/DeprecatedConstants: # (new in 1.8)
35
45
  Enabled: true
36
46
  Lint/DuplicateBranch: # (new in 1.3)
37
47
  Enabled: true
48
+ Lint/DuplicateMagicComment: # new in 1.37
49
+ Enabled: true
50
+ Lint/DuplicateMatchPattern: # new in 1.50
51
+ Enabled: true
38
52
  Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
39
53
  Enabled: true
40
54
  Lint/EmptyBlock: # (new in 1.1)
@@ -45,10 +59,24 @@ Lint/EmptyInPattern: # (new in 1.16)
45
59
  Enabled: true
46
60
  Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
47
61
  Enabled: true
62
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
63
+ Enabled: true
48
64
  Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
49
65
  Enabled: true
66
+ Lint/MixedCaseRange: # new in 1.53
67
+ Enabled: true
68
+ Lint/NonAtomicFileOperation: # new in 1.31
69
+ Enabled: true
70
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
71
+ Enabled: true
72
+ Lint/RequireRangeParentheses: # new in 1.32
73
+ Enabled: true
74
+ Lint/UselessRescue: # new in 1.43
75
+ Enabled: true
50
76
  Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
51
77
  Enabled: true
78
+ Lint/LiteralAssignmentInCondition: # new in 1.58
79
+ Enabled: true
52
80
  Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
53
81
  Enabled: true
54
82
  Lint/NumberedParameterAssignment: # (new in 1.9)
@@ -84,6 +112,8 @@ Metrics/BlockLength:
84
112
  - "*.gemspec"
85
113
  Metrics/ClassLength:
86
114
  Enabled: false
115
+ Metrics/CollectionLiteralLength: # new in 1.47
116
+ Enabled: true
87
117
  Metrics/MethodLength:
88
118
  Enabled: false
89
119
  Metrics/ModuleLength:
@@ -117,6 +147,8 @@ Performance/ConstantRegexp: # (new in 1.9)
117
147
  Enabled: true
118
148
  Performance/MapCompact: # (new in 1.11)
119
149
  Enabled: true
150
+ Performance/MapMethodChain: # new in 1.19
151
+ Enabled: true
120
152
  Performance/MethodObjectAsBlock: # (new in 1.9)
121
153
  Enabled: true
122
154
  Performance/RedundantEqualityComparisonBlock: # (new in 1.10)
@@ -145,6 +177,8 @@ Security/IoMethods: # new in 1.22
145
177
  Enabled: true
146
178
  Style/ArgumentsForwarding: # (new in 1.1)
147
179
  Enabled: true
180
+ Style/ArrayIntersect: # new in 1.40
181
+ Enabled: true
148
182
  Style/AsciiComments:
149
183
  Enabled: false
150
184
  Style/ClassAndModuleChildren:
@@ -156,16 +190,30 @@ Style/CollectionMethods:
156
190
  Enabled: true
157
191
  Style/CommentAnnotation:
158
192
  Enabled: false
193
+ Style/ComparableClamp: # new in 1.44
194
+ Enabled: true
195
+ Style/ConcatArrayLiterals: # new in 1.41
196
+ Enabled: true
197
+ Style/DataInheritance: # new in 1.49
198
+ Enabled: true
199
+ Style/DirEmpty: # new in 1.48
200
+ Enabled: true
159
201
  Style/Documentation:
160
202
  Enabled: false
161
203
  Style/DocumentDynamicEvalDefinition: # (new in 1.1)
162
204
  Enabled: true
205
+ Style/EmptyHeredoc: # new in 1.32
206
+ Enabled: true
163
207
  Style/EndlessMethod: # (new in 1.8)
164
208
  Enabled: true
165
209
  Style/EnvHome: # new in 1.29
166
210
  Enabled: true
211
+ Style/ExactRegexpMatch: # new in 1.51
212
+ Enabled: true
167
213
  Style/FetchEnvVar: # new in 1.28
168
214
  Enabled: true
215
+ Style/FileEmpty: # new in 1.48
216
+ Enabled: true
169
217
  Style/FileRead: # new in 1.24
170
218
  Enabled: true
171
219
  Style/FileWrite: # new in 1.24
@@ -182,8 +230,16 @@ Style/IfUnlessModifier:
182
230
  Enabled: false
183
231
  Style/IfWithBooleanLiteralBranches: # (new in 1.9)
184
232
  Enabled: true
233
+ Style/MagicCommentFormat: # new in 1.35
234
+ Enabled: true
235
+ Style/MapCompactWithConditionalBlock: # new in 1.30
236
+ Enabled: true
185
237
  Style/MapToHash: # new in 1.24
186
238
  Enabled: true
239
+ Style/MapToSet: # new in 1.42
240
+ Enabled: true
241
+ Style/MinMaxComparison: # new in 1.42
242
+ Enabled: true
187
243
  Style/MultilineBlockChain:
188
244
  Enabled: false
189
245
  Style/MultilineInPatternThen: # (new in 1.16)
@@ -204,6 +260,8 @@ Style/ObjectThen: # new in 1.28
204
260
  Enabled: true
205
261
  Style/OpenStructUse: # new in 1.23
206
262
  Enabled: true
263
+ Style/OperatorMethodCall: # new in 1.37
264
+ Enabled: true
207
265
  Style/OptionHash:
208
266
  Enabled: true
209
267
  SuspiciousParamNames:
@@ -216,12 +274,38 @@ Style/QuotedSymbols: # (new in 1.16)
216
274
  Enabled: true
217
275
  Style/RedundantArgument: # (new in 1.4)
218
276
  Enabled: true
277
+ Style/RedundantArrayConstructor: # new in 1.52
278
+ Enabled: true
279
+ Style/RedundantConstantBase: # new in 1.40
280
+ Enabled: true
281
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
282
+ Enabled: true
283
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
284
+ Enabled: true
285
+ Style/RedundantEach: # new in 1.38
286
+ Enabled: true
287
+ Style/RedundantFilterChain: # new in 1.52
288
+ Enabled: true
289
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
290
+ Enabled: true
219
291
  Style/RedundantInitialize: # new in 1.27
220
292
  Enabled: true
293
+ Style/RedundantLineContinuation: # new in 1.49
294
+ Enabled: true
295
+ Style/RedundantRegexpArgument: # new in 1.53
296
+ Enabled: true
297
+ Style/RedundantRegexpConstructor: # new in 1.52
298
+ Enabled: true
299
+ Style/RedundantStringEscape: # new in 1.37
300
+ Enabled: true
221
301
  Style/RedundantSelfAssignmentBranch: # (new in 1.19)
222
302
  Enabled: true
303
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
304
+ Enabled: true
223
305
  Style/SelectByRegexp: # new in 1.22
224
306
  Enabled: true
307
+ Style/SingleLineDoEndBlock: # new in 1.57
308
+ Enabled: true
225
309
  Style/StringChars: # (new in 1.12)
226
310
  Enabled: true
227
311
  Style/StringLiterals:
@@ -233,6 +317,8 @@ Style/StringLiteralsInInterpolation:
233
317
  SupportedStyles:
234
318
  - single_quotes
235
319
  - double_quotes
320
+ Style/SuperWithArgsParentheses: # new in 1.58
321
+ Enabled: true
236
322
  Style/SwapValues: # (new in 1.1)
237
323
  Enabled: true
238
324
  Style/TrailingCommaInArguments:
@@ -258,3 +344,5 @@ Style/TrailingCommaInHashLiteral:
258
344
  - no_comma
259
345
  Style/TrivialAccessors:
260
346
  Enabled: false
347
+ Style/YAMLFileRead: # new in 1.53
348
+ Enabled: true
@@ -17,24 +17,17 @@ Gem::Specification.new do |spec|
17
17
  spec.files = Dir.glob("{lib,config}/**/*") + %w[README.md Gemfile ergomentum_rubocop.gemspec]
18
18
 
19
19
  spec.require_paths = ["lib"]
20
- spec.required_ruby_version = ">= 3.1.0"
20
+ spec.required_ruby_version = ">= 3.2.0"
21
21
 
22
22
  spec.metadata["homepage_uri"] = spec.homepage
23
23
  spec.metadata["source_code_uri"] = "https://github.com/ergomentum/ergomentum_rubocop/"
24
24
  spec.metadata["changelog_uri"] = "https://github.com/ergomentum/ergomentum_rubocop/blob/main/CHANGELOG.md"
25
25
 
26
- spec.add_dependency "rubocop", "~> 1.29"
27
- spec.add_dependency "rubocop-performance", "~> 1.13"
28
- spec.add_dependency "rubocop-rails", "~> 2.14"
26
+ spec.add_dependency "rubocop", "~> 1.57"
27
+ spec.add_dependency "rubocop-performance", "~> 1.19"
28
+ spec.add_dependency "rubocop-rails", "~> 2.22"
29
29
  spec.add_dependency "rubocop-rake", "~> 0.6"
30
- spec.add_dependency "rubocop-rspec", "~> 2.10"
30
+ spec.add_dependency "rubocop-rspec", "~> 2.25"
31
31
 
32
- spec.add_development_dependency "byebug", "~> 11.1"
33
- spec.add_development_dependency "rake", "~> 13.0"
34
- spec.add_development_dependency "rspec", "~> 3.11"
35
- spec.add_development_dependency "rspec_junit_formatter", "~> 0.5"
36
- spec.add_development_dependency "simplecov", "~> 0.21"
37
- spec.add_development_dependency "test-prof", "~> 1.0"
38
- spec.add_development_dependency "webmock", "~> 3.14"
39
32
  spec.metadata["rubygems_mfa_required"] = "true"
40
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErgomentumRubocop
4
- VERSION = "0.9.0"
4
+ VERSION = "0.12.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ergomentum_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ERGOMENTUM
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-02 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.29'
19
+ version: '1.57'
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.29'
26
+ version: '1.57'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.13'
33
+ version: '1.19'
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: '1.13'
40
+ version: '1.19'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.14'
47
+ version: '2.22'
48
48
  type: :runtime
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: '2.14'
54
+ version: '2.22'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,112 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.10'
75
+ version: '2.25'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.10'
83
- - !ruby/object:Gem::Dependency
84
- name: byebug
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '11.1'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '11.1'
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '13.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '13.0'
111
- - !ruby/object:Gem::Dependency
112
- name: rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '3.11'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '3.11'
125
- - !ruby/object:Gem::Dependency
126
- name: rspec_junit_formatter
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '0.5'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '0.5'
139
- - !ruby/object:Gem::Dependency
140
- name: simplecov
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '0.21'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '0.21'
153
- - !ruby/object:Gem::Dependency
154
- name: test-prof
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '1.0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '1.0'
167
- - !ruby/object:Gem::Dependency
168
- name: webmock
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '3.14'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '3.14'
82
+ version: '2.25'
181
83
  description: 'Rubocop style checking for ERGOMENTUM projects.
182
84
 
183
85
  '
@@ -211,14 +113,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
113
  requirements:
212
114
  - - ">="
213
115
  - !ruby/object:Gem::Version
214
- version: 3.1.0
116
+ version: 3.2.0
215
117
  required_rubygems_version: !ruby/object:Gem::Requirement
216
118
  requirements:
217
119
  - - ">="
218
120
  - !ruby/object:Gem::Version
219
121
  version: '0'
220
122
  requirements: []
221
- rubygems_version: 3.3.3
123
+ rubygems_version: 3.4.10
222
124
  signing_key:
223
125
  specification_version: 4
224
126
  summary: ERGOMENTUM Rubocop definitions