ruby_coding_standard 0.1.0 → 0.4.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.
- checksums.yaml +4 -4
- data/.layout.yml +17 -13
- data/.lint.yml +9 -15
- data/.metrics.yml +0 -5
- data/.style.yml +2 -6
- data/Gemfile.lock +37 -30
- data/README.md +5 -14
- data/lib/ruby_coding_standard/version.rb +1 -1
- data/ruby_coding_standard.gemspec +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d1a4a688a236b53f29f46432e7e3971f782c17cb3149e86996e5668d61ad1c9
|
|
4
|
+
data.tar.gz: ee6131bb124902971539d347915a55c4c7d719e47914222a84ef5bdfb8f0204a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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/
|
|
4
|
+
Layout/ArgumentAlignment:
|
|
5
5
|
EnforcedStyle: with_fixed_indentation
|
|
6
6
|
|
|
7
|
-
Layout/
|
|
7
|
+
Layout/HashAlignment:
|
|
8
8
|
EnforcedHashRocketStyle: key
|
|
9
9
|
EnforcedColonStyle: key
|
|
10
10
|
|
|
11
|
-
Layout/
|
|
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/
|
|
105
|
+
Layout/AssignmentIndentation:
|
|
106
106
|
Enabled: true
|
|
107
107
|
|
|
108
|
-
Layout/
|
|
108
|
+
Layout/FirstArgumentIndentation:
|
|
109
109
|
Enabled: true
|
|
110
110
|
EnforcedStyle: consistent
|
|
111
111
|
|
|
112
|
-
Layout/
|
|
112
|
+
Layout/FirstArrayElementIndentation:
|
|
113
113
|
Enabled: true
|
|
114
114
|
EnforcedStyle: consistent
|
|
115
115
|
|
|
116
|
-
Layout/
|
|
116
|
+
Layout/FirstHashElementIndentation:
|
|
117
117
|
Enabled: true
|
|
118
118
|
EnforcedStyle: consistent
|
|
119
119
|
|
|
120
|
-
Layout/
|
|
120
|
+
Layout/FirstParameterIndentation:
|
|
121
121
|
Enabled: true
|
|
122
122
|
EnforcedStyle: consistent
|
|
123
123
|
|
|
124
|
-
Layout/
|
|
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/
|
|
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/
|
|
268
|
+
Layout/IndentationStyle:
|
|
270
269
|
Enabled: true
|
|
271
270
|
|
|
272
|
-
Layout/
|
|
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/
|
|
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
|
-
|
|
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/
|
|
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/
|
|
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/
|
|
162
|
+
Lint/RedundantCopDisableDirective:
|
|
166
163
|
Enabled: true
|
|
167
164
|
|
|
168
|
-
Lint/
|
|
165
|
+
Lint/RedundantCopEnableDirective:
|
|
169
166
|
Enabled: true
|
|
170
167
|
|
|
171
|
-
Lint/
|
|
168
|
+
Lint/RedundantRequireStatement:
|
|
172
169
|
Enabled: true
|
|
173
170
|
|
|
174
|
-
Lint/
|
|
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/
|
|
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
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/
|
|
376
|
+
Style/RedundantCondition:
|
|
381
377
|
Enabled: true
|
|
382
378
|
|
|
383
|
-
Style/
|
|
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.
|
|
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.
|
|
11
|
-
diff-lcs (1.
|
|
12
|
-
|
|
13
|
-
parallel (1.
|
|
14
|
-
parser (
|
|
15
|
-
ast (~> 2.4.
|
|
16
|
-
rainbow (3.
|
|
17
|
-
rake (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
rspec-
|
|
22
|
-
|
|
23
|
-
rspec-
|
|
24
|
-
rspec-
|
|
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.
|
|
27
|
-
rspec-mocks (3.
|
|
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.
|
|
30
|
-
rspec-support (3.
|
|
31
|
-
rubocop (
|
|
32
|
-
|
|
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 (>=
|
|
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, <
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
49
|
+
x86_64-darwin-21
|
|
43
50
|
|
|
44
51
|
DEPENDENCIES
|
|
45
52
|
bundler (~> 2.0)
|
|
46
|
-
rake (~>
|
|
53
|
+
rake (~> 13.0)
|
|
47
54
|
rspec (~> 3.0)
|
|
48
55
|
ruby_coding_standard!
|
|
49
56
|
|
|
50
57
|
BUNDLED WITH
|
|
51
|
-
2.
|
|
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
|
-
|
|
23
|
+
Add to your `.rubocop.yml` file
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
```
|
|
@@ -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 =
|
|
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", "~>
|
|
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.
|
|
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:
|
|
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: '
|
|
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: '
|
|
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:
|
|
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:
|
|
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.
|
|
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.
|