google-style 0.1.0 → 1.25.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -5
  3. data/google-style.yml +63 -10
  4. metadata +9 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8aa56988922c61dd239a83a3516dfb229b86f74949ec06230e91b0c52beea0e
4
- data.tar.gz: 92d506ddd2b1a8ff5c7765ff33bef08ceca6d4ae11d80651fb2ebd849a750b17
3
+ metadata.gz: e954fc240902e4faacb8fcdb6e4d40cd2b910e36408e73cc25cdf9010c2a7b10
4
+ data.tar.gz: 58e410551ca3077977df5eed54c089e2a80e28482e6e9f07abf76e02594e67bc
5
5
  SHA512:
6
- metadata.gz: 66b251c31f425fee77ef38b09915fa5d5db6bcf8152e5549ee6e758cdeb24ff83f662b7e3e00b50d663dbfaedf1c214d9f7a6fbe3135e4b59138a875a6ae1876
7
- data.tar.gz: b26cb15940e106c065e8fdf972af46cd12b826ed8bada02fea65b636cb8f1f7f493af48e74f62c4884469d9463ff8cf85e63771d1a693cf60168fbc950adca69
6
+ metadata.gz: a04d43f1bffbe7cb7edfb7a26039a95121c5aced3557a5fc233a3cdd37f4d673c577e69d3e8299a72fcd51fbb89aaf65621b91430f5e0668253ddbcd8f7af81f
7
+ data.tar.gz: 46b22449cc84c46c005cc6b72e9a498a85e51e7b0f6aa54be308f2b186e8d659bfe04951cd3980a5a4e0b1b8f25a2e8786b891e1f05d21c6234b4f4d6e6858fe
data/README.md CHANGED
@@ -31,6 +31,16 @@ And run:
31
31
  bundle exec rubocop
32
32
  ```
33
33
 
34
+ ## Versioning
35
+
36
+ For all `1.x.x` gem versions:
37
+
38
+ - The target and required Ruby version will match the minor gem version. `1.24.0` targets Ruby 2.4. When `1.25.0` is released, it will target Ruby 2.5, and `1.30.0` will target Ruby 3.0.
39
+
40
+ - During a minor version bump, the rubocop dependency will be updated to the latest version.
41
+
42
+ - For these reasons, it is highly recommended that dependencies specify at least a specific minor version of this gem.
43
+
34
44
  ## Contributing
35
45
 
36
46
  Contributions to this library are always welcome and highly encouraged.
@@ -51,11 +61,12 @@ This library is licensed under Apache 2.0. Full license text is available in
51
61
 
52
62
  ## Supported Ruby Versions
53
63
 
54
- These libraries are currently supported on Ruby 2.3+.
64
+ These libraries are currently supported on Ruby 2.4+.
55
65
 
56
66
  Google provides official support for Ruby versions that are actively supported
57
67
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
58
- in security maintenance, and not end of life. Currently, this means Ruby 2.3
59
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
60
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
61
- about the Ruby support schedule.
68
+ in security maintenance, and not end of life. Currently, this means Ruby 2.4
69
+ and later. Starting with Ruby 2.4, minor releases of the google-style gem under
70
+ `1.x.x` will correspond with the required Ruby version, with `1.24.x` requiring
71
+ Ruby 2.4.
72
+ See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
@@ -13,22 +13,48 @@
13
13
  # limitations under the License.
14
14
 
15
15
  AllCops:
16
- TargetRubyVersion: 2.2
17
- Layout/AlignHash:
18
- EnforcedHashRocketStyle: table
19
- EnforcedColonStyle: table
16
+ SuggestExtensions: true
17
+ TargetRubyVersion: 2.5
18
+
20
19
  Layout/EmptyLineAfterGuardClause:
21
20
  Enabled: false
22
21
  Layout/EmptyLines: # for the extra line between copyright and code
23
22
  Enabled: false
23
+ Layout/HashAlignment:
24
+ EnforcedColonStyle: table
25
+ EnforcedHashRocketStyle: table
26
+ Layout/LineLength:
27
+ Max: 120
28
+ Layout/SpaceBeforeBrackets:
29
+ Enabled: true
30
+ Lint/AmbiguousAssignment:
31
+ Enabled: true
32
+ Lint/DeprecatedConstants:
33
+ Enabled: true
34
+ Lint/DuplicateBranch:
35
+ Enabled: true
36
+ Lint/DuplicateRegexpCharacterClassElement:
37
+ Enabled: true
38
+ Lint/EmptyBlock:
39
+ Enabled: true
40
+ Lint/EmptyClass:
41
+ Enabled: true
42
+ Lint/LambdaWithoutLiteralBlock:
43
+ Enabled: true
44
+ Lint/NoReturnInBeginEndBlocks:
45
+ Enabled: true
46
+ Lint/RedundantDirGlobSort:
47
+ Enabled: true
48
+ Lint/ToEnumArguments:
49
+ Enabled: true
50
+ Lint/UnexpectedBlockArity:
51
+ Enabled: true
52
+ Lint/UnmodifiedReduceAccumulator:
53
+ Enabled: true
24
54
  Metrics/AbcSize:
25
55
  Max: 30
26
- Metrics/ClassLength:
27
- Enabled: false
28
56
  Metrics/CyclomaticComplexity:
29
57
  Max: 10
30
- Metrics/LineLength:
31
- Max: 120
32
58
  Metrics/MethodLength:
33
59
  Max: 25
34
60
  Metrics/ParameterLists:
@@ -37,16 +63,43 @@ Metrics/PerceivedComplexity:
37
63
  Max: 10
38
64
  Naming/VariableNumber:
39
65
  Enabled: false
66
+ Style/ArgumentsForwarding:
67
+ Enabled: true
68
+ Style/CollectionCompact:
69
+ Enabled: true
70
+ Style/DocumentDynamicEvalDefinition:
71
+ Enabled: true
72
+ Style/EmptyMethod:
73
+ EnforcedStyle: expanded
74
+ Style/EndlessMethod:
75
+ Enabled: true
76
+ Style/FrozenStringLiteralComment:
77
+ Enabled: false
78
+ Style/HashExcept:
79
+ Enabled: true
40
80
  Style/MethodCallWithArgsParentheses:
81
+ AllowParenthesesInCamelCaseMethod: true
82
+ AllowParenthesesInChaining: true
83
+ AllowParenthesesInMultilineCall: true
41
84
  Enabled: true
42
85
  EnforcedStyle: omit_parentheses
43
- AllowParenthesesInMultilineCall: true
44
- AllowParenthesesInCamelCaseMethod: true
45
86
  Style/MethodDefParentheses:
46
87
  EnforcedStyle: require_no_parentheses
88
+ Style/NegatedIfElseCondition:
89
+ Enabled: true
90
+ Style/NilLambda:
91
+ Enabled: true
92
+ Style/RedundantArgument:
93
+ Enabled: true
47
94
  Style/RescueModifier:
48
95
  Enabled: false
49
96
  Style/StringLiterals:
50
97
  EnforcedStyle: double_quotes
98
+ Style/SwapValues:
99
+ Enabled: true
100
+ Style/SymbolArray:
101
+ EnforcedStyle: brackets
51
102
  Style/TrivialAccessors:
52
103
  Enabled: false
104
+ Style/WordArray:
105
+ 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: 0.1.0
4
+ version: 1.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Graham Paye
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2021-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.64.0
19
+ version: '1.8'
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: 0.64.0
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.17'
33
+ version: '2.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.17'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -76,14 +76,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 2.2.0
79
+ version: 2.5.0
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.0.3
86
+ rubyforge_project:
87
+ rubygems_version: 2.7.6
87
88
  signing_key:
88
89
  specification_version: 4
89
90
  summary: Collection of rubocop rules