1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/vera++/scripts/rules/T013.tcl

17 lines
454 B
Tcl
Raw Normal View History

#!/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"
}
}