Jose Alamos d5062cfd4e
ci/vera++/rules/L004: remove warning support
This reverts commit f3a934a169abd299f593c9e60d6ef53da1d68dfb.
2021-01-20 11:04:12 +01:00

15 lines
358 B
Tcl
Executable File

#!/usr/bin/tclsh
# Line cannot be too long
set maxLength [getParameter "max-line-length" 100]
foreach f [getSourceFileNames] {
set lineNumber 1
foreach line [getAllLines $f] {
if {[string length $line] > $maxLength} {
report $f $lineNumber "line is longer than ${maxLength} characters"
}
incr lineNumber
}
}