google-style 1.30.0 → 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 +75 -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
|
@@ -172,6 +198,16 @@ Lint/RequireRangeParentheses:
|
|
172
198
|
Lint/RequireRelativeSelfPath:
|
173
199
|
Enabled: true
|
174
200
|
|
201
|
+
# Could be problematic for code refactoring, and overall not very useful.
|
202
|
+
Lint/SafeNavigationConsistency:
|
203
|
+
Enabled: false
|
204
|
+
|
205
|
+
Lint/SharedMutableDefault: # new in 1.70
|
206
|
+
Enabled: true
|
207
|
+
|
208
|
+
Lint/SuppressedExceptionInNumberConversion: # new in 1.72
|
209
|
+
Enabled: true
|
210
|
+
|
175
211
|
# Added in Rubocop 1.9
|
176
212
|
Lint/SymbolConversion:
|
177
213
|
Enabled: true
|
@@ -188,10 +224,23 @@ Lint/TripleQuotes:
|
|
188
224
|
Lint/UnexpectedBlockArity:
|
189
225
|
Enabled: true
|
190
226
|
|
227
|
+
Lint/UnescapedBracketInRegexp: # new in 1.68
|
228
|
+
Enabled: true
|
229
|
+
|
191
230
|
# Added in Rubocop 1.1
|
192
231
|
Lint/UnmodifiedReduceAccumulator:
|
193
232
|
Enabled: true
|
194
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
|
+
|
195
244
|
# Added in Rubocop 1.43
|
196
245
|
Lint/UselessRescue:
|
197
246
|
Enabled: true
|
@@ -247,6 +296,9 @@ Security/IoMethods:
|
|
247
296
|
Style/AccessorGrouping:
|
248
297
|
EnforcedStyle: separated
|
249
298
|
|
299
|
+
Style/AmbiguousEndlessMethodDefinition: # new in 1.68
|
300
|
+
Enabled: true
|
301
|
+
|
250
302
|
# Added in Rubocop 1.1
|
251
303
|
Style/ArgumentsForwarding:
|
252
304
|
Enabled: true
|
@@ -255,6 +307,9 @@ Style/ArgumentsForwarding:
|
|
255
307
|
RedundantRestArgumentNames: [] # To support Ruby < 3.2
|
256
308
|
UseAnonymousForwarding: false # To support Ruby < 3.2
|
257
309
|
|
310
|
+
Style/ArrayIntersect: # new in 1.40
|
311
|
+
Enabled: true
|
312
|
+
|
258
313
|
# Problematic for generated code which might include unicode in comments.
|
259
314
|
Style/AsciiComments:
|
260
315
|
Enabled: false
|
@@ -268,6 +323,9 @@ Style/CaseEquality:
|
|
268
323
|
Style/CollectionCompact:
|
269
324
|
Enabled: true
|
270
325
|
|
326
|
+
Style/CombinableDefined: # new in 1.68
|
327
|
+
Enabled: true
|
328
|
+
|
271
329
|
# Added in Rubocop 1.44
|
272
330
|
Style/ComparableClamp:
|
273
331
|
Enabled: true
|
@@ -276,6 +334,9 @@ Style/ComparableClamp:
|
|
276
334
|
Style/ConcatArrayLiterals:
|
277
335
|
Enabled: true
|
278
336
|
|
337
|
+
Style/DigChain: # new in 1.69
|
338
|
+
Enabled: true
|
339
|
+
|
279
340
|
# Added in Rubocop 1.48
|
280
341
|
Style/DirEmpty:
|
281
342
|
Enabled: true
|
@@ -332,6 +393,9 @@ Style/HashConversion:
|
|
332
393
|
Style/HashExcept:
|
333
394
|
Enabled: true
|
334
395
|
|
396
|
+
Style/HashFetchChain: # new in 1.75
|
397
|
+
Enabled: true
|
398
|
+
|
335
399
|
# It is sometimes preferable to use the non-modifier form even for single-line
|
336
400
|
# expressions, for readability.
|
337
401
|
Style/IfUnlessModifier:
|
@@ -345,6 +409,12 @@ Style/IfWithBooleanLiteralBranches:
|
|
345
409
|
Style/InPatternThen:
|
346
410
|
Enabled: true
|
347
411
|
|
412
|
+
Style/ItAssignment: # new in 1.70
|
413
|
+
Enabled: true
|
414
|
+
|
415
|
+
Style/ItBlockParameter: # new in 1.75
|
416
|
+
Enabled: true
|
417
|
+
|
348
418
|
# Added in Rubocop 1.35
|
349
419
|
Style/MagicCommentFormat:
|
350
420
|
Enabled: true
|
@@ -512,6 +582,10 @@ Style/RescueModifier:
|
|
512
582
|
Style/ReturnNilInPredicateMethodDefinition:
|
513
583
|
Enabled: true
|
514
584
|
|
585
|
+
# Disabled since length of navigation chain is not a problem.
|
586
|
+
Style/SafeNavigationChainLength: # new in 1.68
|
587
|
+
Enabled: false
|
588
|
+
|
515
589
|
# We disagree with this one. Grep is more specialized than select/reject.
|
516
590
|
Style/SelectByRegexp:
|
517
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: []
|