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/T014.tcl
2020-02-14 14:17:16 +01:00

17 lines
477 B
Tcl
Executable File

#!/usr/bin/tclsh
# Source files should refer the Boost Software License
foreach file [getSourceFileNames] {
set found false
foreach comment [getTokens $file 1 0 -1 -1 {ccomment cppcomment}] {
set value [lindex $comment 0]
if {[string first "Boost Software License" $value] != -1} {
set found true
break
}
}
if {$found == false} {
report $file 1 "no reference to the Boost Software License found"
}
}