standard 1.20.0 → 1.21.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/.github/workflows/update.yml +3 -1
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +11 -11
- data/README.md +4 -0
- data/config/base.yml +15 -0
- data/lib/standard/rubocop/ext.rb +9 -0
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a7fc419962214950950e1f1babe8ea008c878c3309e7066a7a971fea897df23
|
4
|
+
data.tar.gz: b0d510b5788332ebca799de9a665ca8df590cb5679360daca36d67dcddf2e539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59badefc6eb57920133e0f6440374e60d96211f5496fae8acc1be5b1e90852152c38f44043918818af54a7bfa59489472af47f3b41883b7ab343ee4330d02d84
|
7
|
+
data.tar.gz: 44fcaabf3eeedae4935562e4cc73d90e3b6e0116be4b18a0ae9f5359f21c8bb6cce4df77a69d27f7bd680350be052161eb6d7bcc26e2e71f45a0513078a9d25c
|
data/.github/workflows/test.yml
CHANGED
@@ -3,7 +3,9 @@ name: Update
|
|
3
3
|
on:
|
4
4
|
workflow_dispatch:
|
5
5
|
schedule:
|
6
|
-
- cron: '
|
6
|
+
- cron: '0 0 */100,1-7 * 1'
|
7
|
+
# https://blog.healthchecks.io/2022/09/schedule-cron-job-the-funky-way/
|
8
|
+
# In case you want to know how that cron job works to get the first Monday of each month.
|
7
9
|
|
8
10
|
jobs:
|
9
11
|
update:
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.21.1
|
4
|
+
|
5
|
+
* Fix standard comment directives [#498](https://github.com/testdouble/standard/pull/498)
|
6
|
+
|
7
|
+
## 1.21.0
|
8
|
+
|
9
|
+
* Update rubocop-performance from 1.15.1 to [1.15.2](https://github.com/rubocop/rubocop-performance/releases/tag/v1.15.2)
|
10
|
+
* Update rubocop from 1.40.0 to [1.42.0](https://github.com/rubocop/rubocop/releases/tag/v1.42.0)
|
11
|
+
|
3
12
|
## 1.20.0
|
4
13
|
|
5
14
|
* Update rubocop from 1.39.0 to [1.40.0](https://github.com/rubocop/rubocop/releases/tag/v1.40.0)
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
4
|
+
standard (1.21.1)
|
5
5
|
language_server-protocol (~> 3.17.0.2)
|
6
|
-
rubocop (= 1.
|
7
|
-
rubocop-performance (= 1.15.
|
6
|
+
rubocop (= 1.42.0)
|
7
|
+
rubocop-performance (= 1.15.2)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -16,9 +16,9 @@ GEM
|
|
16
16
|
json (2.6.3)
|
17
17
|
language_server-protocol (3.17.0.2)
|
18
18
|
method_source (1.0.0)
|
19
|
-
minitest (5.
|
19
|
+
minitest (5.17.0)
|
20
20
|
parallel (1.22.1)
|
21
|
-
parser (3.
|
21
|
+
parser (3.2.0.0)
|
22
22
|
ast (~> 2.4.1)
|
23
23
|
pry (0.14.1)
|
24
24
|
coderay (~> 1.1)
|
@@ -27,29 +27,29 @@ GEM
|
|
27
27
|
rake (13.0.6)
|
28
28
|
regexp_parser (2.6.1)
|
29
29
|
rexml (3.2.5)
|
30
|
-
rubocop (1.
|
30
|
+
rubocop (1.42.0)
|
31
31
|
json (~> 2.3)
|
32
32
|
parallel (~> 1.10)
|
33
33
|
parser (>= 3.1.2.1)
|
34
34
|
rainbow (>= 2.2.2, < 4.0)
|
35
35
|
regexp_parser (>= 1.8, < 3.0)
|
36
36
|
rexml (>= 3.2.5, < 4.0)
|
37
|
-
rubocop-ast (>= 1.
|
37
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
38
38
|
ruby-progressbar (~> 1.7)
|
39
39
|
unicode-display_width (>= 1.4.0, < 3.0)
|
40
|
-
rubocop-ast (1.24.
|
40
|
+
rubocop-ast (1.24.1)
|
41
41
|
parser (>= 3.1.1.0)
|
42
|
-
rubocop-performance (1.15.
|
42
|
+
rubocop-performance (1.15.2)
|
43
43
|
rubocop (>= 1.7.0, < 2.0)
|
44
44
|
rubocop-ast (>= 0.4.0)
|
45
45
|
ruby-progressbar (1.11.0)
|
46
|
-
simplecov (0.
|
46
|
+
simplecov (0.22.0)
|
47
47
|
docile (~> 1.1)
|
48
48
|
simplecov-html (~> 0.11)
|
49
49
|
simplecov_json_formatter (~> 0.1)
|
50
50
|
simplecov-html (0.12.3)
|
51
51
|
simplecov_json_formatter (0.1.4)
|
52
|
-
unicode-display_width (2.
|
52
|
+
unicode-display_width (2.4.2)
|
53
53
|
|
54
54
|
PLATFORMS
|
55
55
|
ruby
|
data/README.md
CHANGED
@@ -499,6 +499,10 @@ regularly updated
|
|
499
499
|
guide](https://evilmartians.com/chronicles/rubocoping-with-legacy-bring-your-ruby-code-up-to-standard)
|
500
500
|
on how to do so.
|
501
501
|
|
502
|
+
## How often is Standard updated?
|
503
|
+
|
504
|
+
We aim to update Standard once a month, in the first week of the month. In between releases, we'll be considering RuboCop updates, RuboCop Performance updates, and community contributions.
|
505
|
+
|
502
506
|
## Does Standard work with [Insert other tool name here]?
|
503
507
|
|
504
508
|
Maybe! Start by searching the repository to see if there's an existing issue
|
data/config/base.yml
CHANGED
@@ -1213,6 +1213,9 @@ Style/CommentAnnotation:
|
|
1213
1213
|
Style/CommentedKeyword:
|
1214
1214
|
Enabled: false
|
1215
1215
|
|
1216
|
+
Style/ConcatArrayLiterals:
|
1217
|
+
Enabled: false
|
1218
|
+
|
1216
1219
|
Style/ConditionalAssignment:
|
1217
1220
|
Enabled: true
|
1218
1221
|
EnforcedStyle: assign_to_condition
|
@@ -1429,6 +1432,9 @@ Style/MapCompactWithConditionalBlock:
|
|
1429
1432
|
Style/MapToHash:
|
1430
1433
|
Enabled: false
|
1431
1434
|
|
1435
|
+
Style/MapToSet:
|
1436
|
+
Enabled: false
|
1437
|
+
|
1432
1438
|
Style/MethodCallWithArgsParentheses:
|
1433
1439
|
Enabled: false
|
1434
1440
|
|
@@ -1445,6 +1451,9 @@ Style/MethodDefParentheses:
|
|
1445
1451
|
Style/MinMax:
|
1446
1452
|
Enabled: false
|
1447
1453
|
|
1454
|
+
Style/MinMaxComparison:
|
1455
|
+
Enabled: false
|
1456
|
+
|
1448
1457
|
Style/MissingElse:
|
1449
1458
|
Enabled: false
|
1450
1459
|
|
@@ -1652,6 +1661,9 @@ Style/RedundantConditional:
|
|
1652
1661
|
Style/RedundantConstantBase:
|
1653
1662
|
Enabled: false
|
1654
1663
|
|
1664
|
+
Style/RedundantDoubleSplatHashBraces:
|
1665
|
+
Enabled: true
|
1666
|
+
|
1655
1667
|
Style/RedundantEach:
|
1656
1668
|
Enabled: false
|
1657
1669
|
|
@@ -1911,5 +1923,8 @@ Style/YodaCondition:
|
|
1911
1923
|
Enabled: true
|
1912
1924
|
EnforcedStyle: forbid_for_all_comparison_operators
|
1913
1925
|
|
1926
|
+
Style/YodaExpression:
|
1927
|
+
Enabled: false
|
1928
|
+
|
1914
1929
|
Style/ZeroLengthPredicate:
|
1915
1930
|
Enabled: false
|
data/lib/standard/rubocop/ext.rb
CHANGED
@@ -13,4 +13,13 @@ module RuboCop
|
|
13
13
|
.gsub(" ", '\s*')
|
14
14
|
)
|
15
15
|
end
|
16
|
+
|
17
|
+
class CommentConfig
|
18
|
+
alias_method :old_initialize, :initialize
|
19
|
+
|
20
|
+
def initialize(processed_source)
|
21
|
+
old_initialize(processed_source)
|
22
|
+
@no_directives &&= !processed_source.raw_source.include?("standard")
|
23
|
+
end
|
24
|
+
end
|
16
25
|
end
|
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", "1.
|
23
|
-
spec.add_dependency "rubocop-performance", "1.15.
|
22
|
+
spec.add_dependency "rubocop", "1.42.0"
|
23
|
+
spec.add_dependency "rubocop-performance", "1.15.2"
|
24
24
|
|
25
25
|
# not semver: first three are lsp protocol version, last is patch
|
26
26
|
spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
|
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.21.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-04 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.42.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.42.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.15.
|
33
|
+
version: 1.15.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.15.
|
40
|
+
version: 1.15.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: language_server-protocol
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 3.17.0.2
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email:
|
57
57
|
- searls@gmail.com
|
58
58
|
executables:
|
@@ -118,7 +118,7 @@ files:
|
|
118
118
|
homepage: https://github.com/testdouble/standard
|
119
119
|
licenses: []
|
120
120
|
metadata: {}
|
121
|
-
post_install_message:
|
121
|
+
post_install_message:
|
122
122
|
rdoc_options: []
|
123
123
|
require_paths:
|
124
124
|
- lib
|
@@ -133,8 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
|
-
rubygems_version: 3.
|
137
|
-
signing_key:
|
136
|
+
rubygems_version: 3.3.26
|
137
|
+
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Ruby Style Guide, with linter & automatic code fixer
|
140
140
|
test_files: []
|