standard 1.1.5 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +8 -8
- data/README.md +1 -0
- data/lib/standard/loads_yaml_config.rb +1 -1
- data/lib/standard/runners/genignore.rb +10 -15
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cadec5ec4b18495f9b40de15918a208bc92d4dfa8e439b320cda48ebf1277de
|
4
|
+
data.tar.gz: 5988cd9b3550fa1643275570496f43c2f386415b58188c442297e509d27ea40d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12dde0c129d137d3494035d18ca038d6afd790d7c1cc1cecd0e7cbeb7b5eb943ffb269286546ea0dedca942c18748cc979e75e66830902768c8c46392c8fdcbe
|
7
|
+
data.tar.gz: a280e52124690d46e017f4a35cc868855ab9e64f4fa6c81116c8e67fa113143868fce0e530ac8258f07a2cbd53132deae9b5a954a25c6a0fb3350d741e989f1e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.3.0
|
4
|
+
|
5
|
+
* Update rubocop from 1.19.1 to [1.20.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.20.0)
|
6
|
+
|
7
|
+
## 1.2.0
|
8
|
+
|
9
|
+
* Update rubocop from 1.18.4 to [1.19.1](https://github.com/rubocop-hq/rubocop/releases/tag/v1.19.1)
|
10
|
+
* Update rubocop-performance from 1.11.4 to [1.11.5](https://github.com/rubocop-hq/rubocop-performance/releases/tag/v1.11.5)
|
11
|
+
|
12
|
+
## 1.1.7
|
13
|
+
|
14
|
+
* Fix an issue with nested generated todos being ignored
|
15
|
+
[#311](https://github.com/testdouble/standard/pull/311)
|
16
|
+
|
17
|
+
## 1.1.6
|
18
|
+
|
19
|
+
* Update rubocop from 1.18.3 to [1.18.4](https://github.com/rubocop-hq/rubocop/releases/tag/v1.18.4)
|
20
|
+
|
3
21
|
## 1.1.5
|
4
22
|
|
5
23
|
* Update rubocop from 1.18.2 to [1.18.3](https://github.com/rubocop-hq/rubocop/releases/tag/v1.18.3)
|
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.11.
|
4
|
+
standard (1.3.0)
|
5
|
+
rubocop (= 1.20.0)
|
6
|
+
rubocop-performance (= 1.11.5)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -21,21 +21,21 @@ GEM
|
|
21
21
|
coderay (~> 1.1)
|
22
22
|
method_source (~> 1.0)
|
23
23
|
rainbow (3.0.0)
|
24
|
-
rake (13.0.
|
24
|
+
rake (13.0.6)
|
25
25
|
regexp_parser (2.1.1)
|
26
26
|
rexml (3.2.5)
|
27
|
-
rubocop (1.
|
27
|
+
rubocop (1.20.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.9.1, < 2.0)
|
34
34
|
ruby-progressbar (~> 1.7)
|
35
35
|
unicode-display_width (>= 1.4.0, < 3.0)
|
36
|
-
rubocop-ast (1.
|
36
|
+
rubocop-ast (1.11.0)
|
37
37
|
parser (>= 3.0.1.1)
|
38
|
-
rubocop-performance (1.11.
|
38
|
+
rubocop-performance (1.11.5)
|
39
39
|
rubocop (>= 1.7.0, < 2.0)
|
40
40
|
rubocop-ast (>= 0.4.0)
|
41
41
|
ruby-progressbar (1.11.0)
|
data/README.md
CHANGED
@@ -213,6 +213,7 @@ if you've used StandardJS.)
|
|
213
213
|
* [JetThoughts](https://www.jetthoughts.com/)
|
214
214
|
* [Oyster](https://www.oysterhr.com/)
|
215
215
|
* [Podia](https://www.podia.com/)
|
216
|
+
* [RubyCI](https://ruby.ci)
|
216
217
|
* And that's about it so far!
|
217
218
|
|
218
219
|
If your team starts using Standard, [send a pull
|
@@ -32,7 +32,7 @@ module Standard
|
|
32
32
|
default_ignores: standard_yaml.key?("default_ignores") ? !!standard_yaml["default_ignores"] : true,
|
33
33
|
config_root: yaml_path ? Pathname.new(yaml_path).dirname.to_s : nil,
|
34
34
|
todo_file: todo_path,
|
35
|
-
todo_ignore_files: todo_yaml["ignore"] || []
|
35
|
+
todo_ignore_files: (todo_yaml["ignore"] || []).map { |f| Hash === f ? f.keys.first : f }
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -10,26 +10,21 @@ module Standard
|
|
10
10
|
temp_file = Tempfile.new("excluded.txt")
|
11
11
|
begin
|
12
12
|
# Run Rubocop to generate the files with errors into the temp file.
|
13
|
-
config.rubocop_options[:formatters] = [["
|
14
|
-
config.rubocop_options[:format] = "files"
|
13
|
+
config.rubocop_options[:formatters] = [["json", temp_file.path]]
|
15
14
|
config.rubocop_options[:out] = temp_file.path
|
16
15
|
exit_code = Runners::Rubocop.new.call(config)
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
# https://bugs.ruby-lang.org/issues/10011
|
27
|
-
#
|
28
|
-
file.sub(Dir.pwd + File::SEPARATOR, "")
|
29
|
-
end
|
17
|
+
result = JSON.parse(temp_file.read)
|
18
|
+
ignore = result["files"].select { |file|
|
19
|
+
file["offenses"].size > 0
|
20
|
+
}.map { |file|
|
21
|
+
{
|
22
|
+
file["path"] => file["offenses"].map { |o| o["cop_name"] }.uniq
|
23
|
+
}
|
24
|
+
}
|
30
25
|
|
31
26
|
# Read the files with errors from the temp file.
|
32
|
-
yaml_format_errors = {"ignore" =>
|
27
|
+
yaml_format_errors = {"ignore" => ignore}
|
33
28
|
|
34
29
|
# Regenerate the todo file.
|
35
30
|
File.open(".standard_todo.yml", "w") do |file|
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
@@ -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.11.
|
22
|
+
spec.add_dependency "rubocop", "1.20.0"
|
23
|
+
spec.add_dependency "rubocop-performance", "1.11.5"
|
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.3.0
|
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-08-27 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.20.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.20.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.11.
|
33
|
+
version: 1.11.5
|
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.11.
|
40
|
+
version: 1.11.5
|
41
41
|
description:
|
42
42
|
email:
|
43
43
|
- searls@gmail.com
|