google-style 1.27.1 → 1.30.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: 87007242fed89be89a436b81be70abd484e4f537c6a565c4150adfb0bb6552ed
4
- data.tar.gz: f7e4172dba6edaa4072a9f40c33d4fefc5e1c89c1e4d9308411ec2db51c80cd4
3
+ metadata.gz: 642853daf4046ea356bcd0f3636e36305b2fd071a26c7ae0af421604121d16d2
4
+ data.tar.gz: f7562b24e64c0754ca7a9eaa16074d730a196777a0d5a5cdaca1b6020e718394
5
5
  SHA512:
6
- metadata.gz: f25a2ec00e086296c7e9e8c99e89ee94a8add0697baef9d1e43b3d531c3e217d38cb4416ebd222c2275827a4cf443efd17405ad720a18cb0b25f98917d5e3633
7
- data.tar.gz: 94682d1ae0e65c8528f650f1192e55992b468523769c79ca7e8293f108d061e5abb08d1f521816ebc82e90961184a1d2c399ec2a576f58d5915f76cca190f984
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: 2.7
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
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Google
18
18
  module Style
19
- VERSION = "1.27.1"
19
+ VERSION = "1.30.1"
20
20
  end
21
21
  end
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.27.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-01-20 00:00:00.000000000 Z
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.56'
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.56'
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: 2.7.0
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.3
61
+ rubygems_version: 3.5.21
62
62
  signing_key:
63
63
  specification_version: 4
64
64
  summary: Collection of rubocop rules