google-style 1.30.1 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/google-style.yml +71 -1
- data/lib/google/style/version.rb +1 -1
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19ac8fc1c77a6b4b23c25c09a54730139c039996e8e8da1f7ca7b79bf55ab4c7
|
4
|
+
data.tar.gz: de3eae83cd6c645102e316446cf58e0ab961ee03e3398013698f4c7a8a109f66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6a394edf9e866a24015d7f59856bfe7d7abdda0bbc5b1f519499d0e3c18c7eb927db185aa23d3496d8b4894051612ebd838da317bb53e012d1bca7f147166ed
|
7
|
+
data.tar.gz: aed88204a421e3101891ae77c89e37b687ce210212623c68f699e024184912eede12ddc5469f4e50c74161e847de17761be152063c440663786a76c5a9a362ee
|
data/google-style.yml
CHANGED
@@ -15,7 +15,10 @@
|
|
15
15
|
AllCops:
|
16
16
|
NewCops: disable
|
17
17
|
SuggestExtensions: false
|
18
|
-
TargetRubyVersion: 3.
|
18
|
+
TargetRubyVersion: 3.1
|
19
|
+
|
20
|
+
Gemspec/AddRuntimeDependency: # new in 1.65
|
21
|
+
Enabled: true
|
19
22
|
|
20
23
|
# Added in Rubocop 1.30
|
21
24
|
Gemspec/DeprecatedAttributeAssignment:
|
@@ -62,6 +65,9 @@ Layout/LineLength:
|
|
62
65
|
Layout/SpaceBeforeBrackets:
|
63
66
|
Enabled: true
|
64
67
|
|
68
|
+
Lint/ArrayLiteralInRegexp: # new in 1.71
|
69
|
+
Enabled: true
|
70
|
+
|
65
71
|
# Added in Rubocop 1.7
|
66
72
|
Lint/AmbiguousAssignment:
|
67
73
|
Enabled: true
|
@@ -78,6 +84,12 @@ Lint/AmbiguousRange:
|
|
78
84
|
Lint/ConstantOverwrittenInRescue:
|
79
85
|
Enabled: true
|
80
86
|
|
87
|
+
Lint/ConstantReassignment: # new in 1.70
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Lint/CopDirectiveSyntax: # new in 1.72
|
91
|
+
Enabled: true
|
92
|
+
|
81
93
|
# Samples often use Kernel#p which Lint/Debugger doesn't like.
|
82
94
|
Lint/Debugger:
|
83
95
|
Exclude:
|
@@ -104,6 +116,9 @@ Lint/DuplicateMatchPattern:
|
|
104
116
|
Lint/DuplicateRegexpCharacterClassElement:
|
105
117
|
Enabled: true
|
106
118
|
|
119
|
+
Lint/DuplicateSetElement: # new in 1.67
|
120
|
+
Enabled: true
|
121
|
+
|
107
122
|
# Added in Rubocop 1.1
|
108
123
|
Lint/EmptyBlock:
|
109
124
|
Enabled: true
|
@@ -116,6 +131,9 @@ Lint/EmptyClass:
|
|
116
131
|
Lint/EmptyInPattern:
|
117
132
|
Enabled: true
|
118
133
|
|
134
|
+
Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
|
135
|
+
Enabled: true
|
136
|
+
|
119
137
|
# Added in Rubocop 1.21
|
120
138
|
Lint/IncompatibleIoSelectWithFiberScheduler:
|
121
139
|
Enabled: true
|
@@ -148,6 +166,10 @@ Lint/NonAtomicFileOperation:
|
|
148
166
|
Lint/NumberedParameterAssignment:
|
149
167
|
Enabled: true
|
150
168
|
|
169
|
+
# Can easily appear in the generated code
|
170
|
+
Lint/NumericOperationWithConstantResult: # new in 1.69
|
171
|
+
Enabled: false
|
172
|
+
|
151
173
|
# Added in Rubocop 1.9
|
152
174
|
Lint/OrAssignmentToConstant:
|
153
175
|
Enabled: true
|
@@ -160,6 +182,10 @@ Lint/RedundantDirGlobSort:
|
|
160
182
|
Lint/RedundantRegexpQuantifiers:
|
161
183
|
Enabled: true
|
162
184
|
|
185
|
+
# Can easily appear in the generated code
|
186
|
+
Lint/RedundantTypeConversion: # new in 1.72
|
187
|
+
Enabled: false
|
188
|
+
|
163
189
|
# Added in Rubocop 1.27
|
164
190
|
Lint/RefinementImportMethods:
|
165
191
|
Enabled: true
|
@@ -176,6 +202,12 @@ Lint/RequireRelativeSelfPath:
|
|
176
202
|
Lint/SafeNavigationConsistency:
|
177
203
|
Enabled: false
|
178
204
|
|
205
|
+
Lint/SharedMutableDefault: # new in 1.70
|
206
|
+
Enabled: true
|
207
|
+
|
208
|
+
Lint/SuppressedExceptionInNumberConversion: # new in 1.72
|
209
|
+
Enabled: true
|
210
|
+
|
179
211
|
# Added in Rubocop 1.9
|
180
212
|
Lint/SymbolConversion:
|
181
213
|
Enabled: true
|
@@ -192,10 +224,23 @@ Lint/TripleQuotes:
|
|
192
224
|
Lint/UnexpectedBlockArity:
|
193
225
|
Enabled: true
|
194
226
|
|
227
|
+
Lint/UnescapedBracketInRegexp: # new in 1.68
|
228
|
+
Enabled: true
|
229
|
+
|
195
230
|
# Added in Rubocop 1.1
|
196
231
|
Lint/UnmodifiedReduceAccumulator:
|
197
232
|
Enabled: true
|
198
233
|
|
234
|
+
Lint/UselessConstantScoping: # new in 1.72
|
235
|
+
Enabled: true
|
236
|
+
|
237
|
+
Lint/UselessDefined: # new in 1.69
|
238
|
+
Enabled: true
|
239
|
+
|
240
|
+
# Can easily appear in the generated code
|
241
|
+
Lint/UselessNumericOperation: # new in 1.66
|
242
|
+
Enabled: false
|
243
|
+
|
199
244
|
# Added in Rubocop 1.43
|
200
245
|
Lint/UselessRescue:
|
201
246
|
Enabled: true
|
@@ -251,6 +296,9 @@ Security/IoMethods:
|
|
251
296
|
Style/AccessorGrouping:
|
252
297
|
EnforcedStyle: separated
|
253
298
|
|
299
|
+
Style/AmbiguousEndlessMethodDefinition: # new in 1.68
|
300
|
+
Enabled: true
|
301
|
+
|
254
302
|
# Added in Rubocop 1.1
|
255
303
|
Style/ArgumentsForwarding:
|
256
304
|
Enabled: true
|
@@ -259,6 +307,9 @@ Style/ArgumentsForwarding:
|
|
259
307
|
RedundantRestArgumentNames: [] # To support Ruby < 3.2
|
260
308
|
UseAnonymousForwarding: false # To support Ruby < 3.2
|
261
309
|
|
310
|
+
Style/ArrayIntersect: # new in 1.40
|
311
|
+
Enabled: true
|
312
|
+
|
262
313
|
# Problematic for generated code which might include unicode in comments.
|
263
314
|
Style/AsciiComments:
|
264
315
|
Enabled: false
|
@@ -272,6 +323,9 @@ Style/CaseEquality:
|
|
272
323
|
Style/CollectionCompact:
|
273
324
|
Enabled: true
|
274
325
|
|
326
|
+
Style/CombinableDefined: # new in 1.68
|
327
|
+
Enabled: true
|
328
|
+
|
275
329
|
# Added in Rubocop 1.44
|
276
330
|
Style/ComparableClamp:
|
277
331
|
Enabled: true
|
@@ -280,6 +334,9 @@ Style/ComparableClamp:
|
|
280
334
|
Style/ConcatArrayLiterals:
|
281
335
|
Enabled: true
|
282
336
|
|
337
|
+
Style/DigChain: # new in 1.69
|
338
|
+
Enabled: true
|
339
|
+
|
283
340
|
# Added in Rubocop 1.48
|
284
341
|
Style/DirEmpty:
|
285
342
|
Enabled: true
|
@@ -336,6 +393,9 @@ Style/HashConversion:
|
|
336
393
|
Style/HashExcept:
|
337
394
|
Enabled: true
|
338
395
|
|
396
|
+
Style/HashFetchChain: # new in 1.75
|
397
|
+
Enabled: true
|
398
|
+
|
339
399
|
# It is sometimes preferable to use the non-modifier form even for single-line
|
340
400
|
# expressions, for readability.
|
341
401
|
Style/IfUnlessModifier:
|
@@ -349,6 +409,12 @@ Style/IfWithBooleanLiteralBranches:
|
|
349
409
|
Style/InPatternThen:
|
350
410
|
Enabled: true
|
351
411
|
|
412
|
+
Style/ItAssignment: # new in 1.70
|
413
|
+
Enabled: true
|
414
|
+
|
415
|
+
Style/ItBlockParameter: # new in 1.75
|
416
|
+
Enabled: true
|
417
|
+
|
352
418
|
# Added in Rubocop 1.35
|
353
419
|
Style/MagicCommentFormat:
|
354
420
|
Enabled: true
|
@@ -516,6 +582,10 @@ Style/RescueModifier:
|
|
516
582
|
Style/ReturnNilInPredicateMethodDefinition:
|
517
583
|
Enabled: true
|
518
584
|
|
585
|
+
# Disabled since length of navigation chain is not a problem.
|
586
|
+
Style/SafeNavigationChainLength: # new in 1.68
|
587
|
+
Enabled: false
|
588
|
+
|
519
589
|
# We disagree with this one. Grep is more specialized than select/reject.
|
520
590
|
Style/SelectByRegexp:
|
521
591
|
Enabled: false
|
data/lib/google/style/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
8
|
- Graham Paye
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rubocop
|
@@ -17,14 +16,14 @@ dependencies:
|
|
17
16
|
requirements:
|
18
17
|
- - "~>"
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
19
|
+
version: '1.75'
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
24
|
- - "~>"
|
26
25
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
26
|
+
version: '1.75'
|
28
27
|
description: Shared style guide for Google's ruby projects
|
29
28
|
email:
|
30
29
|
- dazuma@google.com
|
@@ -43,7 +42,6 @@ homepage: https://github.com/googleapis/ruby-style/
|
|
43
42
|
licenses:
|
44
43
|
- Apache-2.0
|
45
44
|
metadata: {}
|
46
|
-
post_install_message:
|
47
45
|
rdoc_options: []
|
48
46
|
require_paths:
|
49
47
|
- lib
|
@@ -51,15 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
49
|
requirements:
|
52
50
|
- - ">="
|
53
51
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
52
|
+
version: 3.1.0
|
55
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
54
|
requirements:
|
57
55
|
- - ">="
|
58
56
|
- !ruby/object:Gem::Version
|
59
57
|
version: '0'
|
60
58
|
requirements: []
|
61
|
-
rubygems_version: 3.
|
62
|
-
signing_key:
|
59
|
+
rubygems_version: 3.6.8
|
63
60
|
specification_version: 4
|
64
61
|
summary: Collection of rubocop rules
|
65
62
|
test_files: []
|