lib/htmllint/plugin.rb in danger-htmllint-0.1.1 vs lib/htmllint/plugin.rb in danger-htmllint-0.1.2
- old
+ new
@@ -40,10 +40,11 @@
end
def htmllint_command(bin, target_files)
command = "#{bin} #{target_files.join(' ')}"
command << " --rc #{rc_path}" if rc_path
+ p command
command
end
def run_htmllint(bin, target_files)
`#{htmllint_command(bin, target_files)}`
@@ -52,9 +53,10 @@
def target_files
((git.modified_files - git.deleted_files) + git.added_files)
end
def parse(result)
+ p result
list = []
result.split("\n").each do |item|
next if item == ""
path_and_err = item.split(":")