ruby_coding_standard 0.1.0 → 0.4.0

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: cb8d0a71c7737cc929bb7d6562859651460ca30a185761e089a40eaaf3a02101
4
- data.tar.gz: c17dea34c27d23f18e1b704eda2682772a5f1a753d84e737d104615145f6c085
3
+ metadata.gz: 4d1a4a688a236b53f29f46432e7e3971f782c17cb3149e86996e5668d61ad1c9
4
+ data.tar.gz: ee6131bb124902971539d347915a55c4c7d719e47914222a84ef5bdfb8f0204a
5
5
  SHA512:
6
- metadata.gz: 504b91fa368d9aad33016a8ff63d86a2133cf071cb6e08d100c511fbdba000a266887fb42cb0e647300ef2e3ebaa035f746ecf69b69bdf84bb6244ef002dec1f
7
- data.tar.gz: a0d98c9a82d36a84abec173026c554ef7abb0f208fad31fb1a4a405f721c8d3bfa6a1515b55b72e39eb7fe77115406ba5361d9e7e3b588d02042f59facec1ca9
6
+ metadata.gz: 600996953c650bc00caf08f8da5abd2696fef23f942fb230f8997bdfb7cff70963ff18a8831f70e2a8ce05f603b148b697acffa53cec93b001f66ea37b53625a
7
+ data.tar.gz: 35a725c2f84e6ed2fa7eb52c224e5e7d99f29291466eeda7a5a815e158b6a7c04afc36d2f7359d9981380e74c451e4de853b95bef381254869cbdba3fe87d018
data/.layout.yml CHANGED
@@ -1,14 +1,14 @@
1
1
  Layout/AccessModifierIndentation:
2
2
  EnforcedStyle: indent
3
3
 
4
- Layout/AlignArguments:
4
+ Layout/ArgumentAlignment:
5
5
  EnforcedStyle: with_fixed_indentation
6
6
 
7
- Layout/AlignHash:
7
+ Layout/HashAlignment:
8
8
  EnforcedHashRocketStyle: key
9
9
  EnforcedColonStyle: key
10
10
 
11
- Layout/AlignParameters:
11
+ Layout/ParameterAlignment:
12
12
  EnforcedStyle: with_fixed_indentation
13
13
 
14
14
  Layout/BlockAlignment:
@@ -102,28 +102,27 @@ Layout/FirstMethodParameterLineBreak:
102
102
  Layout/HeredocArgumentClosingParenthesis:
103
103
  Enabled: true
104
104
 
105
- Layout/IndentAssignment:
105
+ Layout/AssignmentIndentation:
106
106
  Enabled: true
107
107
 
108
- Layout/IndentFirstArgument:
108
+ Layout/FirstArgumentIndentation:
109
109
  Enabled: true
110
110
  EnforcedStyle: consistent
111
111
 
112
- Layout/IndentFirstArrayElement:
112
+ Layout/FirstArrayElementIndentation:
113
113
  Enabled: true
114
114
  EnforcedStyle: consistent
115
115
 
116
- Layout/IndentFirstHashElement:
116
+ Layout/FirstHashElementIndentation:
117
117
  Enabled: true
118
118
  EnforcedStyle: consistent
119
119
 
120
- Layout/IndentFirstParameter:
120
+ Layout/FirstParameterIndentation:
121
121
  Enabled: true
122
122
  EnforcedStyle: consistent
123
123
 
124
- Layout/IndentHeredoc:
124
+ Layout/HeredocIndentation:
125
125
  Enabled: true
126
- EnforcedStyle: squiggly
127
126
 
128
127
  Layout/IndentationConsistency:
129
128
  Enabled: true
@@ -136,7 +135,7 @@ Layout/IndentationWidth:
136
135
  Layout/InitialIndentation:
137
136
  Enabled: true
138
137
 
139
- Layout/LeadingBlankLines:
138
+ Layout/LeadingEmptyLines:
140
139
  Enabled: true
141
140
 
142
141
  Layout/LeadingCommentSpace:
@@ -266,13 +265,18 @@ Layout/SpaceInsideReferenceBrackets:
266
265
  EnforcedStyle: no_space
267
266
  EnforcedStyleForEmptyBrackets: no_space
268
267
 
269
- Layout/Tab:
268
+ Layout/IndentationStyle:
270
269
  Enabled: true
271
270
 
272
- Layout/TrailingBlankLines:
271
+ Layout/TrailingEmptyLines:
273
272
  Enabled: true
274
273
  EnforcedStyle: final_newline
275
274
 
276
275
  Layout/TrailingWhitespace:
277
276
  Enabled: true
278
277
  AllowInHeredoc: false
278
+
279
+ Layout/LineLength:
280
+ Enabled: true
281
+ IgnoreCopDirectives: true
282
+ Max: 120
data/.lint.yml CHANGED
@@ -29,10 +29,7 @@ Lint/DuplicateCaseCondition:
29
29
  Lint/DuplicateMethods:
30
30
  Enabled: true
31
31
 
32
- Lint/DuplicatedKey:
33
- Enabled: true
34
-
35
- Lint/EachWithObjectArgument:
32
+ Lint/DuplicateHashKey:
36
33
  Enabled: true
37
34
 
38
35
  Lint/ElseLayout:
@@ -47,7 +44,7 @@ Lint/EmptyInterpolation:
47
44
  Lint/EmptyWhen:
48
45
  Enabled: true
49
46
 
50
- Lint/EndInMethod:
47
+ Style/EndBlock:
51
48
  Enabled: true
52
49
 
53
50
  Lint/ErbNewArguments:
@@ -81,7 +78,7 @@ Lint/Loop:
81
78
  Lint/MissingCopEnableDirective:
82
79
  Enabled: true
83
80
 
84
- Lint/MultipleCompare:
81
+ Lint/MultipleComparison:
85
82
  Enabled: true
86
83
 
87
84
  Lint/NestedMethodDefinition:
@@ -150,7 +147,7 @@ Lint/ShadowedException:
150
147
  Lint/ShadowingOuterLocalVariable:
151
148
  Enabled: true
152
149
 
153
- Lint/StringConversionInInterpolation:
150
+ Lint/RedundantStringCoercion:
154
151
  Enabled: true
155
152
 
156
153
  Lint/Syntax:
@@ -162,16 +159,16 @@ Lint/ToJSON:
162
159
  Lint/UnifiedInteger:
163
160
  Enabled: true
164
161
 
165
- Lint/UnneededCopDisableDirective:
162
+ Lint/RedundantCopDisableDirective:
166
163
  Enabled: true
167
164
 
168
- Lint/UnneededCopEnableDirective:
165
+ Lint/RedundantCopEnableDirective:
169
166
  Enabled: true
170
167
 
171
- Lint/UnneededRequireStatement:
168
+ Lint/RedundantRequireStatement:
172
169
  Enabled: true
173
170
 
174
- Lint/UnneededSplatExpansion:
171
+ Lint/RedundantSplatExpansion:
175
172
  Enabled: true
176
173
 
177
174
  Lint/UnreachableCode:
@@ -189,7 +186,7 @@ Lint/UselessAccessModifier:
189
186
  Lint/UselessAssignment:
190
187
  Enabled: true
191
188
 
192
- Lint/UselessComparison:
189
+ Lint/BinaryOperatorWithIdenticalOperands:
193
190
  Enabled: true
194
191
 
195
192
  Lint/UselessElseWithoutRescue:
@@ -197,6 +194,3 @@ Lint/UselessElseWithoutRescue:
197
194
 
198
195
  Lint/UselessSetterCall:
199
196
  Enabled: true
200
-
201
- Lint/Void:
202
- Enabled: true
data/.metrics.yml CHANGED
@@ -12,11 +12,6 @@ Metrics/BlockLength:
12
12
  Metrics/CyclomaticComplexity:
13
13
  Enabled: true
14
14
 
15
- Metrics/LineLength:
16
- Enabled: true
17
- IgnoreCopDirectives: true
18
- Max: 120
19
-
20
15
  Metrics/ParameterLists:
21
16
  Enabled: true
22
17
 
data/.style.yml CHANGED
@@ -18,10 +18,6 @@ Style/BlockDelimiters:
18
18
  Enabled: true
19
19
  EnforcedStyle: line_count_based
20
20
 
21
- Style/BracesAroundHashParameters:
22
- Enabled: true
23
- EnforcedStyle: context_dependent
24
-
25
21
  Style/CharacterLiteral:
26
22
  Enabled: true
27
23
 
@@ -377,10 +373,10 @@ Style/TrivialAccessors:
377
373
  Style/UnlessElse:
378
374
  Enabled: true
379
375
 
380
- Style/UnneededCondition:
376
+ Style/RedundantCondition:
381
377
  Enabled: true
382
378
 
383
- Style/UnneededSort:
379
+ Style/RedundantSort:
384
380
  Enabled: true
385
381
 
386
382
  Style/UnpackFirst:
data/Gemfile.lock CHANGED
@@ -1,51 +1,58 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_coding_standard (0.1.0)
5
- rubocop
4
+ ruby_coding_standard (0.4.0)
5
+ rubocop (~> 1.32.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.4.0)
11
- diff-lcs (1.3)
12
- jaro_winkler (1.5.3)
13
- parallel (1.17.0)
14
- parser (2.6.3.0)
15
- ast (~> 2.4.0)
16
- rainbow (3.0.0)
17
- rake (10.5.0)
18
- rspec (3.8.0)
19
- rspec-core (~> 3.8.0)
20
- rspec-expectations (~> 3.8.0)
21
- rspec-mocks (~> 3.8.0)
22
- rspec-core (3.8.2)
23
- rspec-support (~> 3.8.0)
24
- rspec-expectations (3.8.4)
10
+ ast (2.4.2)
11
+ diff-lcs (1.5.0)
12
+ json (2.6.2)
13
+ parallel (1.22.1)
14
+ parser (3.1.2.0)
15
+ ast (~> 2.4.1)
16
+ rainbow (3.1.1)
17
+ rake (13.0.6)
18
+ regexp_parser (2.5.0)
19
+ rexml (3.2.5)
20
+ rspec (3.11.0)
21
+ rspec-core (~> 3.11.0)
22
+ rspec-expectations (~> 3.11.0)
23
+ rspec-mocks (~> 3.11.0)
24
+ rspec-core (3.11.0)
25
+ rspec-support (~> 3.11.0)
26
+ rspec-expectations (3.11.0)
25
27
  diff-lcs (>= 1.2.0, < 2.0)
26
- rspec-support (~> 3.8.0)
27
- rspec-mocks (3.8.1)
28
+ rspec-support (~> 3.11.0)
29
+ rspec-mocks (3.11.1)
28
30
  diff-lcs (>= 1.2.0, < 2.0)
29
- rspec-support (~> 3.8.0)
30
- rspec-support (3.8.2)
31
- rubocop (0.72.0)
32
- jaro_winkler (~> 1.5.1)
31
+ rspec-support (~> 3.11.0)
32
+ rspec-support (3.11.0)
33
+ rubocop (1.32.0)
34
+ json (~> 2.3)
33
35
  parallel (~> 1.10)
34
- parser (>= 2.6)
36
+ parser (>= 3.1.0.0)
35
37
  rainbow (>= 2.2.2, < 4.0)
38
+ regexp_parser (>= 1.8, < 3.0)
39
+ rexml (>= 3.2.5, < 4.0)
40
+ rubocop-ast (>= 1.19.1, < 2.0)
36
41
  ruby-progressbar (~> 1.7)
37
- unicode-display_width (>= 1.4.0, < 1.7)
38
- ruby-progressbar (1.10.1)
39
- unicode-display_width (1.6.0)
42
+ unicode-display_width (>= 1.4.0, < 3.0)
43
+ rubocop-ast (1.19.1)
44
+ parser (>= 3.1.1.0)
45
+ ruby-progressbar (1.11.0)
46
+ unicode-display_width (2.2.0)
40
47
 
41
48
  PLATFORMS
42
- ruby
49
+ x86_64-darwin-21
43
50
 
44
51
  DEPENDENCIES
45
52
  bundler (~> 2.0)
46
- rake (~> 10.0)
53
+ rake (~> 13.0)
47
54
  rspec (~> 3.0)
48
55
  ruby_coding_standard!
49
56
 
50
57
  BUNDLED WITH
51
- 2.0.1
58
+ 2.3.7
data/README.md CHANGED
@@ -20,18 +20,9 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ Add to your `.rubocop.yml` file
24
24
 
25
- ## Development
26
-
27
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
-
29
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
30
-
31
- ## Contributing
32
-
33
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ruby_coding_standard. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
34
-
35
- ## Code of Conduct
36
-
37
- Everyone interacting in the RubyCodingStandard project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ruby_coding_standard/blob/master/CODE_OF_CONDUCT.md).
25
+ ```yml
26
+ inherit_gem:
27
+ ruby_coding_standard: .rubocop.yml
28
+ ```
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyCodingStandard
4
- VERSION = "0.1.0"
4
+ VERSION = "0.4.0"
5
5
  public_constant :VERSION
6
6
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ["either.free@gmail.com"]
12
12
 
13
13
  spec.summary = "Ruby coding standard focused on reducing unnecessary changes, consistency, and developer's happiness."
14
- spec.description = "Ruby coding standard focused on reducing unnecessary changes, consistency, and developer's happiness."
14
+ spec.description = spec.summary
15
15
  spec.homepage = "https://github.com/bolshakov/ruby_coding_standard"
16
16
 
17
17
  # Specify which files should be added to the gem when it is released.
@@ -24,8 +24,8 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ["lib"]
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 2.0"
27
- spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rake", "~> 13.0"
28
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
29
 
30
- spec.add_runtime_dependency "rubocop"
30
+ spec.add_runtime_dependency "rubocop", "~> 1.32.0"
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_coding_standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tema Bolshakov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-14 00:00:00.000000000 Z
11
+ date: 2022-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.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: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 1.32.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 1.32.0
69
69
  description: Ruby coding standard focused on reducing unnecessary changes, consistency,
70
70
  and developer's happiness.
71
71
  email:
@@ -95,7 +95,7 @@ files:
95
95
  homepage: https://github.com/bolshakov/ruby_coding_standard
96
96
  licenses: []
97
97
  metadata: {}
98
- post_install_message:
98
+ post_install_message:
99
99
  rdoc_options: []
100
100
  require_paths:
101
101
  - lib
@@ -110,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubygems_version: 3.0.1
114
- signing_key:
113
+ rubygems_version: 3.3.7
114
+ signing_key:
115
115
  specification_version: 4
116
116
  summary: Ruby coding standard focused on reducing unnecessary changes, consistency,
117
117
  and developer's happiness.