From d5062cfd4e31379fa5bcca232bf86bc99d0e2315 Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Wed, 20 Jan 2021 10:46:36 +0100 Subject: [PATCH] ci/vera++/rules/L004: remove warning support This reverts commit f3a934a169abd299f593c9e60d6ef53da1d68dfb. --- dist/tools/vera++/scripts/rules/L004.tcl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dist/tools/vera++/scripts/rules/L004.tcl b/dist/tools/vera++/scripts/rules/L004.tcl index 481797b396..fd5da0d4e0 100755 --- a/dist/tools/vera++/scripts/rules/L004.tcl +++ b/dist/tools/vera++/scripts/rules/L004.tcl @@ -3,17 +3,11 @@ 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] { set lineNumber 1 foreach line [getAllLines $f] { if {[string length $line] > $maxLength} { 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 }