goodcheck 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -3
- data/CHANGELOG.md +4 -0
- data/README.md +9 -2
- data/Rakefile +20 -0
- data/docusaurus/website/yarn.lock +419 -353
- data/lib/goodcheck/reporters/text.rb +3 -1
- data/lib/goodcheck/version.rb +1 -1
- metadata +3 -3
@@ -30,7 +30,9 @@ module Goodcheck
|
|
30
30
|
colored_line = line.byteslice(0, issue.location.start_column) + Rainbow(line.byteslice(issue.location.start_column, end_column - issue.location.start_column)).red + line.byteslice(end_column, line.bytesize)
|
31
31
|
stdout.puts "#{issue.path}:#{issue.location.start_line}:#{colored_line.chomp}:\t#{issue.rule.message.lines.first.chomp}"
|
32
32
|
else
|
33
|
-
|
33
|
+
line = issue.buffer.line(1)&.chomp
|
34
|
+
line = line ? Rainbow(line).red : '-'
|
35
|
+
stdout.puts "#{issue.path}:-:#{line}:\t#{issue.rule.message.lines.first.chomp}"
|
34
36
|
end
|
35
37
|
end
|
36
38
|
end
|
data/lib/goodcheck/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goodcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Soutaro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
- !ruby/object:Gem::Version
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
|
-
rubygems_version: 3.0.
|
233
|
+
rubygems_version: 3.0.6
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Regexp based customizable linter
|