Ticket #14799: patch-src_port1.0_portlint.tcl

File patch-src_port1.0_portlint.tcl, 1.8 KB (added by ghosthound, 16 years ago)

reduce 'port lint' pedantry

Line 
1Index: src/port1.0/portlint.tcl
2===================================================================
3--- src/port1.0/portlint.tcl    (revision 35355)
4+++ src/port1.0/portlint.tcl    (working copy)
5@@ -195,17 +195,17 @@
6             set require_blank false
7         }
8 
9-        if {$require_blank && ($line != "")} {
10-            ui_warn "Line $lineno should be a newline (after $require_after)"
11-            incr warnings
12-        }
13+        # if {$require_blank && ($line != "")} {
14+        #     ui_warn "Line $lineno should be a newline (after $require_after)"
15+        #     incr warnings
16+        # }
17         set require_blank false
18 
19-        if {[regexp {\S[ \t]+$} $line]} {
20-            # allow indented blank lines between blocks of code and such
21-            ui_warn "Line $lineno has trailing whitespace before newline"
22-            incr warnings
23-        }
24+        # if {[regexp {\S[ \t]+$} $line]} {
25+        #     # allow indented blank lines between blocks of code and such
26+        #     ui_warn "Line $lineno has trailing whitespace before newline"
27+        #     incr warnings
28+        # }
29 
30         if {($lineno == $topline_number) && [string match "*-\*- *" $line]} {
31             ui_info "OK: Line $lineno has emacs/vim Mode"
32@@ -475,8 +475,8 @@
33 
34     if {[info exists patchfiles]} {
35         foreach patchfile $patchfiles {
36-            if {![string match "patch-*.diff" $patchfile] && [file exists "$portpath/files/$patchfile"]} {
37-                ui_warn "Patchfile $patchfile does not follow the source patch naming policy \"patch-*.diff\""
38+            if {![string match "patch-*" $patchfile] && [file exists "$portpath/files/$patchfile"]} {
39+                ui_warn "Patchfile $patchfile does not follow the source patch naming policy \"patch-*\""
40                 incr warnings
41             }
42         }