1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/vera++/scripts/rules/L006.tcl
2020-02-14 14:17:16 +01:00

12 lines
264 B
Tcl
Executable File

#!/usr/bin/tclsh
# Source file should not be too long
set maxLines [getParameter "max-file-length" 2000]
foreach f [getSourceFileNames] {
set length [getLineCount $f]
if {$length > $maxLines} {
report $f $length "source file is too long"
}
}