New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14799: portlint.tcl.trailing-whitespace.diff

File portlint.tcl.trailing-whitespace.diff, 0.6 KB (added by ryandesign@…, 4 years ago)

only warn about trailing whitespace after a backslash

  • portlint.tcl

     
    201201        } 
    202202        set require_blank false 
    203203 
    204         if {[regexp {\S[ \t]+$} $line]} { 
    205             # allow indented blank lines between blocks of code and such 
    206             ui_warn "Line $lineno has trailing whitespace before newline" 
     204        if {[regexp {\\[ \t]+$} $line]} { 
     205            ui_warn "Line $lineno has trailing whitespace after a backslash" 
    207206            incr warnings 
    208207        } 
    209208