Skip to content

Commit

Permalink
putting pattern back into output, for now...
Browse files Browse the repository at this point in the history
  • Loading branch information
bglusman committed Jan 29, 2012
1 parent ce509c3 commit 72ad098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/outlaw/enforcement.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def handle(file)
text = File.open(file) {|f| f.read} text = File.open(file) {|f| f.read}
rules.each do |rule| rules.each do |rule|
if rule.violation?(text) if rule.violation?(text)
puts "Outlaw Violation in file: #{file}\nRestriction:" + puts "Outlaw Violation in file: #{file}\nRestriction:\n" +
"#{rule.message}\n\n" "#{rule.pattern}\n#{rule.message}\n\n"
end end
end end
end end
Expand Down

0 comments on commit 72ad098

Please sign in to comment.