standard 0.6.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -0
- data/Gemfile.lock +13 -12
- data/README.md +2 -1
- data/config/base.yml +39 -14
- data/config/ruby-2.3.yml +0 -4
- data/docs/RELEASE.md +10 -7
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdafc85bb1387d3491c006a507b527d3831a5980520a918131bb242e899d3a35
|
4
|
+
data.tar.gz: 4339051c4e2a9f268de90aa67a3de7bf2dbe3abbad8377b73ce1f471f747d210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3877c41ad4ee463801623eded88e7a715f521acd81bce6b2eb4de86353e379793c6262aec87c7c3034f507249da78a5712232d64d26a829a32bd1bb17d2ed72b
|
7
|
+
data.tar.gz: 0c74aa040926c89a1587398c712c29943775c8f943113fbf347f79132116c5c237a67e40d8ca98d0c2be4bd059238d9b8c69088c4f6f964bb9a7362e3e1fb375
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,45 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.8.1
|
4
|
+
|
5
|
+
* Make it match semver
|
6
|
+
|
7
|
+
## 0.8
|
8
|
+
|
9
|
+
* Update rubocop from 0.93.1 to [1.0.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.0.0)
|
10
|
+
* Update rubocop from 0.92 to
|
11
|
+
[0.93](https://github.com/rubocop-hq/rubocop/releases/tag/v0.93) to
|
12
|
+
[0.93.1](https://github.com/rubocop-hq/rubocop/releases/tag/v0.93.1) enabling:
|
13
|
+
* [`Style/ClassEqualityComparison`](https://github.com/rubocop-hq/rubocop/pull/8833)
|
14
|
+
* Disable `Performance/Sum` because #208 and the lack of actual auto-correcting is also causing more trouble
|
15
|
+
|
16
|
+
## 0.7
|
17
|
+
|
18
|
+
* Update rubocop from 0.91.1 to
|
19
|
+
[0.92](https://github.com/rubocop-hq/rubocop/releases/tag/v0.92)
|
20
|
+
|
21
|
+
## 0.6.2
|
22
|
+
|
23
|
+
* Update rubocop from 0.91 to
|
24
|
+
[0.91.1](https://github.com/rubocop-hq/rubocop/releases/tag/v0.91.1)
|
25
|
+
* Update rubocop-performance from 1.8.0 to 1.8.1:
|
26
|
+
* Enable `Performance/Sum`
|
27
|
+
|
28
|
+
## 0.6.1
|
29
|
+
|
30
|
+
* Update Rubocop from
|
31
|
+
[0.90](https://github.com/rubocop-hq/rubocop/releases/tag/v0.90.0)
|
32
|
+
to
|
33
|
+
[0.91](https://github.com/rubocop-hq/rubocop/releases/tag/v0.91.0),
|
34
|
+
enabling:
|
35
|
+
* [`Lint/UselessTimes`](https://github.com/rubocop-hq/rubocop/pull/8702)
|
36
|
+
* [`Layout/BeginEndAlignment`](https://github.com/rubocop-hq/rubocop/pull/8628)
|
37
|
+
* [`Lint/ConstantDefinitionInBlock`](https://github.com/rubocop-hq/rubocop/pull/8707)
|
38
|
+
* [`Lint/IdentityComparison`](https://github.com/rubocop-hq/rubocop/pull/8699/)
|
39
|
+
re-enabling after bug fixes:
|
40
|
+
* [`Bundler/DuplicatedGem`](https://github.com/rubocop-hq/rubocop/pull/8666)
|
41
|
+
* [`Naming/BinaryOperatorParameterName`](https://github.com/rubocop-hq/rubocop/issues/8664)
|
42
|
+
|
3
43
|
## 0.6.0
|
4
44
|
|
5
45
|
* Update Rubocop from
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (0.
|
5
|
-
rubocop (
|
6
|
-
rubocop-performance (
|
4
|
+
standard (0.8.1)
|
5
|
+
rubocop (= 1.0.0)
|
6
|
+
rubocop-performance (= 1.8.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -15,28 +15,29 @@ GEM
|
|
15
15
|
method_source (1.0.0)
|
16
16
|
minitest (5.14.2)
|
17
17
|
parallel (1.19.2)
|
18
|
-
parser (2.7.
|
18
|
+
parser (2.7.2.0)
|
19
19
|
ast (~> 2.4.1)
|
20
20
|
pry (0.13.1)
|
21
21
|
coderay (~> 1.1)
|
22
22
|
method_source (~> 1.0)
|
23
23
|
rainbow (3.0.0)
|
24
24
|
rake (13.0.1)
|
25
|
-
regexp_parser (1.
|
25
|
+
regexp_parser (1.8.2)
|
26
26
|
rexml (3.2.4)
|
27
|
-
rubocop (0.
|
27
|
+
rubocop (1.0.0)
|
28
28
|
parallel (~> 1.10)
|
29
|
-
parser (>= 2.7.1.
|
29
|
+
parser (>= 2.7.1.5)
|
30
30
|
rainbow (>= 2.2.2, < 4.0)
|
31
|
-
regexp_parser (>= 1.
|
31
|
+
regexp_parser (>= 1.8)
|
32
32
|
rexml
|
33
|
-
rubocop-ast (>= 0.
|
33
|
+
rubocop-ast (>= 0.6.0)
|
34
34
|
ruby-progressbar (~> 1.7)
|
35
35
|
unicode-display_width (>= 1.4.0, < 2.0)
|
36
|
-
rubocop-ast (0.
|
37
|
-
parser (>= 2.7.1.
|
38
|
-
rubocop-performance (1.8.
|
36
|
+
rubocop-ast (1.0.0)
|
37
|
+
parser (>= 2.7.1.5)
|
38
|
+
rubocop-performance (1.8.1)
|
39
39
|
rubocop (>= 0.87.0)
|
40
|
+
rubocop-ast (>= 0.4.0)
|
40
41
|
ruby-progressbar (1.10.1)
|
41
42
|
simplecov (0.19.0)
|
42
43
|
docile (~> 1.1)
|
data/README.md
CHANGED
@@ -100,7 +100,7 @@ When you run Standard in the future it will ignore these files as if they lived
|
|
100
100
|
`ignore` section in the `.standard.yml` file.
|
101
101
|
|
102
102
|
As you refactor your existing project you can remove files from the list. You can
|
103
|
-
also regenerate the todo file at
|
103
|
+
also regenerate the todo file at any time by re-running the above command.
|
104
104
|
|
105
105
|
### Using with Rake
|
106
106
|
|
@@ -384,6 +384,7 @@ Maybe! Start by searching the repository to see if there's an existing issue ope
|
|
384
384
|
the tool you're interested in. That aside, here are other known integrations aside
|
385
385
|
from editor plugins:
|
386
386
|
|
387
|
+
* [Code Climate](https://github.com/testdouble/standard/wiki/CI:-Code-Climate)
|
387
388
|
* [Pronto](https://github.com/julianrubisch/pronto-standardrb)
|
388
389
|
* [Spring](https://github.com/lakim/spring-commands-standard)
|
389
390
|
* [Guard](https://github.com/JodyVanden/guard-standardrb)
|
data/config/base.yml
CHANGED
@@ -7,6 +7,13 @@ AllCops:
|
|
7
7
|
DisabledByDefault: true
|
8
8
|
Exclude: []
|
9
9
|
|
10
|
+
Bundler/DuplicatedGem:
|
11
|
+
Enabled: true
|
12
|
+
Include:
|
13
|
+
- '**/*.gemfile'
|
14
|
+
- '**/Gemfile'
|
15
|
+
- '**/gems.rb'
|
16
|
+
|
10
17
|
Bundler/InsecureProtocolSource:
|
11
18
|
Enabled: true
|
12
19
|
Include:
|
@@ -32,16 +39,15 @@ Layout/ArrayAlignment:
|
|
32
39
|
Enabled: true
|
33
40
|
EnforcedStyle: with_fixed_indentation
|
34
41
|
|
35
|
-
Layout/
|
42
|
+
Layout/AssignmentIndentation:
|
36
43
|
Enabled: true
|
37
|
-
|
38
|
-
EnforcedColonStyle: key
|
39
|
-
EnforcedLastArgumentHashStyle: always_inspect
|
44
|
+
IndentationWidth: ~
|
40
45
|
|
41
|
-
Layout/
|
46
|
+
Layout/BeginEndAlignment:
|
42
47
|
Enabled: true
|
43
|
-
|
44
|
-
|
48
|
+
EnforcedStyleAlignWith: start_of_line
|
49
|
+
AutoCorrect: true
|
50
|
+
Severity: warning
|
45
51
|
|
46
52
|
Layout/BlockAlignment:
|
47
53
|
Enabled: true
|
@@ -149,15 +155,17 @@ Layout/FirstArrayElementIndentation:
|
|
149
155
|
EnforcedStyle: consistent
|
150
156
|
IndentationWidth: ~
|
151
157
|
|
152
|
-
Layout/AssignmentIndentation:
|
153
|
-
Enabled: true
|
154
|
-
IndentationWidth: ~
|
155
|
-
|
156
158
|
Layout/FirstHashElementIndentation:
|
157
159
|
Enabled: true
|
158
160
|
EnforcedStyle: consistent
|
159
161
|
IndentationWidth: ~
|
160
162
|
|
163
|
+
Layout/HashAlignment:
|
164
|
+
Enabled: true
|
165
|
+
EnforcedHashRocketStyle: key
|
166
|
+
EnforcedColonStyle: key
|
167
|
+
EnforcedLastArgumentHashStyle: always_inspect
|
168
|
+
|
161
169
|
Layout/HeredocIndentation:
|
162
170
|
Enabled: true
|
163
171
|
|
@@ -208,6 +216,11 @@ Layout/MultilineOperationIndentation:
|
|
208
216
|
EnforcedStyle: indented
|
209
217
|
IndentationWidth: ~
|
210
218
|
|
219
|
+
Layout/ParameterAlignment:
|
220
|
+
Enabled: true
|
221
|
+
EnforcedStyle: with_fixed_indentation
|
222
|
+
IndentationWidth: ~
|
223
|
+
|
211
224
|
Layout/RescueEnsureAlignment:
|
212
225
|
Enabled: true
|
213
226
|
|
@@ -335,6 +348,9 @@ Lint/BooleanSymbol:
|
|
335
348
|
Lint/CircularArgumentReference:
|
336
349
|
Enabled: true
|
337
350
|
|
351
|
+
Lint/ConstantDefinitionInBlock:
|
352
|
+
Enabled: true
|
353
|
+
|
338
354
|
Lint/Debugger:
|
339
355
|
Enabled: true
|
340
356
|
|
@@ -400,6 +416,9 @@ Lint/FloatOutOfRange:
|
|
400
416
|
Lint/FormatParameterMismatch:
|
401
417
|
Enabled: true
|
402
418
|
|
419
|
+
Lint/IdentityComparison:
|
420
|
+
Enabled: true
|
421
|
+
|
403
422
|
Lint/ImplicitStringConcatenation:
|
404
423
|
Enabled: true
|
405
424
|
|
@@ -562,6 +581,9 @@ Lint/UselessElseWithoutRescue:
|
|
562
581
|
Lint/UselessSetterCall:
|
563
582
|
Enabled: true
|
564
583
|
|
584
|
+
Lint/UselessTimes:
|
585
|
+
Enabled: true
|
586
|
+
|
565
587
|
Lint/Void:
|
566
588
|
Enabled: true
|
567
589
|
CheckForMethodsWithNoSideEffects: false
|
@@ -569,6 +591,9 @@ Lint/Void:
|
|
569
591
|
Migration/DepartmentName:
|
570
592
|
Enabled: true
|
571
593
|
|
594
|
+
Naming/BinaryOperatorParameterName:
|
595
|
+
Enabled: true
|
596
|
+
|
572
597
|
Naming/ClassAndModuleCamelCase:
|
573
598
|
Enabled: true
|
574
599
|
|
@@ -676,9 +701,6 @@ Performance/StartWith:
|
|
676
701
|
Performance/StringReplacement:
|
677
702
|
Enabled: true
|
678
703
|
|
679
|
-
Performance/Sum:
|
680
|
-
Enabled: false
|
681
|
-
|
682
704
|
Performance/UnfreezeString:
|
683
705
|
Enabled: true
|
684
706
|
|
@@ -767,6 +789,9 @@ Style/ClassCheck:
|
|
767
789
|
Enabled: true
|
768
790
|
EnforcedStyle: is_a?
|
769
791
|
|
792
|
+
Style/ClassEqualityComparison:
|
793
|
+
Enabled: true
|
794
|
+
|
770
795
|
Style/ClassMethods:
|
771
796
|
Enabled: true
|
772
797
|
|
data/config/ruby-2.3.yml
CHANGED
data/docs/RELEASE.md
CHANGED
@@ -22,18 +22,21 @@ really the only one we'll need for releasing the gem to
|
|
22
22
|
## Release steps
|
23
23
|
|
24
24
|
1. Make sure git is up to date and `bundle exec rake` exits cleanly
|
25
|
-
2.
|
25
|
+
2. If you upgraded a Rubocop dependency, be sure to lock it down in
|
26
|
+
`standard.gemspec`. Until Rubocop hits 1.0, we're going to stick to exact
|
27
|
+
release dependencies (e.g. "0.91.0" instead of "~> 0.91")
|
28
|
+
3. Bump the appropriate version segment in `lib/standard/version.rb` (basic
|
26
29
|
semantic versioning rules apply; if the release updates Rubocop, follow its
|
27
30
|
version bump at a minimum—if rubocop saw minor bump, we'll also bump the
|
28
31
|
minor version)
|
29
|
-
|
30
|
-
|
32
|
+
4. Run `bundle` so that Bundler writes this version to `Gemfile.lock`
|
33
|
+
5. Update `CHANGELOG.md` as exhaustively as you are able and set the top header
|
31
34
|
to that of the new version
|
32
|
-
|
35
|
+
6. Commit `lib/standard/version.rb`, `Gemfile.lock`, and `CHANGELOG.md` together
|
33
36
|
with the message equal to the new version (e.g. "0.42.1")
|
34
|
-
|
35
|
-
|
37
|
+
7. Finally, run `bundle exec rake release`, which will hopefully succeed
|
38
|
+
8. Provide your multi-factor-auth token when prompted to finish publishing the
|
36
39
|
gem
|
37
|
-
|
40
|
+
9. [Tweet](https://twitter.com) about your awesome new release! (Shameless
|
38
41
|
self-promotion is the most important part of open source software)
|
39
42
|
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "rubocop", "
|
23
|
-
spec.add_dependency "rubocop-performance", "
|
22
|
+
spec.add_dependency "rubocop", "1.0.0"
|
23
|
+
spec.add_dependency "rubocop-performance", "1.8.1"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler"
|
26
26
|
spec.add_development_dependency "minitest", "~> 5.0"
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-26 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
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.0.0
|
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:
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.8.
|
33
|
+
version: 1.8.1
|
34
34
|
type: :runtime
|
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.8.
|
40
|
+
version: 1.8.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|