standard 1.0.2 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +35 -0
- data/Gemfile.lock +14 -14
- data/LICENSE.txt +1 -1
- data/README.md +2 -1
- data/config/base.yml +28 -2
- data/config/ruby-1.9.yml +3 -0
- data/config/ruby-2.3.yml +1 -4
- data/config/ruby-2.4.yml +4 -0
- data/lib/standard.rb +1 -1
- data/lib/standard/cli.rb +1 -1
- data/lib/standard/cop/{block_delimiters.rb → block_single_line_braces.rb} +1 -1
- data/lib/standard/creates_config_store/assigns_rubocop_yaml.rb +2 -0
- data/lib/standard/creates_config_store/sets_target_ruby_version.rb +1 -1
- data/lib/standard/rubocop/ext.rb +3 -3
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +3 -3
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 696cb6098e71ded33829da0901ca6b9d66f5a7884a97baf9456ffdcea6282763
|
4
|
+
data.tar.gz: 3a8ac09000491752e5109a4b63281daef37c3af33b46f7851f5114707893d196
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c97409bd286eadefd03cc24d688f99e233b1bc3fd3991505b7c73791da7d65b288fe2598a9f6eb4d7261b73171fad2730b3d7fc08001c835d7e1d52220dd7bc4
|
7
|
+
data.tar.gz: d8ca676daa0b6034fc722135c77766ee5bf57a95ffb52bbddacbc9d3c06aee4a088663b56f59d10121cade296127cc024d46be9439796e8c29a2a18050b49460
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,40 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.1.1
|
4
|
+
|
5
|
+
* Update rubocop from 1.13.0 to [1.14.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.14.0)
|
6
|
+
* Update rubocop-performance from 1.11.2 to [1.11.2](https://github.com/rubocop-hq/rubocop-performance/releases/tag/v1.11.2)
|
7
|
+
|
8
|
+
## 1.1.0
|
9
|
+
|
10
|
+
* Update rubocop from 1.12.1 to [1.13.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.13.0)
|
11
|
+
* Update rubocop-performance from 1.9.2 to [1.11.1](https://github.com/rubocop-hq/rubocop-performance/releases/tag/v1.11.1)
|
12
|
+
* Enabled the following rules:
|
13
|
+
* [`Performance/RedundantSplitRegexpArgument`](https://github.com/rubocop/rubocop-performance/pull/190)
|
14
|
+
* [`Style/IfWithBooleanLiteralBranches`](https://github.com/rubocop-hq/rubocop/pull/9396)
|
15
|
+
* [`Lint/TripleQuotes`](https://github.com/rubocop-hq/rubocop/pull/9402)
|
16
|
+
* [`Lint/SymbolConversion`](https://github.com/rubocop/rubocop/pull/9362)
|
17
|
+
* [`Lint/OrAssignmentToConstant`](https://github.com/rubocop-hq/rubocop/pull/9363)
|
18
|
+
* [`Lint/NumberedParameterAssignment`](https://github.com/rubocop-hq/rubocop/pull/9326)
|
19
|
+
* [`Style/HashConversion`](https://github.com/rubocop-hq/rubocop/pull/9478)
|
20
|
+
* [`Gemspec/DateAssignment`](https://github.com/rubocop-hq/rubocop/pull/9496)
|
21
|
+
* [`Style/StringChars`](https://github.com/rubocop/rubocop/pull/9615)
|
22
|
+
|
23
|
+
## 1.0.5
|
24
|
+
|
25
|
+
* Update rubocop from 1.11.0 to [1.12.1](https://github.com/rubocop-hq/rubocop/releases/tag/v1.12.1)
|
26
|
+
|
27
|
+
## 1.0.4
|
28
|
+
|
29
|
+
* Workaround RuboCop's CLI from erroring when it detects a cop named
|
30
|
+
BlockDelimiters by renaming it to BlockSingleLineBraces
|
31
|
+
([#271](https://github.com/testdouble/standard/issues/271)0
|
32
|
+
|
33
|
+
## 1.0.3
|
34
|
+
|
35
|
+
* Fix an exit code bug introduced in 1.0.2
|
36
|
+
([#272](https://github.com/testdouble/standard/pull/272)
|
37
|
+
|
3
38
|
## 1.0.2
|
4
39
|
|
5
40
|
* Preserve RuboCop's CLI exit codes
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
5
|
-
rubocop (= 1.
|
6
|
-
rubocop-performance (= 1.
|
4
|
+
standard (1.1.1)
|
5
|
+
rubocop (= 1.14.0)
|
6
|
+
rubocop-performance (= 1.11.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -15,28 +15,28 @@ GEM
|
|
15
15
|
method_source (1.0.0)
|
16
16
|
minitest (5.14.4)
|
17
17
|
parallel (1.20.1)
|
18
|
-
parser (3.0.
|
18
|
+
parser (3.0.1.1)
|
19
19
|
ast (~> 2.4.1)
|
20
|
-
pry (0.14.
|
20
|
+
pry (0.14.1)
|
21
21
|
coderay (~> 1.1)
|
22
22
|
method_source (~> 1.0)
|
23
23
|
rainbow (3.0.0)
|
24
24
|
rake (13.0.3)
|
25
25
|
regexp_parser (2.1.1)
|
26
|
-
rexml (3.2.
|
27
|
-
rubocop (1.
|
26
|
+
rexml (3.2.5)
|
27
|
+
rubocop (1.14.0)
|
28
28
|
parallel (~> 1.10)
|
29
29
|
parser (>= 3.0.0.0)
|
30
30
|
rainbow (>= 2.2.2, < 4.0)
|
31
31
|
regexp_parser (>= 1.8, < 3.0)
|
32
32
|
rexml
|
33
|
-
rubocop-ast (>= 1.
|
33
|
+
rubocop-ast (>= 1.5.0, < 2.0)
|
34
34
|
ruby-progressbar (~> 1.7)
|
35
35
|
unicode-display_width (>= 1.4.0, < 3.0)
|
36
|
-
rubocop-ast (1.
|
37
|
-
parser (>=
|
38
|
-
rubocop-performance (1.
|
39
|
-
rubocop (>=
|
36
|
+
rubocop-ast (1.5.0)
|
37
|
+
parser (>= 3.0.1.1)
|
38
|
+
rubocop-performance (1.11.2)
|
39
|
+
rubocop (>= 1.7.0, < 2.0)
|
40
40
|
rubocop-ast (>= 0.4.0)
|
41
41
|
ruby-progressbar (1.11.0)
|
42
42
|
simplecov (0.21.2)
|
@@ -44,7 +44,7 @@ GEM
|
|
44
44
|
simplecov-html (~> 0.11)
|
45
45
|
simplecov_json_formatter (~> 0.1)
|
46
46
|
simplecov-html (0.12.3)
|
47
|
-
simplecov_json_formatter (0.1.
|
47
|
+
simplecov_json_formatter (0.1.3)
|
48
48
|
unicode-display_width (2.0.0)
|
49
49
|
|
50
50
|
PLATFORMS
|
@@ -61,4 +61,4 @@ DEPENDENCIES
|
|
61
61
|
standard!
|
62
62
|
|
63
63
|
BUNDLED WITH
|
64
|
-
2.
|
64
|
+
2.2.6
|
data/LICENSE.txt
CHANGED
@@ -2,7 +2,7 @@ Copyright (c) 2019 Test Double, LLC
|
|
2
2
|
|
3
3
|
Portions of these files Copyright (c) 2012-18 Bozhidar Batsov:
|
4
4
|
- config/base.yml
|
5
|
-
- lib/standard/cop/
|
5
|
+
- lib/standard/cop/block_single_line_braces.rb
|
6
6
|
- test/cop_invoker.rb
|
7
7
|
|
8
8
|
Permission is hereby granted, free of charge, to any person obtaining
|
data/README.md
CHANGED
@@ -211,6 +211,7 @@ if you've used StandardJS.)
|
|
211
211
|
* [myRent](https://www.myrent.co.nz)
|
212
212
|
* [Renuo](https://www.renuo.ch/)
|
213
213
|
* [JetThoughts](https://www.jetthoughts.com/)
|
214
|
+
* [Oyster](https://www.oysterhr.com/)
|
214
215
|
* And that's about it so far!
|
215
216
|
|
216
217
|
If your team starts using Standard, [send a pull
|
@@ -290,7 +291,7 @@ rules to ignore for a particular glob:
|
|
290
291
|
```yaml
|
291
292
|
ignore:
|
292
293
|
- 'test/**/*':
|
293
|
-
-
|
294
|
+
- Layout/EndAlignment
|
294
295
|
```
|
295
296
|
|
296
297
|
## How do I disable a warning within my source code?
|
data/config/base.yml
CHANGED
@@ -21,6 +21,9 @@ Bundler/InsecureProtocolSource:
|
|
21
21
|
- '**/Gemfile'
|
22
22
|
- '**/gems.rb'
|
23
23
|
|
24
|
+
Gemspec/DateAssignment:
|
25
|
+
Enabled: true
|
26
|
+
|
24
27
|
Gemspec/DuplicatedAssignment:
|
25
28
|
Enabled: true
|
26
29
|
Include:
|
@@ -478,6 +481,12 @@ Lint/NonDeterministicRequireOrder:
|
|
478
481
|
Lint/NonLocalExitFromIterator:
|
479
482
|
Enabled: true
|
480
483
|
|
484
|
+
Lint/NumberedParameterAssignment:
|
485
|
+
Enabled: true
|
486
|
+
|
487
|
+
Lint/OrAssignmentToConstant:
|
488
|
+
Enabled: true
|
489
|
+
|
481
490
|
Lint/OrderedMagicComments:
|
482
491
|
Enabled: true
|
483
492
|
|
@@ -557,6 +566,9 @@ Lint/ShadowedArgument:
|
|
557
566
|
Lint/ShadowedException:
|
558
567
|
Enabled: true
|
559
568
|
|
569
|
+
Lint/SymbolConversion:
|
570
|
+
Enabled: true
|
571
|
+
|
560
572
|
Lint/Syntax:
|
561
573
|
Enabled: true
|
562
574
|
|
@@ -566,6 +578,9 @@ Lint/TopLevelReturnWithArgument:
|
|
566
578
|
Lint/TrailingCommaInAttributeDeclaration:
|
567
579
|
Enabled: true
|
568
580
|
|
581
|
+
Lint/TripleQuotes:
|
582
|
+
Enabled: true
|
583
|
+
|
569
584
|
Lint/UnderscorePrefixedVariableName:
|
570
585
|
Enabled: true
|
571
586
|
|
@@ -689,6 +704,9 @@ Performance/RedundantMerge:
|
|
689
704
|
Performance/RedundantSortBlock:
|
690
705
|
Enabled: true
|
691
706
|
|
707
|
+
Performance/RedundantSplitRegexpArgument:
|
708
|
+
Enabled: true
|
709
|
+
|
692
710
|
Performance/RedundantStringChars:
|
693
711
|
Enabled: true
|
694
712
|
|
@@ -738,7 +756,7 @@ Security/YAMLLoad:
|
|
738
756
|
Enabled: true
|
739
757
|
SafeAutoCorrect: false
|
740
758
|
|
741
|
-
Standard/
|
759
|
+
Standard/BlockSingleLineBraces:
|
742
760
|
Enabled: true
|
743
761
|
|
744
762
|
Style/Alias:
|
@@ -747,7 +765,6 @@ Style/Alias:
|
|
747
765
|
|
748
766
|
Style/AndOr:
|
749
767
|
Enabled: true
|
750
|
-
EnforcedStyle: always
|
751
768
|
|
752
769
|
Style/ArgumentsForwarding:
|
753
770
|
Enabled: true
|
@@ -855,6 +872,9 @@ Style/GlobalVars:
|
|
855
872
|
Enabled: true
|
856
873
|
AllowedVariables: []
|
857
874
|
|
875
|
+
Style/HashConversion:
|
876
|
+
Enabled: true
|
877
|
+
|
858
878
|
Style/HashExcept:
|
859
879
|
Enabled: true
|
860
880
|
|
@@ -871,6 +891,9 @@ Style/IfInsideElse:
|
|
871
891
|
Style/IfUnlessModifierOfIfUnless:
|
872
892
|
Enabled: true
|
873
893
|
|
894
|
+
Style/IfWithBooleanLiteralBranches:
|
895
|
+
Enabled: true
|
896
|
+
|
874
897
|
Style/IfWithSemicolon:
|
875
898
|
Enabled: true
|
876
899
|
|
@@ -1090,6 +1113,9 @@ Style/StabbyLambdaParentheses:
|
|
1090
1113
|
Style/StderrPuts:
|
1091
1114
|
Enabled: true
|
1092
1115
|
|
1116
|
+
Style/StringChars:
|
1117
|
+
Enabled: true
|
1118
|
+
|
1093
1119
|
Style/StringLiterals:
|
1094
1120
|
Enabled: true
|
1095
1121
|
EnforcedStyle: double_quotes
|
data/config/ruby-1.9.yml
CHANGED
data/config/ruby-2.3.yml
CHANGED
data/config/ruby-2.4.yml
ADDED
data/lib/standard.rb
CHANGED
data/lib/standard/cli.rb
CHANGED
@@ -18,6 +18,8 @@ class Standard::CreatesConfigStore
|
|
18
18
|
"ruby-2.2.yml"
|
19
19
|
elsif desired_version < Gem::Version.new("2.4")
|
20
20
|
"ruby-2.3.yml"
|
21
|
+
elsif desired_version < Gem::Version.new("2.5")
|
22
|
+
"ruby-2.4.yml"
|
21
23
|
elsif desired_version < Gem::Version.new("2.6")
|
22
24
|
"ruby-2.5.yml"
|
23
25
|
elsif desired_version < Gem::Version.new("3.0")
|
@@ -9,7 +9,7 @@ class Standard::CreatesConfigStore
|
|
9
9
|
private
|
10
10
|
|
11
11
|
def max_rubocop_supported_version(desired_version)
|
12
|
-
rubocop_supported_version = Gem::Version.new("2.
|
12
|
+
rubocop_supported_version = Gem::Version.new("2.5")
|
13
13
|
if desired_version < rubocop_supported_version
|
14
14
|
rubocop_supported_version
|
15
15
|
else
|
data/lib/standard/rubocop/ext.rb
CHANGED
@@ -6,9 +6,9 @@ module RuboCop
|
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
|
-
class
|
10
|
-
remove_const :
|
11
|
-
|
9
|
+
class DirectiveComment
|
10
|
+
remove_const :DIRECTIVE_COMMENT_REGEXP
|
11
|
+
DIRECTIVE_COMMENT_REGEXP = Regexp.new(
|
12
12
|
('# (?:standard|rubocop) : ((?:disable|enable|todo))\b ' + COPS_PATTERN)
|
13
13
|
.gsub(" ", '\s*')
|
14
14
|
)
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = Standard::VERSION
|
8
8
|
spec.authors = ["Justin Searls"]
|
9
9
|
spec.email = ["searls@gmail.com"]
|
10
|
-
spec.required_ruby_version = ">= 2.
|
10
|
+
spec.required_ruby_version = ">= 2.5.0"
|
11
11
|
|
12
12
|
spec.summary = "Ruby Style Guide, with linter & automatic code fixer"
|
13
13
|
spec.homepage = "https://github.com/testdouble/standard"
|
@@ -19,6 +19,6 @@ 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", "1.
|
23
|
-
spec.add_dependency "rubocop-performance", "1.
|
22
|
+
spec.add_dependency "rubocop", "1.14.0"
|
23
|
+
spec.add_dependency "rubocop-performance", "1.11.2"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.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: 2021-
|
11
|
+
date: 2021-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.14.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: 1.
|
26
|
+
version: 1.14.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.
|
33
|
+
version: 1.11.2
|
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.11.2
|
41
41
|
description:
|
42
42
|
email:
|
43
43
|
- searls@gmail.com
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- config/ruby-1.9.yml
|
63
63
|
- config/ruby-2.2.yml
|
64
64
|
- config/ruby-2.3.yml
|
65
|
+
- config/ruby-2.4.yml
|
65
66
|
- config/ruby-2.5.yml
|
66
67
|
- config/ruby-2.7.yml
|
67
68
|
- docs/RELEASE.md
|
@@ -69,7 +70,7 @@ files:
|
|
69
70
|
- lib/standard.rb
|
70
71
|
- lib/standard/builds_config.rb
|
71
72
|
- lib/standard/cli.rb
|
72
|
-
- lib/standard/cop/
|
73
|
+
- lib/standard/cop/block_single_line_braces.rb
|
73
74
|
- lib/standard/creates_config_store.rb
|
74
75
|
- lib/standard/creates_config_store/assigns_rubocop_yaml.rb
|
75
76
|
- lib/standard/creates_config_store/configures_ignored_paths.rb
|
@@ -101,14 +102,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
102
|
requirements:
|
102
103
|
- - ">="
|
103
104
|
- !ruby/object:Gem::Version
|
104
|
-
version: 2.
|
105
|
+
version: 2.5.0
|
105
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
107
|
requirements:
|
107
108
|
- - ">="
|
108
109
|
- !ruby/object:Gem::Version
|
109
110
|
version: '0'
|
110
111
|
requirements: []
|
111
|
-
rubygems_version: 3.2
|
112
|
+
rubygems_version: 3.1.2
|
112
113
|
signing_key:
|
113
114
|
specification_version: 4
|
114
115
|
summary: Ruby Style Guide, with linter & automatic code fixer
|