We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df58de4 + 164918b commit b8f96e7Copy full SHA for b8f96e7
dist/tools/vera++/scripts/rules/L004.tcl
@@ -7,7 +7,10 @@ foreach f [getSourceFileNames] {
7
set lineNumber 1
8
foreach line [getAllLines $f] {
9
if {[string length $line] > $maxLength} {
10
- report $f $lineNumber "line is longer than ${maxLength} characters"
+ # ignore overlong line if it appears to be within a comment
11
+ if {!([string match " \* *" $line] || [string match "// *" $line])} {
12
+ report $f $lineNumber "line is longer than ${maxLength} characters"
13
+ }
14
}
15
incr lineNumber
16
0 commit comments