view vera/rules/L002.tcl @ 521:e03521cf207b

Common: split util.hpp into more appropriate files, closes #721
author David Demelier <markand@malikania.fr>
date Fri, 27 Oct 2017 21:45:32 +0200
parents 6ec510722582
children
line wrap: on
line source

#!/usr/bin/tclsh
# Don't use tab characters

foreach f [getSourceFileNames] {
    set lineNumber 1
    foreach line [getAllLines $f] {

        if [regexp {\t} $line] {
            report $f $lineNumber "horizontal tab used"
        }

        incr lineNumber
    }
}