google-style 1.27.1 → 1.30.1
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 +25 -1
- data/lib/google/style/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 642853daf4046ea356bcd0f3636e36305b2fd071a26c7ae0af421604121d16d2
|
|
4
|
+
data.tar.gz: f7562b24e64c0754ca7a9eaa16074d730a196777a0d5a5cdaca1b6020e718394
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b8947fac3be046507c36e654fd9dbf9feef17fada0c411e533bc43e3d65716569653f8a7186c90689302ac3b01d27431db800e761f5d0445bb4f35cd812b0e3
|
|
7
|
+
data.tar.gz: 57b48d6cf5342583db7a5e79b055cf2fad609527f1b05c0577cbd382a0ca78d22df0f1336113c27a868e0cef11f5181608a0841c8ada3bb52f03a54b24564b8d
|
data/google-style.yml
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
AllCops:
|
|
16
16
|
NewCops: disable
|
|
17
17
|
SuggestExtensions: false
|
|
18
|
-
TargetRubyVersion:
|
|
18
|
+
TargetRubyVersion: 3.0
|
|
19
19
|
|
|
20
20
|
# Added in Rubocop 1.30
|
|
21
21
|
Gemspec/DeprecatedAttributeAssignment:
|
|
@@ -120,10 +120,18 @@ Lint/EmptyInPattern:
|
|
|
120
120
|
Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
121
121
|
Enabled: true
|
|
122
122
|
|
|
123
|
+
# Added in Rubocop 1.59
|
|
124
|
+
Lint/ItWithoutArgumentsInBlock:
|
|
125
|
+
Enabled: true
|
|
126
|
+
|
|
123
127
|
# Added in Rubocop 1.8
|
|
124
128
|
Lint/LambdaWithoutLiteralBlock:
|
|
125
129
|
Enabled: true
|
|
126
130
|
|
|
131
|
+
# Added in Rubocop 1.58
|
|
132
|
+
Lint/LiteralAssignmentInCondition:
|
|
133
|
+
Enabled: true
|
|
134
|
+
|
|
127
135
|
# Added in Rubocop 1.53
|
|
128
136
|
Lint/MixedCaseRange:
|
|
129
137
|
Enabled: true
|
|
@@ -164,6 +172,10 @@ Lint/RequireRangeParentheses:
|
|
|
164
172
|
Lint/RequireRelativeSelfPath:
|
|
165
173
|
Enabled: true
|
|
166
174
|
|
|
175
|
+
# Could be problematic for code refactoring, and overall not very useful.
|
|
176
|
+
Lint/SafeNavigationConsistency:
|
|
177
|
+
Enabled: false
|
|
178
|
+
|
|
167
179
|
# Added in Rubocop 1.9
|
|
168
180
|
Lint/SymbolConversion:
|
|
169
181
|
Enabled: true
|
|
@@ -345,6 +357,10 @@ Style/MagicCommentFormat:
|
|
|
345
357
|
Style/MapCompactWithConditionalBlock:
|
|
346
358
|
Enabled: true
|
|
347
359
|
|
|
360
|
+
# Added in Rubocop 1.63
|
|
361
|
+
Style/MapIntoArray:
|
|
362
|
+
Enabled: true
|
|
363
|
+
|
|
348
364
|
# Added in Rubocop 1.24
|
|
349
365
|
Style/MapToHash:
|
|
350
366
|
Enabled: true
|
|
@@ -504,6 +520,10 @@ Style/ReturnNilInPredicateMethodDefinition:
|
|
|
504
520
|
Style/SelectByRegexp:
|
|
505
521
|
Enabled: false
|
|
506
522
|
|
|
523
|
+
# Added in Rubocop 1.57
|
|
524
|
+
Style/SingleLineDoEndBlock:
|
|
525
|
+
Enabled: true
|
|
526
|
+
|
|
507
527
|
# Added in Rubocop 1.12
|
|
508
528
|
Style/StringChars:
|
|
509
529
|
Enabled: true
|
|
@@ -512,6 +532,10 @@ Style/StringChars:
|
|
|
512
532
|
Style/StringLiterals:
|
|
513
533
|
EnforcedStyle: double_quotes
|
|
514
534
|
|
|
535
|
+
# We prefer omitting parentheses where possible.
|
|
536
|
+
Style/SuperWithArgsParentheses:
|
|
537
|
+
Enabled: false
|
|
538
|
+
|
|
515
539
|
# Added in Rubocop 1.1
|
|
516
540
|
Style/SwapValues:
|
|
517
541
|
Enabled: true
|
data/lib/google/style/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-style
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.30.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Azuma
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2024-
|
|
12
|
+
date: 2024-10-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rubocop
|
|
@@ -17,14 +17,14 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '1.
|
|
20
|
+
version: '1.63'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: '1.
|
|
27
|
+
version: '1.63'
|
|
28
28
|
description: Shared style guide for Google's ruby projects
|
|
29
29
|
email:
|
|
30
30
|
- dazuma@google.com
|
|
@@ -51,14 +51,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
51
51
|
requirements:
|
|
52
52
|
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
54
|
+
version: 3.0.0
|
|
55
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
57
|
- - ">="
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
59
|
version: '0'
|
|
60
60
|
requirements: []
|
|
61
|
-
rubygems_version: 3.5.
|
|
61
|
+
rubygems_version: 3.5.21
|
|
62
62
|
signing_key:
|
|
63
63
|
specification_version: 4
|
|
64
64
|
summary: Collection of rubocop rules
|