Skip to content

Commit bd9a632

Browse files
committed
test message to file again
1 parent 7cd2014 commit bd9a632

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dangerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ else
4242
errors_count += 1
4343
line = node['line']
4444
msg = node['message'].sub(/\.$/, '')
45-
file = node.parent['name'].sub(pwd, '')
46-
file = github.html_link("#{file}#L#{line}")
47-
fail("CheckStyle error in #{file}: #{msg}")
45+
filename = node.parent['name'].sub(pwd, '')
46+
file = github.html_link("#{filename}#L#{line}")
47+
fail("CheckStyle error in #{file}: #{msg}", file: filename, line: line)
4848
end
4949
print_errors_summary 'CheckStyle', errors_count, 'https://github.com/php-coder/mystamps/wiki/checkstyle'
5050
end

0 commit comments

Comments
 (0)