standard 0.5.1 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -1
- data/Gemfile.lock +15 -14
- data/README.md +1 -1
- data/config/base.yml +54 -16
- data/config/ruby-2.2.yml +1 -4
- data/config/ruby-2.3.yml +8 -0
- data/docs/RELEASE.md +42 -0
- data/lib/standard/creates_config_store/assigns_rubocop_yaml.rb +2 -0
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -2
- metadata +12 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14026854b2cf5526ea4da24fe417dbe375ce35b8be9d372719685adb2962e3a7
|
4
|
+
data.tar.gz: 2ca105c020fcf869476e9791214ba47385e6cf3c4c86f4882a06ed8944a42ac3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c669d9ad8fe1add7fcefa8c27d8cac76a256d42cd116323d9fd4c5c96180d233e2b68e56588e44d0e879d1af628f50270766755c232342e89566989dea9193b
|
7
|
+
data.tar.gz: bf99598e81dc303d00bd3a8a3bafc8bcabb7fdb67e5bc3836b6b43f2760910435f725ea60afa0a67a10558765102fbd1d8cb08833e530947cae5a59eb6496526
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,55 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.7
|
4
|
+
|
5
|
+
* Update rubocop from 0.91.1 to
|
6
|
+
[0.92](https://github.com/rubocop-hq/rubocop/releases/tag/v0.92)
|
7
|
+
|
8
|
+
## 0.6.2
|
9
|
+
|
10
|
+
* Update rubocop from 0.91 to
|
11
|
+
[0.91.1](https://github.com/rubocop-hq/rubocop/releases/tag/v0.91.1)
|
12
|
+
* Update rubocop-performance from 1.8.0 to 1.8.1:
|
13
|
+
* Enable `Performance/Sum`
|
14
|
+
|
15
|
+
## 0.6.1
|
16
|
+
|
17
|
+
* Update Rubocop from
|
18
|
+
[0.90](https://github.com/rubocop-hq/rubocop/releases/tag/v0.90.0)
|
19
|
+
to
|
20
|
+
[0.91](https://github.com/rubocop-hq/rubocop/releases/tag/v0.91.0),
|
21
|
+
enabling:
|
22
|
+
* [`Lint/UselessTimes`](https://github.com/rubocop-hq/rubocop/pull/8702)
|
23
|
+
* [`Layout/BeginEndAlignment`](https://github.com/rubocop-hq/rubocop/pull/8628)
|
24
|
+
* [`Lint/ConstantDefinitionInBlock`](https://github.com/rubocop-hq/rubocop/pull/8707)
|
25
|
+
* [`Lint/IdentityComparison`](https://github.com/rubocop-hq/rubocop/pull/8699/)
|
26
|
+
re-enabling after bug fixes:
|
27
|
+
* [`Bundler/DuplicatedGem`](https://github.com/rubocop-hq/rubocop/pull/8666)
|
28
|
+
* [`Naming/BinaryOperatorParameterName`](https://github.com/rubocop-hq/rubocop/issues/8664)
|
29
|
+
|
30
|
+
## 0.6.0
|
31
|
+
|
32
|
+
* Update Rubocop from
|
33
|
+
[0.89.1](https://github.com/rubocop-hq/rubocop/releases/tag/v0.89.1)
|
34
|
+
to
|
35
|
+
[0.90](https://github.com/rubocop-hq/rubocop/releases/tag/v0.90.0),
|
36
|
+
enabling:
|
37
|
+
* [`Style/KeywordParametersOrder`](https://github.com/rubocop-hq/rubocop/pull/8563)
|
38
|
+
* [`Lint/DuplicateRequire`](https://github.com/rubocop-hq/rubocop/pull/8474)
|
39
|
+
* [`Lint/TrailingCommaInAttributeDeclaration`](https://github.com/rubocop-hq/rubocop/pull/8549)
|
40
|
+
* Update [`Style/Alias` to prefer `alias_method`](https://github.com/testdouble/standard/pull/196)
|
41
|
+
* Update rubocop-performance from 1.7.1 to 1.8.0:
|
42
|
+
* Plan to enable [`Performance/Sum`](https://github.com/rubocop-hq/rubocop-performance/pull/137) in the future, but there is currently a bug in the implementation
|
43
|
+
* Add `ruby-2.3.yml` to add support for 2.3.
|
44
|
+
|
45
|
+
## 0.5.2
|
46
|
+
|
47
|
+
* Turned off `Lint/MissingSuper`, because it effectively bans a common idiom in
|
48
|
+
Sorbet ([#195](https://github.com/testdouble/standard/issues/195)) and might
|
49
|
+
be a bit too heavy-handed/opinionated for cases where a class is designed
|
50
|
+
intentionally to not run its parent's initializer (like abstract superclasses
|
51
|
+
more generally)
|
52
|
+
|
3
53
|
## 0.5.1
|
4
54
|
|
5
55
|
* Enabled `Style/MultilineWhenThen`
|
@@ -100,4 +150,3 @@
|
|
100
150
|
## 0.3.0
|
101
151
|
|
102
152
|
* Update Standard to track Rubocop 0.82.0 ([commit](https://github.com/testdouble/standard/commit/d663ea62d519c659087ad606bfed031c6303ff20))
|
103
|
-
|
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.7)
|
5
|
+
rubocop (= 0.92)
|
6
|
+
rubocop-performance (= 1.8.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -13,32 +13,33 @@ GEM
|
|
13
13
|
docile (1.3.2)
|
14
14
|
gimme (0.5.0)
|
15
15
|
method_source (1.0.0)
|
16
|
-
minitest (5.14.
|
16
|
+
minitest (5.14.2)
|
17
17
|
parallel (1.19.2)
|
18
|
-
parser (2.7.1.
|
18
|
+
parser (2.7.1.5)
|
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.0)
|
26
26
|
rexml (3.2.4)
|
27
|
-
rubocop (0.
|
27
|
+
rubocop (0.92.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
31
|
regexp_parser (>= 1.7)
|
32
32
|
rexml
|
33
|
-
rubocop-ast (>= 0.
|
33
|
+
rubocop-ast (>= 0.5.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.
|
39
|
-
rubocop (>= 0.
|
36
|
+
rubocop-ast (0.5.0)
|
37
|
+
parser (>= 2.7.1.5)
|
38
|
+
rubocop-performance (1.8.1)
|
39
|
+
rubocop (>= 0.87.0)
|
40
|
+
rubocop-ast (>= 0.4.0)
|
40
41
|
ruby-progressbar (1.10.1)
|
41
|
-
simplecov (0.
|
42
|
+
simplecov (0.19.0)
|
42
43
|
docile (~> 1.1)
|
43
44
|
simplecov-html (~> 0.11)
|
44
45
|
simplecov-html (0.12.2)
|
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
|
|
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
|
|
@@ -350,10 +366,13 @@ Lint/DuplicateCaseCondition:
|
|
350
366
|
Lint/DuplicateElsifCondition:
|
351
367
|
Enabled: true
|
352
368
|
|
369
|
+
Lint/DuplicateHashKey:
|
370
|
+
Enabled: true
|
371
|
+
|
353
372
|
Lint/DuplicateMethods:
|
354
373
|
Enabled: true
|
355
374
|
|
356
|
-
Lint/
|
375
|
+
Lint/DuplicateRequire:
|
357
376
|
Enabled: true
|
358
377
|
|
359
378
|
Lint/DuplicateRescueException:
|
@@ -397,6 +416,9 @@ Lint/FloatOutOfRange:
|
|
397
416
|
Lint/FormatParameterMismatch:
|
398
417
|
Enabled: true
|
399
418
|
|
419
|
+
Lint/IdentityComparison:
|
420
|
+
Enabled: true
|
421
|
+
|
400
422
|
Lint/ImplicitStringConcatenation:
|
401
423
|
Enabled: true
|
402
424
|
|
@@ -423,9 +445,6 @@ Lint/MissingCopEnableDirective:
|
|
423
445
|
Enabled: true
|
424
446
|
MaximumRangeSize: .inf
|
425
447
|
|
426
|
-
Lint/MissingSuper:
|
427
|
-
Enabled: true
|
428
|
-
|
429
448
|
Lint/MixedRegexpCaptureTypes:
|
430
449
|
Enabled: true
|
431
450
|
|
@@ -535,6 +554,9 @@ Lint/Syntax:
|
|
535
554
|
Lint/TopLevelReturnWithArgument:
|
536
555
|
Enabled: true
|
537
556
|
|
557
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
558
|
+
Enabled: true
|
559
|
+
|
538
560
|
Lint/UnderscorePrefixedVariableName:
|
539
561
|
Enabled: true
|
540
562
|
|
@@ -559,6 +581,9 @@ Lint/UselessElseWithoutRescue:
|
|
559
581
|
Lint/UselessSetterCall:
|
560
582
|
Enabled: true
|
561
583
|
|
584
|
+
Lint/UselessTimes:
|
585
|
+
Enabled: true
|
586
|
+
|
562
587
|
Lint/Void:
|
563
588
|
Enabled: true
|
564
589
|
CheckForMethodsWithNoSideEffects: false
|
@@ -566,6 +591,9 @@ Lint/Void:
|
|
566
591
|
Migration/DepartmentName:
|
567
592
|
Enabled: true
|
568
593
|
|
594
|
+
Naming/BinaryOperatorParameterName:
|
595
|
+
Enabled: true
|
596
|
+
|
569
597
|
Naming/ClassAndModuleCamelCase:
|
570
598
|
Enabled: true
|
571
599
|
|
@@ -596,6 +624,9 @@ Performance/BindCall:
|
|
596
624
|
Performance/Caller:
|
597
625
|
Enabled: true
|
598
626
|
|
627
|
+
Performance/CollectionLiteralInLoop:
|
628
|
+
Enabled: false
|
629
|
+
|
599
630
|
Performance/CompareWithBlock:
|
600
631
|
Enabled: true
|
601
632
|
|
@@ -670,6 +701,10 @@ Performance/StartWith:
|
|
670
701
|
Performance/StringReplacement:
|
671
702
|
Enabled: true
|
672
703
|
|
704
|
+
Performance/Sum:
|
705
|
+
Enabled: true
|
706
|
+
AutoCorrect: true
|
707
|
+
|
673
708
|
Performance/UnfreezeString:
|
674
709
|
Enabled: true
|
675
710
|
|
@@ -729,7 +764,7 @@ Standard/SemanticBlocks:
|
|
729
764
|
|
730
765
|
Style/Alias:
|
731
766
|
Enabled: true
|
732
|
-
EnforcedStyle:
|
767
|
+
EnforcedStyle: prefer_alias_method
|
733
768
|
|
734
769
|
Style/AndOr:
|
735
770
|
Enabled: true
|
@@ -854,6 +889,9 @@ Style/InfiniteLoop:
|
|
854
889
|
Enabled: true
|
855
890
|
SafeAutoCorrect: true
|
856
891
|
|
892
|
+
Style/KeywordParametersOrder:
|
893
|
+
Enabled: true
|
894
|
+
|
857
895
|
Style/LambdaCall:
|
858
896
|
Enabled: true
|
859
897
|
EnforcedStyle: call
|
data/config/ruby-2.2.yml
CHANGED
data/config/ruby-2.3.yml
ADDED
data/docs/RELEASE.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# How to release Standard Ruby
|
2
|
+
|
3
|
+
Because this gem was generated with the [bundler `gem`
|
4
|
+
command](https://bundler.io/man/bundle-gem.1.html), [our Rakefile](/Rakefile)
|
5
|
+
loads `bundler/gem_tasks`, which provides a lot of the commands one needs
|
6
|
+
to manage a gem's release lifecycle:
|
7
|
+
|
8
|
+
```
|
9
|
+
$ rake -T
|
10
|
+
rake build # Build standard-x.x.x.gem into the pkg directory
|
11
|
+
rake clean # Remove any temporary products
|
12
|
+
rake clobber # Remove any generated files
|
13
|
+
rake install # Build and install standard-x.x.x.gem into system gems
|
14
|
+
rake install:local # Build and install standard-x.x.x.gem into system gems without network access
|
15
|
+
rake release[remote] # Create tag vx.x.x and build and push standard-0.5.2.gem to rubygems.org
|
16
|
+
```
|
17
|
+
|
18
|
+
Most of these commands are depended on (read: run by) `rake release`, which is
|
19
|
+
really the only one we'll need for releasing the gem to
|
20
|
+
[Rubygems.org](https://rubygems.org/gems/standard).
|
21
|
+
|
22
|
+
## Release steps
|
23
|
+
|
24
|
+
1. Make sure git is up to date and `bundle exec rake` exits cleanly
|
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
|
29
|
+
semantic versioning rules apply; if the release updates Rubocop, follow its
|
30
|
+
version bump at a minimum—if rubocop saw minor bump, we'll also bump the
|
31
|
+
minor version)
|
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
|
34
|
+
to that of the new version
|
35
|
+
6. Commit `lib/standard/version.rb`, `Gemfile.lock`, and `CHANGELOG.md` together
|
36
|
+
with the message equal to the new version (e.g. "0.42.1")
|
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
|
39
|
+
gem
|
40
|
+
9. [Tweet](https://twitter.com) about your awesome new release! (Shameless
|
41
|
+
self-promotion is the most important part of open source software)
|
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", "0.92"
|
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.7'
|
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-09-25 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: 0.
|
19
|
+
version: '0.92'
|
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.
|
26
|
+
version: '0.92'
|
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.
|
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.
|
40
|
+
version: 1.8.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,6 +145,8 @@ files:
|
|
145
145
|
- config/ruby-1.8.yml
|
146
146
|
- config/ruby-1.9.yml
|
147
147
|
- config/ruby-2.2.yml
|
148
|
+
- config/ruby-2.3.yml
|
149
|
+
- docs/RELEASE.md
|
148
150
|
- exe/standardrb
|
149
151
|
- lib/standard.rb
|
150
152
|
- lib/standard/builds_config.rb
|