| 1 |
#!/usr/bin/perl -w |
#!/usr/bin/perl -w |
| 2 |
# $Id: code-style.pl,v 1.10 2005/12/28 12:04:14 dries Exp $ |
# $Id: code-style.pl,v 1.11 2006/02/21 18:46:54 dries Exp $ |
| 3 |
|
|
| 4 |
# Author: Alexander Schwartz (alexander.schwartz@gmx.net) |
# Author: Alexander Schwartz (alexander.schwartz@gmx.net) |
| 5 |
# Licence: GPL |
# Licence: GPL |
| 9 |
# code. This program tries to show as many improvements as possible with |
# code. This program tries to show as many improvements as possible with |
| 10 |
# no false positives. |
# no false positives. |
| 11 |
|
|
| 12 |
# $Id: code-style.pl,v 1.10 2005/12/28 12:04:14 dries Exp $ |
# $Id: code-style.pl,v 1.11 2006/02/21 18:46:54 dries Exp $ |
| 13 |
|
|
| 14 |
$comment = 0; |
$comment = 0; |
| 15 |
$program = 0; |
$program = 0; |
| 116 |
elsif (/([\(\[]) / && $program) { |
elsif (/([\(\[]) / && $program) { |
| 117 |
$msg = "'$1 ' -> '$1'"; |
$msg = "'$1 ' -> '$1'"; |
| 118 |
} |
} |
| 119 |
elsif (/ ([\)\]])/ && $program) { |
elsif (/\S ([\)\]])/ && $program) { |
| 120 |
$msg = "' $1' -> '$1'"; |
$msg = "' $1' -> '$1'"; |
| 121 |
} |
} |
| 122 |
# but no brackets |
# but no brackets |