datarockets-style 0.8.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/ISSUE_TEMPLATE/update-dependencies.md +1 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +59 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +59 -40
- data/README.md +2 -2
- data/RELEASING.md +16 -0
- data/config/base.yml +109 -0
- data/config/rails.yml +2 -2
- data/config/rspec.yml +3 -0
- data/datarockets-style.gemspec +4 -4
- data/doc/STYLE_GUIDE_RSPEC.md +4 -0
- data/lib/datarockets/style/formatter/todo_list_formatter.rb +2 -1
- data/lib/datarockets/style/formatter/todo_list_formatter/report_summary.rb +3 -3
- data/lib/datarockets/style/version.rb +1 -1
- metadata +26 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 13302183c2bb2361f4069f312d84b44569bdac9bd3e012868cf6845357d1754f
|
4
|
+
data.tar.gz: 6d8c66f18353e28136e855a7cf3a0ee1933c4103f68fc1cb0a602d8dcaa5190a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c17ff90118be39c8b0b078aea534e4a650e4c5dcb3dbccbda0cca6394c7372a97530b50112e76691155237b9944efd26d54fab5f7ef3437d20470c535f1f720b
|
7
|
+
data.tar.gz: 4ddba3d32c03980657729a5b46d7d186fe589ddff67a4d4743bf377180c58bd3d2e0de59451286b28accfa12384852c96a59cf1a150efe611a9d9d361e3cc870
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,65 @@
|
|
2
2
|
|
3
3
|
The format is described in [Contributing notes](CONTRIBUTING.md#changelog-entry-format).
|
4
4
|
|
5
|
-
## master
|
5
|
+
## master
|
6
|
+
|
7
|
+
## 1.0.0 (2020-11-10)
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
|
11
|
+
* Update rubocop to `1.2.0`.
|
12
|
+
* Update rubocop-rails to `2.8.1`.
|
13
|
+
* Update rubocop-rspec tp `2.0.0`.
|
14
|
+
|
15
|
+
## 0.11.0 (2020-11-07)
|
16
|
+
|
17
|
+
### Changed
|
18
|
+
|
19
|
+
* Update rubocop to '0.93.1'. ([@r.dubrovsky][])
|
20
|
+
* Enable new cops `Lint/BinaryOperatorWithIdenticalOperands`, `Lint/DuplicateRescueException`, `Lint/EmptyConditionalBody`, `Lint/FloatComparison`, `Lint/MissingSuper
|
21
|
+
`, `Lint/OutOfRangeRegexpRef`, `Lint/SelfAssignment`, `Lint/TopLevelReturnWithArgument`, `Lint/UnreachableLoop`, `Style/ExplicitBlockArgument`, `Style/GlobalStdStream`, `Style/OptionalBooleanParameter`, `Style/SingleArgumentDig`, `Style/SoleNestedConditional` and `Style/StringConcatenation` in version `0.89`.
|
22
|
+
* Allow to add all new lints automatically.
|
23
|
+
* Add auto-correctable count notification.
|
24
|
+
* Fix tests
|
25
|
+
* Update rubocop-rails to `2.7.1`.
|
26
|
+
* Update rubocop-rspec tp `1.43.2`.
|
27
|
+
* Disable `RSpec/MultipleMemoizedHelpers` cop.
|
28
|
+
|
29
|
+
## 0.10.0 (2020-07-17)
|
30
|
+
|
31
|
+
### Changed
|
32
|
+
|
33
|
+
* Update rubocop to `0.88.0`. ([@r.dubrovsky][])
|
34
|
+
* Enable new cops `Lint/MixedRegexpCaptureTypes`, `Style/RedundantRegexpCharacterClass` and `Style/RedundantRegexpEscape`. Cops were added in version `0.85`.
|
35
|
+
* Enable new cop `Style/RedundantFetchBlock`. Cop was added in version `0.86`.
|
36
|
+
* Enable new cops `Style/AccessorGrouping`, `Style/BisectedAttrAccessor` and `Style/RedundantAssignment`. Cops were added in version `0.87`.
|
37
|
+
* Enable new cops `Lint/DuplicateElsifCondition`, `Style/ArrayCoercion`, `Style/CaseLikeIf`, `Style/HashAsLastArrayItem`, `Style/HashLikeCase` and `Style/RedundantFileExtensionInRequire`. Cops were added in version `0.88`.
|
38
|
+
* Update rubocop-rails to `2.6.0`.
|
39
|
+
* Update rubocop-rspec to `1.42.0`.
|
40
|
+
|
41
|
+
* Setup `no_braces` rule for `Style/HashAsLastArrayItem` cop which added in the rubocop version `0.88`.
|
42
|
+
|
43
|
+
## 0.9.0 (2020-05-27)
|
44
|
+
|
45
|
+
### Changed
|
46
|
+
|
47
|
+
* **(Breaking)** Drop support for Ruby 2.3. ([@r.dubrovsky][])
|
48
|
+
|
49
|
+
* Update rubocop to `0.84.0`. ([@r.dubrovsky][])
|
50
|
+
* Enable new cops `Lint/RaiseException` and `Lint/StructNewOverride`. Cops were added in version `0.81`.
|
51
|
+
* Enable new cops `Layout/SpaceAroundMethodCallOperator` and `Style/ExponentialNotation`. Cops were added in version `0.82`.
|
52
|
+
* Enable new cops `Layout/EmptyLinesAroundAttributeAccessor` and `Style/SlicingWithRange`. Cops were added in version `0.83`.
|
53
|
+
* Enable new cop `Lint/DeprecatedOpenSSLConstant`. Cop was added in version `0.84`.
|
54
|
+
|
55
|
+
* Update rubocop-rails to `2.5.2`.
|
56
|
+
* Update rubocop-rspec to `1.39`.
|
57
|
+
* Update `activesupport` for fixing security issues.
|
58
|
+
|
59
|
+
## 0.8.1 (2020-03-02)
|
60
|
+
|
61
|
+
### Changed
|
62
|
+
|
63
|
+
* Update rubocop to `0.80.1`.
|
6
64
|
|
7
65
|
## 0.8.0 (2020-02-20)
|
8
66
|
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,61 +1,80 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
datarockets-style (0.
|
5
|
-
rubocop (
|
6
|
-
rubocop-rails (
|
7
|
-
rubocop-rspec (~>
|
4
|
+
datarockets-style (1.0.0)
|
5
|
+
rubocop (>= 1.2, < 2.0)
|
6
|
+
rubocop-rails (>= 2.8.0, < 2.9.0)
|
7
|
+
rubocop-rspec (~> 2.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
|
13
|
-
|
12
|
+
activesupport (6.0.3.4)
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
+
i18n (>= 0.7, < 2)
|
15
|
+
minitest (~> 5.1)
|
16
|
+
tzinfo (~> 1.1)
|
17
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
18
|
+
ast (2.4.1)
|
19
|
+
byebug (11.1.3)
|
14
20
|
coderay (1.1.2)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
pry
|
21
|
+
concurrent-ruby (1.1.7)
|
22
|
+
diff-lcs (1.4.4)
|
23
|
+
i18n (1.8.5)
|
24
|
+
concurrent-ruby (~> 1.0)
|
25
|
+
method_source (1.0.0)
|
26
|
+
minitest (5.14.2)
|
27
|
+
parallel (1.20.0)
|
28
|
+
parser (2.7.2.0)
|
29
|
+
ast (~> 2.4.1)
|
30
|
+
pry (0.13.1)
|
31
|
+
coderay (~> 1.1)
|
32
|
+
method_source (~> 1.0)
|
33
|
+
pry-byebug (3.9.0)
|
25
34
|
byebug (~> 11.0)
|
26
|
-
pry (~> 0.
|
27
|
-
rack (2.2.
|
35
|
+
pry (~> 0.13.0)
|
36
|
+
rack (2.2.3)
|
28
37
|
rainbow (3.0.0)
|
29
38
|
rake (13.0.1)
|
39
|
+
regexp_parser (1.8.2)
|
30
40
|
rexml (3.2.4)
|
31
|
-
rspec (3.
|
32
|
-
rspec-core (~> 3.
|
33
|
-
rspec-expectations (~> 3.
|
34
|
-
rspec-mocks (~> 3.
|
35
|
-
rspec-core (3.
|
36
|
-
rspec-support (~> 3.
|
37
|
-
rspec-expectations (3.
|
41
|
+
rspec (3.10.0)
|
42
|
+
rspec-core (~> 3.10.0)
|
43
|
+
rspec-expectations (~> 3.10.0)
|
44
|
+
rspec-mocks (~> 3.10.0)
|
45
|
+
rspec-core (3.10.0)
|
46
|
+
rspec-support (~> 3.10.0)
|
47
|
+
rspec-expectations (3.10.0)
|
38
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
-
rspec-support (~> 3.
|
40
|
-
rspec-mocks (3.
|
49
|
+
rspec-support (~> 3.10.0)
|
50
|
+
rspec-mocks (3.10.0)
|
41
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
-
rspec-support (~> 3.
|
43
|
-
rspec-support (3.
|
44
|
-
rubocop (
|
45
|
-
jaro_winkler (~> 1.5.1)
|
52
|
+
rspec-support (~> 3.10.0)
|
53
|
+
rspec-support (3.10.0)
|
54
|
+
rubocop (1.2.0)
|
46
55
|
parallel (~> 1.10)
|
47
|
-
parser (>= 2.7.
|
56
|
+
parser (>= 2.7.1.5)
|
48
57
|
rainbow (>= 2.2.2, < 4.0)
|
58
|
+
regexp_parser (>= 1.8)
|
49
59
|
rexml
|
60
|
+
rubocop-ast (>= 1.0.1)
|
50
61
|
ruby-progressbar (~> 1.7)
|
51
|
-
unicode-display_width (>= 1.4.0, <
|
52
|
-
rubocop-
|
62
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
63
|
+
rubocop-ast (1.1.1)
|
64
|
+
parser (>= 2.7.1.5)
|
65
|
+
rubocop-rails (2.8.1)
|
66
|
+
activesupport (>= 4.2.0)
|
53
67
|
rack (>= 1.1)
|
54
|
-
rubocop (>= 0.
|
55
|
-
rubocop-rspec (
|
56
|
-
rubocop (
|
68
|
+
rubocop (>= 0.87.0)
|
69
|
+
rubocop-rspec (2.0.0)
|
70
|
+
rubocop (~> 1.0)
|
71
|
+
rubocop-ast (>= 1.1.0)
|
57
72
|
ruby-progressbar (1.10.1)
|
58
|
-
|
73
|
+
thread_safe (0.3.6)
|
74
|
+
tzinfo (1.2.8)
|
75
|
+
thread_safe (~> 0.1)
|
76
|
+
unicode-display_width (1.7.0)
|
77
|
+
zeitwerk (2.4.1)
|
59
78
|
|
60
79
|
PLATFORMS
|
61
80
|
ruby
|
@@ -64,7 +83,7 @@ DEPENDENCIES
|
|
64
83
|
datarockets-style!
|
65
84
|
pry-byebug
|
66
85
|
rake (~> 13.0)
|
67
|
-
rspec (~> 3.
|
86
|
+
rspec (~> 3.10)
|
68
87
|
|
69
88
|
BUNDLED WITH
|
70
|
-
1.
|
89
|
+
2.1.4
|
data/README.md
CHANGED
@@ -10,14 +10,14 @@ Add this line to your application's Gemfile:
|
|
10
10
|
|
11
11
|
```ruby
|
12
12
|
group :test, :development do
|
13
|
-
gem 'datarockets-style'
|
13
|
+
gem 'datarockets-style', '~> 1.0.0'
|
14
14
|
end
|
15
15
|
```
|
16
16
|
|
17
17
|
Or, for a Ruby library, add this to your gemspec:
|
18
18
|
|
19
19
|
```ruby
|
20
|
-
spec.add_development_dependency 'datarockets-style'
|
20
|
+
spec.add_development_dependency 'datarockets-style', '~> 1.0.0'
|
21
21
|
```
|
22
22
|
|
23
23
|
And then execute:
|
data/RELEASING.md
CHANGED
@@ -15,3 +15,19 @@ gem push *built_file*
|
|
15
15
|
* Announce the new release,
|
16
16
|
making sure to say "thank you" to the contributors
|
17
17
|
who helped shape this version!
|
18
|
+
|
19
|
+
## Versioning stragety
|
20
|
+
|
21
|
+
As versioning strategy, we're using SemVer: `MAJOR.MINOR.PATCH`
|
22
|
+
|
23
|
+
A `MAJOR` version must be incremented if there are any backward-incompatible breaking changes included in a release. This has the benefit of making it easy for anyone to quickly identify if a new version will work differently than a previous one.
|
24
|
+
|
25
|
+
Usually, we'll increment it on updating major versions of rubocop dependencies. Ideally, it should be synchronized with the major verion of `rubocop`.
|
26
|
+
|
27
|
+
The `MINOR` version must be incremented if backward-compatible functionality is introduced. In the strictest sense, this means you should be able to upgrade to a new minor version without experiencing any breaking changes.
|
28
|
+
|
29
|
+
Usually, we'll increment it on changing the list of cops, updating minor versions of dependencies.
|
30
|
+
|
31
|
+
The `PATCH` version is meant for backward-compatible bug fixes. You should expect no new functionality with a new patch version, only improvements.
|
32
|
+
|
33
|
+
Usually, we'll use it for updating patch versions of dependencies or fixing bugs of the last version. Changed rules of cops in most cases should be added to minor version.
|
data/config/base.yml
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
require: datarockets/style
|
2
2
|
|
3
|
+
AllCops:
|
4
|
+
NewCops: enable
|
5
|
+
|
3
6
|
Bundler/DuplicatedGem:
|
4
7
|
Enabled: true
|
5
8
|
|
@@ -29,6 +32,9 @@ Layout/ParameterAlignment:
|
|
29
32
|
EnforcedStyle: with_fixed_indentation
|
30
33
|
IndentationWidth: 2
|
31
34
|
|
35
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
36
|
+
Enabled: true
|
37
|
+
|
32
38
|
Layout/EndAlignment:
|
33
39
|
EnforcedStyleAlignWith: variable
|
34
40
|
|
@@ -44,25 +50,98 @@ Layout/FirstHashElementIndentation:
|
|
44
50
|
Layout/MultilineMethodCallIndentation:
|
45
51
|
EnforcedStyle: indented
|
46
52
|
|
53
|
+
Layout/SpaceAroundMethodCallOperator:
|
54
|
+
Enabled: true
|
55
|
+
|
47
56
|
Layout/SpaceInsideHashLiteralBraces:
|
48
57
|
EnforcedStyle: no_space
|
49
58
|
EnforcedStyleForEmptyBraces: no_space
|
50
59
|
|
60
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Lint/DeprecatedOpenSSLConstant:
|
64
|
+
Enabled: true
|
65
|
+
|
66
|
+
Lint/DuplicateElsifCondition:
|
67
|
+
Enabled: true
|
68
|
+
|
69
|
+
Lint/DuplicateRescueException:
|
70
|
+
Enabled: true
|
71
|
+
|
72
|
+
Lint/EmptyConditionalBody:
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
Lint/FloatComparison:
|
76
|
+
Enabled: true
|
77
|
+
|
78
|
+
Lint/MissingSuper:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
Lint/MixedRegexpCaptureTypes:
|
82
|
+
Enabled: true
|
83
|
+
|
84
|
+
Lint/OutOfRangeRegexpRef:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
Lint/RaiseException:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Lint/SelfAssignment:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
Lint/StructNewOverride:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
Lint/TopLevelReturnWithArgument:
|
97
|
+
Enabled: true
|
98
|
+
|
99
|
+
Lint/UnreachableLoop:
|
100
|
+
Enabled: true
|
101
|
+
|
51
102
|
Naming/MemoizedInstanceVariableName:
|
52
103
|
EnforcedStyleForLeadingUnderscores: required
|
53
104
|
|
54
105
|
Naming/RescuedExceptionsVariableName:
|
55
106
|
PreferredName: error
|
56
107
|
|
108
|
+
Style/AccessorGrouping:
|
109
|
+
Enabled: true
|
110
|
+
|
111
|
+
Style/ArrayCoercion:
|
112
|
+
Enabled: true
|
113
|
+
|
114
|
+
Style/BisectedAttrAccessor:
|
115
|
+
Enabled: true
|
116
|
+
|
117
|
+
Style/CaseLikeIf:
|
118
|
+
Enabled: true
|
119
|
+
|
57
120
|
Style/ClassAndModuleChildren:
|
58
121
|
EnforcedStyle: nested
|
59
122
|
|
60
123
|
Style/EmptyMethod:
|
61
124
|
EnforcedStyle: expanded
|
62
125
|
|
126
|
+
Style/ExplicitBlockArgument:
|
127
|
+
Enabled: true
|
128
|
+
|
129
|
+
Style/ExponentialNotation:
|
130
|
+
Enabled: true
|
131
|
+
|
132
|
+
Style/GlobalStdStream:
|
133
|
+
Enabled: true
|
134
|
+
|
135
|
+
Style/HashAsLastArrayItem:
|
136
|
+
Enabled: true
|
137
|
+
EnforcedStyle: no_braces
|
138
|
+
|
63
139
|
Style/HashEachMethods:
|
64
140
|
Enabled: true
|
65
141
|
|
142
|
+
Style/HashLikeCase:
|
143
|
+
Enabled: true
|
144
|
+
|
66
145
|
Style/HashTransformKeys:
|
67
146
|
Enabled: true
|
68
147
|
|
@@ -75,5 +154,35 @@ Style/FrozenStringLiteralComment:
|
|
75
154
|
Style/NestedInterpolation:
|
76
155
|
Enabled: true
|
77
156
|
|
157
|
+
Style/OptionalBooleanParameter:
|
158
|
+
Enabled: true
|
159
|
+
|
160
|
+
Style/RedundantAssignment:
|
161
|
+
Enabled: true
|
162
|
+
|
163
|
+
Style/RedundantFetchBlock:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
Style/RedundantFileExtensionInRequire:
|
167
|
+
Enabled: true
|
168
|
+
|
169
|
+
Style/RedundantRegexpCharacterClass:
|
170
|
+
Enabled: true
|
171
|
+
|
172
|
+
Style/RedundantRegexpEscape:
|
173
|
+
Enabled: true
|
174
|
+
|
175
|
+
Style/SingleArgumentDig:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
Style/SlicingWithRange:
|
179
|
+
Enabled: true
|
180
|
+
|
181
|
+
Style/SoleNestedConditional:
|
182
|
+
Enabled: true
|
183
|
+
|
184
|
+
Style/StringConcatenation:
|
185
|
+
Enabled: true
|
186
|
+
|
78
187
|
Style/StringLiterals:
|
79
188
|
EnforcedStyle: double_quotes
|
data/config/rails.yml
CHANGED
data/config/rspec.yml
CHANGED
data/datarockets-style.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://github.com/datarockets/datarockets-style"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
|
-
spec.required_ruby_version = ">= 2.
|
15
|
+
spec.required_ruby_version = ">= 2.4.0"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
-
spec.add_dependency "rubocop", "
|
34
|
-
spec.add_dependency "rubocop-rails", "
|
35
|
-
spec.add_dependency "rubocop-rspec", "~>
|
33
|
+
spec.add_dependency "rubocop", ">= 1.2 ", "< 2.0"
|
34
|
+
spec.add_dependency "rubocop-rails", ">= 2.8.0", "< 2.9.0"
|
35
|
+
spec.add_dependency "rubocop-rspec", "~> 2.0"
|
36
36
|
end
|
data/doc/STYLE_GUIDE_RSPEC.md
CHANGED
@@ -15,6 +15,10 @@ This style guide recommends best practices for writing a clear Rspec tests and e
|
|
15
15
|
So there are not any limits for deep or nested groups.
|
16
16
|
<sup>[[link](#rspec-nested-groups)]</sup>
|
17
17
|
|
18
|
+
* <a name="rspec-let-count"></a>
|
19
|
+
We're not limiting a number of `let` blocks in describe and context blocks.
|
20
|
+
<sup>[[link](#rspec-let-count)]</sup>
|
21
|
+
|
18
22
|
* <a name="rspec-subject"></a>
|
19
23
|
Each subject should be named, and we should not use `subject` in our test cases.
|
20
24
|
Prefer to use `is_expected` that `expect(subject_name)` for small tests.
|
@@ -42,7 +42,8 @@ class TodoListFormatter < RuboCop::Formatter::ProgressFormatter
|
|
42
42
|
def finished(inspected_files)
|
43
43
|
report_summary(inspected_files.length,
|
44
44
|
@total_offense_count,
|
45
|
-
@total_correction_count
|
45
|
+
@total_correction_count,
|
46
|
+
@total_correctable_count)
|
46
47
|
output.puts
|
47
48
|
|
48
49
|
Datarockets::Style::Formatter::TodoListFormatter::ReportSummary.new(offense_list).call(output)
|
@@ -13,9 +13,9 @@ module Datarockets
|
|
13
13
|
class ReportSummary
|
14
14
|
attr_reader :offense_list
|
15
15
|
|
16
|
-
FileGroup = Struct.new(:file, :
|
16
|
+
FileGroup = Struct.new(:file, :offenses_count) do
|
17
17
|
def print(output)
|
18
|
-
output.puts " - '#{file}' # #{
|
18
|
+
output.puts " - '#{file}' # #{offenses_count}"
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -27,7 +27,7 @@ module Datarockets
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def print(output)
|
30
|
-
output.puts(cop_name
|
30
|
+
output.puts("#{cop_name}:")
|
31
31
|
output.puts(" Exclude:")
|
32
32
|
file_groups.sort_by(&:file).each do |file_group|
|
33
33
|
file_group.print(output)
|
metadata
CHANGED
@@ -1,57 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datarockets-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Dubrovsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.2'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
22
|
+
version: '2.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.2'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
32
|
+
version: '2.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rubocop-rails
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 2.8.0
|
40
|
+
- - "<"
|
32
41
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
42
|
+
version: 2.9.0
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - "
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.8.0
|
50
|
+
- - "<"
|
39
51
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
52
|
+
version: 2.9.0
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: rubocop-rspec
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
57
|
- - "~>"
|
46
58
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
59
|
+
version: '2.0'
|
48
60
|
type: :runtime
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
64
|
- - "~>"
|
53
65
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
66
|
+
version: '2.0'
|
55
67
|
description:
|
56
68
|
email:
|
57
69
|
- r.dubrovsky@datarockets.com
|
@@ -106,15 +118,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
118
|
requirements:
|
107
119
|
- - ">="
|
108
120
|
- !ruby/object:Gem::Version
|
109
|
-
version: 2.
|
121
|
+
version: 2.4.0
|
110
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
123
|
requirements:
|
112
124
|
- - ">="
|
113
125
|
- !ruby/object:Gem::Version
|
114
126
|
version: '0'
|
115
127
|
requirements: []
|
116
|
-
|
117
|
-
rubygems_version: 2.6.14
|
128
|
+
rubygems_version: 3.1.2
|
118
129
|
signing_key:
|
119
130
|
specification_version: 4
|
120
131
|
summary: Datarockets style guides and shared style configs
|