Mercurial > embed
view vera/rules/T013.tcl @ 71:26304c6e4b69
mstch: import 1.0.2
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 18 Jul 2018 12:31:28 +0200 |
parents | 82b832e1875d |
children |
line wrap: on
line source
#!/usr/bin/tclsh # Source files should contain the copyright notice foreach file [getSourceFileNames] { set found false foreach comment [getTokens $file 1 0 -1 -1 {ccomment cppcomment}] { set value [lindex $comment 0] if {[string first "copyright" [string tolower $value]] != -1} { set found true break } } if {$found == false} { report $file 1 "no copyright notice found" } }