#!/usr/bin/perl -w use strict; my $file = shift; if (!defined $file) { my $usage=<$file") or die ('Failed to open ' . $file . ' for writing.'); while () { my $line = $_; chomp $line; next unless $line =~ /^(.*):(\d+):(.*)$/; my $file = $1; my $lineno = $2; my $description = $3; next if $file =~ /\/3rdparty\//; next if $file =~ /\/tests\//; print FILE "$file\t$lineno\tWARN\tKrazy: $description\n"; }