Skip to content

Commit 0c6d76d

Browse files
committed
use list
1 parent abc1855 commit 0c6d76d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dangerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ else
116116
unless errors.empty?
117117
link = 'https://github.com/php-coder/mystamps/wiki/check-license-header'
118118
errors_cnt = errors.size()
119-
error_msgs = errors.join("\n")
119+
error_msgs = errors.join("</li>\n<li>")
120120
if errors_cnt == 1
121121
fail("license plugin reports about #{errors_cnt} error:\n"\
122-
"```\n#{error_msgs}\n```\n"\
122+
"<ul><li>#{error_msgs}</li></ul>\n"\
123123
"Please, fix it by executing `mvn license:format`\n"\
124124
"See also: <a href=\"#{link}\">#{link}</a>")
125125
elsif errors_cnt > 1
126126
fail("license plugin reports about #{errors_cnt} errors:\n"\
127-
"```\n#{error_msgs}\n```\n"\
127+
"<ul><li>#{error_msgs}</li></ul>\n"\
128128
"Please, fix them by executing `mvn license:format`\n"\
129129
"See also: <a href=\"#{link}\">#{link}</a>")
130130
end
@@ -155,15 +155,15 @@ else
155155
unless errors.empty?
156156
link = 'https://github.com/php-coder/mystamps/wiki/sortpom'
157157
errors_cnt = errors.size()
158-
error_msgs = errors.join("\n")
158+
error_msgs = errors.join("</li>\n<li>")
159159
if errors_cnt == 1
160160
fail("sortpom plugin reports about #{errors_cnt} error:\n"\
161-
"```\n#{error_msgs}\n```\n"\
161+
"<ul><li>#{error_msgs}</li></ul>\n"\
162162
"Please, fix it by executing `mvn sortpom:sort`\n"\
163163
"See also: <a href=\"#{link}\">#{link}</a>")
164164
elsif errors_cnt > 1
165165
fail("sortpom plugin reports about #{errors_cnt} errors:\n"\
166-
"```\n#{error_msgs}\n```\n"\
166+
"<ul><li>#{error_msgs}</li></ul>\n"\
167167
"Please, fix them by executing `mvn sortpom:sort`\n"\
168168
"See also: <a href=\"#{link}\">#{link}</a>")
169169
end

0 commit comments

Comments
 (0)