danger-chikuwatter 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/chikuwatter/gem_version.rb +1 -1
- data/lib/chikuwatter/plugin.rb +1 -1
- data/spec/chikuwatter_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7a602ef5810a9cfe876817c4c1b746266d715fd1af8a0928952488c91171426
|
|
4
|
+
data.tar.gz: 3aadfb9008e6a0703436a87dccf63737bfc4a45b99e737a7c66a32a6bb61fc23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a752695bba8e31fb3f379550cd2a85da512916155e66b469eb7177ac800c62e3fd6c55000d81d9bf25312142174e3638928d73ae4e6d358e31bddaf140af0e5
|
|
7
|
+
data.tar.gz: c640f16976cdee35887a14680c8ce1c33ccb464b327accd0ba4e0e3f1f3f48ad190453a4e14b88fc266a6716ec2f04db935020ef9d0463187f6fcbaa2e5570fc
|
data/lib/chikuwatter/plugin.rb
CHANGED
|
@@ -81,7 +81,7 @@ module Danger
|
|
|
81
81
|
type = Type.from_string(type_str)
|
|
82
82
|
file, line_num = logs[2].strip!.split(":")
|
|
83
83
|
|
|
84
|
-
message = "#{type_str} •
|
|
84
|
+
message = "#{type_str} • `#{logs[3].strip!}`\n#{logs[1].strip!}"
|
|
85
85
|
|
|
86
86
|
report_data.push(
|
|
87
87
|
ReportData.new(message, type, file, line_num.to_i)
|
data/spec/chikuwatter_spec.rb
CHANGED
|
@@ -34,8 +34,8 @@ module Danger
|
|
|
34
34
|
file_path = "#{File.dirname(__FILE__)}/fixtures/analyze.log"
|
|
35
35
|
@my_plugin.inline_mode = true
|
|
36
36
|
@my_plugin.report file_path
|
|
37
|
-
expect(@dangerfile.status_report[:warnings]).to eq(["warning • invalid_null_aware_operator
|
|
38
|
-
expect(@dangerfile.status_report[:errors]).to eq(["error • argument_type_not_assignable
|
|
37
|
+
expect(@dangerfile.status_report[:warnings]).to eq(["warning • `invalid_null_aware_operator`\nThe receiver can't be null, so the null-aware operator '?.' is unnecessary", "info • `deprecated_member_use`\n'headline1' is deprecated and shouldn't be used. Use displayLarge instead. This feature was deprecated after v3.1.0-0.0.pre"])
|
|
38
|
+
expect(@dangerfile.status_report[:errors]).to eq(["error • `argument_type_not_assignable`\nThe argument type 'String?' can't be assigned to the parameter type 'String'"])
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|