Don't use tab characters

# L002

# Don't use tab characters

Description:

Horizontal tabs are not consistently handled by editors and tools. Avoiding them ensures that the intended formatting of the code is preserved.

Compliance: HICPP, JSF

Show source code for this rule

Hide source code

    # 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
        }
    }

Rule index