We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22b3e5b commit d68b752Copy full SHA for d68b752
Dangerfile
@@ -40,9 +40,14 @@ if File.file?(cs_report)
40
doc.xpath('//error').each do |node|
41
errors_count += 1
42
line = node['line']
43
+ if line.to_i > 0
44
+ line = '#L' + line
45
+ else
46
+ line = ''
47
+ end
48
msg = node['message'].sub(/\.$/, '')
49
file = node.parent['name'].sub(pwd, '')
- file = github.html_link("#{file}#L#{line}")
50
+ file = github.html_link("#{file}#{line}")
51
fail("maven-checkstyle-plugin error in #{file}:\n#{msg}")
52
end
53
print_errors_summary 'maven-checkstyle-plugin', errors_count, 'https://github.com/php-coder/mystamps/wiki/checkstyle'
0 commit comments