google-style 1.25.0 → 1.25.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/google-style.yml +134 -7
  3. metadata +5 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e954fc240902e4faacb8fcdb6e4d40cd2b910e36408e73cc25cdf9010c2a7b10
4
- data.tar.gz: 58e410551ca3077977df5eed54c089e2a80e28482e6e9f07abf76e02594e67bc
3
+ metadata.gz: c8b6fc152c4c0d78c5e933d64a1a9b5fd355aaa18f9e889efe073994b75a4379
4
+ data.tar.gz: e3e0dbcdfd7beb63b8201d1083c3bbad01a0c46069edbe23ed0e0247e356857b
5
5
  SHA512:
6
- metadata.gz: a04d43f1bffbe7cb7edfb7a26039a95121c5aced3557a5fc233a3cdd37f4d673c577e69d3e8299a72fcd51fbb89aaf65621b91430f5e0668253ddbcd8f7af81f
7
- data.tar.gz: 46b22449cc84c46c005cc6b72e9a498a85e51e7b0f6aa54be308f2b186e8d659bfe04951cd3980a5a4e0b1b8f25a2e8786b891e1f05d21c6234b4f4d6e6858fe
6
+ metadata.gz: 36145174df5f7281ac6d953b806a55d9ac3422ce2a5f66ea9b5e64e93dfa30dc0e61d8386d118231d055a49731fa7ae186b3ed0be3e106de97c0fdf8217fd4d7
7
+ data.tar.gz: 976ea6551cd0d27b8b6cc412fd5d7920667181f6569698206f78225fef423690ca65b8aa913e0a39405e06b4327aa149e208705d61c8e701f009ad3eeb503fe0
data/google-style.yml CHANGED
@@ -1,11 +1,11 @@
1
1
  # Copyright 2019 Google LLC
2
-
2
+ #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
-
6
+ #
7
7
  # https://www.apache.org/licenses/LICENSE-2.0
8
-
8
+ #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -13,93 +13,220 @@
13
13
  # limitations under the License.
14
14
 
15
15
  AllCops:
16
- SuggestExtensions: true
16
+ NewCops: disable
17
+ SuggestExtensions: false
17
18
  TargetRubyVersion: 2.5
18
19
 
20
+ # Enforcing a blank line often worsens vertical layout.
19
21
  Layout/EmptyLineAfterGuardClause:
20
22
  Enabled: false
21
- Layout/EmptyLines: # for the extra line between copyright and code
23
+
24
+ # For the extra line between copyright and code.
25
+ Layout/EmptyLines:
22
26
  Enabled: false
27
+
28
+ # This tends to be problematic, especially for nested hashes. In many cases,
29
+ # our code adheres to the "table" style, but we do not want to enforce it.
23
30
  Layout/HashAlignment:
24
- EnforcedColonStyle: table
25
- EnforcedHashRocketStyle: table
31
+ Enabled: false
32
+
33
+ # Our current preferred line length.
26
34
  Layout/LineLength:
27
35
  Max: 120
36
+
37
+ # Added in Rubocop 1.7
28
38
  Layout/SpaceBeforeBrackets:
29
39
  Enabled: true
40
+
41
+ # Added in Rubocop 1.7
30
42
  Lint/AmbiguousAssignment:
31
43
  Enabled: true
44
+
45
+ # Added in Rubocop 1.8
32
46
  Lint/DeprecatedConstants:
33
47
  Enabled: true
48
+
49
+ # Added in Rubocop 1.3
34
50
  Lint/DuplicateBranch:
35
51
  Enabled: true
52
+
53
+ # Added in Rubocop 1.1
36
54
  Lint/DuplicateRegexpCharacterClassElement:
37
55
  Enabled: true
56
+
57
+ # Added in Rubocop 1.1
38
58
  Lint/EmptyBlock:
39
59
  Enabled: true
60
+
61
+ # Added in Rubocop 1.3
40
62
  Lint/EmptyClass:
41
63
  Enabled: true
64
+
65
+ # Added in Rubocop 1.8
42
66
  Lint/LambdaWithoutLiteralBlock:
43
67
  Enabled: true
68
+
69
+ # Added in Rubocop 1.2
44
70
  Lint/NoReturnInBeginEndBlocks:
45
71
  Enabled: true
72
+
73
+ # Added in Rubocop 1.9
74
+ Lint/NumberedParameterAssignment:
75
+ Enabled: true
76
+
77
+ # Added in Rubocop 1.9
78
+ Lint/OrAssignmentToConstant:
79
+ Enabled: true
80
+
81
+ # Added in Rubocop 1.8
46
82
  Lint/RedundantDirGlobSort:
47
83
  Enabled: true
84
+
85
+ # Added in Rubocop 1.9
86
+ Lint/SymbolConversion:
87
+ Enabled: true
88
+
89
+ # Added in Rubocop 1.1
48
90
  Lint/ToEnumArguments:
49
91
  Enabled: true
92
+
93
+ # Added in Rubocop 1.9
94
+ Lint/TripleQuotes:
95
+ Enabled: true
96
+
97
+ # Added in Rubocop 1.5
50
98
  Lint/UnexpectedBlockArity:
51
99
  Enabled: true
100
+
101
+ # Added in Rubocop 1.1
52
102
  Lint/UnmodifiedReduceAccumulator:
53
103
  Enabled: true
104
+
54
105
  Metrics/AbcSize:
55
106
  Max: 30
107
+
56
108
  Metrics/CyclomaticComplexity:
57
109
  Max: 10
110
+
58
111
  Metrics/MethodLength:
59
112
  Max: 25
113
+
114
+ # Sometimes problematic for API calls which might have a lot of parameters,
115
+ # and for generated code.
60
116
  Metrics/ParameterLists:
61
117
  Enabled: false
118
+
62
119
  Metrics/PerceivedComplexity:
63
120
  Max: 10
121
+
122
+ # Does not allow distinguishing verbs (e.g. is vs has). Also causes problems
123
+ # for generated code that might have generated method names.
124
+ Naming/PredicateName:
125
+ Enabled: false
126
+
127
+ # Numbers are occasionally semantically useful in names, and also occasionally
128
+ # appear in generated code.
64
129
  Naming/VariableNumber:
65
130
  Enabled: false
131
+
132
+ # Better to separate accessors for yardoc and type declarations.
133
+ Style/AccessorGrouping:
134
+ EnforcedStyle: separated
135
+
136
+ # Added in Rubocop 1.1
66
137
  Style/ArgumentsForwarding:
67
138
  Enabled: true
139
+
140
+ # Problematic for generated code which might include unicode in comments.
141
+ Style/AsciiComments:
142
+ Enabled: false
143
+
144
+ # There are cases where we use the === operator as a general interface, e.g.
145
+ # when specifying type checker objects.
146
+ Style/CaseEquality:
147
+ Enabled: false
148
+
149
+ # Added in Rubocop 1.2
68
150
  Style/CollectionCompact:
69
151
  Enabled: true
152
+
153
+ # Added in Rubocop 1.1
70
154
  Style/DocumentDynamicEvalDefinition:
71
155
  Enabled: true
156
+
157
+ # We prefer consistent method indentation.
72
158
  Style/EmptyMethod:
73
159
  EnforcedStyle: expanded
160
+
161
+ # Added in Rubocop 1.8
74
162
  Style/EndlessMethod:
75
163
  Enabled: true
164
+
165
+ # Frozen string literals are no more as of Ruby 3.
76
166
  Style/FrozenStringLiteralComment:
77
167
  Enabled: false
168
+
169
+ # Added in Rubocop 1.7
78
170
  Style/HashExcept:
79
171
  Enabled: true
172
+
173
+ # It is sometimes preferable to use the non-modifier form even for single-line
174
+ # expressions, for readability.
175
+ Style/IfUnlessModifier:
176
+ Enabled: false
177
+
178
+ # Added in Rubocop 1.9
179
+ Style/IfWithBooleanLiteralBranches:
180
+ Enabled: true
181
+
182
+ # We adopt Seattle-style paren usage
80
183
  Style/MethodCallWithArgsParentheses:
81
184
  AllowParenthesesInCamelCaseMethod: true
82
185
  AllowParenthesesInChaining: true
83
186
  AllowParenthesesInMultilineCall: true
84
187
  Enabled: true
85
188
  EnforcedStyle: omit_parentheses
189
+
190
+ # We adopt Seattle-style paren usage
86
191
  Style/MethodDefParentheses:
87
192
  EnforcedStyle: require_no_parentheses
193
+
194
+ # Enable use of the different semantics of module_function and extend self.
195
+ Style/ModuleFunction:
196
+ Enabled: false
197
+
198
+ # Added in Rubocop 1.2
88
199
  Style/NegatedIfElseCondition:
89
200
  Enabled: true
201
+
202
+ # Added in Rubocop 1.3
90
203
  Style/NilLambda:
91
204
  Enabled: true
205
+
206
+ # Added in Rubocop 1.4
92
207
  Style/RedundantArgument:
93
208
  Enabled: true
209
+
210
+ # The idiom is useful in a variety of cases. We prefer to allow it.
94
211
  Style/RescueModifier:
95
212
  Enabled: false
213
+
214
+ # We prefer standardizing on double-quoted strings for readability.
96
215
  Style/StringLiterals:
97
216
  EnforcedStyle: double_quotes
217
+
218
+ # Added in Rubocop 1.1
98
219
  Style/SwapValues:
99
220
  Enabled: true
221
+
222
+ # We prefer traditional bracket style for all arrays.
100
223
  Style/SymbolArray:
101
224
  EnforcedStyle: brackets
225
+
226
+ # There are some cases where a full method shows intent better than an attr.
102
227
  Style/TrivialAccessors:
103
228
  Enabled: false
229
+
230
+ # We prefer traditional bracket style for all arrays.
104
231
  Style/WordArray:
105
232
  EnforcedStyle: brackets
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Graham Paye
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-28 00:00:00.000000000 Z
11
+ date: 2021-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.8'
19
+ version: '1.9'
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.8'
26
+ version: '1.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubyforge_project:
87
- rubygems_version: 2.7.6
86
+ rubygems_version: 3.1.4
88
87
  signing_key:
89
88
  specification_version: 4
90
89
  summary: Collection of rubocop rules