gergich 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffdbc2a21d3ed536da68e308de2725ce8d2a8d1984125fe222fffd2534a2a5ee
|
4
|
+
data.tar.gz: b404be4990fad059d5ef41885587a477a67af54b08ec0cc79f105bb8da460383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e35654c3f320bd82918e7a8338cfa5a0a81f050e978cfe662f91b9f9c634e4e9017bec7779918b022e578f07bf4372ef1c227e7e40d6abaa395ca5abcff7bcb5
|
7
|
+
data.tar.gz: f04f09c89a36d7ebcde2e5d2b4e4e56414281b1013fa671a91a27b793d3855e54e97268445c3f0eadcd5916ec622506ef196b90e5d58b7132845fce7f7336595
|
@@ -20,7 +20,8 @@ module Gergich
|
|
20
20
|
|
21
21
|
SEVERITY_MAP = {
|
22
22
|
"✖" => "error",
|
23
|
-
"⚠" => "warn"
|
23
|
+
"⚠" => "warn",
|
24
|
+
"ℹ" => "info"
|
24
25
|
}.freeze
|
25
26
|
|
26
27
|
# example file line:
|
@@ -29,7 +30,7 @@ module Gergich
|
|
29
30
|
|
30
31
|
# example error line:
|
31
32
|
# 1:15 ✖ Unexpected invalid hex color "#2D3B4" color-no-invalid-hex
|
32
|
-
ERROR_PATTERN = /^\s+(\d+):\d+\s+(
|
33
|
+
ERROR_PATTERN = /^\s+(\d+):\d+\s+(✖|⚠|ℹ)\s+(.*?)\s\s+[^\n]+\n/.freeze
|
33
34
|
# rubocop:enable Style/AsciiComments
|
34
35
|
|
35
36
|
PATTERN = /#{FILE_PATH_PATTERN}((#{ERROR_PATTERN})+)/.freeze
|
@@ -12,6 +12,7 @@ RSpec.describe Gergich::Capture::StylelintCapture do
|
|
12
12
|
app/stylesheets/base/_variables.scss
|
13
13
|
2:15 ✖ Unexpected invalid hex color "#2D3B4" color-no-invalid-hex
|
14
14
|
30:15 ⚠ Expected "#2d3b4a" to be "#2D3B4A" color-hex-case
|
15
|
+
45:12 ℹ Expected "#2d3b4a" to be "#2D3B4A" color-hex-case
|
15
16
|
OUTPUT
|
16
17
|
end
|
17
18
|
let(:comments) do
|
@@ -39,6 +40,12 @@ RSpec.describe Gergich::Capture::StylelintCapture do
|
|
39
40
|
position: 30,
|
40
41
|
message: "[stylelint] Expected \"#2d3b4a\" to be \"#2D3B4A\"",
|
41
42
|
severity: "warn"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
path: "app/stylesheets/base/_variables.scss",
|
46
|
+
position: 45,
|
47
|
+
message: "[stylelint] Expected \"#2d3b4a\" to be \"#2D3B4A\"",
|
48
|
+
severity: "info"
|
42
49
|
}
|
43
50
|
]
|
44
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gergich
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Jensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|