mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ci/vera++/rules/L004: remove warning support
This reverts commit f3a934a169
.
This commit is contained in:
parent
4cc6c23ec6
commit
d5062cfd4e
6
dist/tools/vera++/scripts/rules/L004.tcl
vendored
6
dist/tools/vera++/scripts/rules/L004.tcl
vendored
@ -3,17 +3,11 @@
|
|||||||
|
|
||||||
set maxLength [getParameter "max-line-length" 100]
|
set maxLength [getParameter "max-line-length" 100]
|
||||||
|
|
||||||
#MOD: We add here a line length thershold for line length
|
|
||||||
set maxLengthWarn [getParameter "max-line-length-warn" 80]
|
|
||||||
|
|
||||||
foreach f [getSourceFileNames] {
|
foreach f [getSourceFileNames] {
|
||||||
set lineNumber 1
|
set lineNumber 1
|
||||||
foreach line [getAllLines $f] {
|
foreach line [getAllLines $f] {
|
||||||
if {[string length $line] > $maxLength} {
|
if {[string length $line] > $maxLength} {
|
||||||
report $f $lineNumber "line is longer than ${maxLength} characters"
|
report $f $lineNumber "line is longer than ${maxLength} characters"
|
||||||
} elseif {[string length $line] > $maxLengthWarn} {
|
|
||||||
# puts won't make vera++ return error code when invoked with --error
|
|
||||||
puts "$f:$lineNumber: warning: line is longer than $maxLengthWarn characters"
|
|
||||||
}
|
}
|
||||||
incr lineNumber
|
incr lineNumber
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user