T014
Source files should refer the Boost Software License
Description:
The Boost Software License should be referenced in the source code.
This rule verifies that at least one comment in the source file contains the "Boost Software License" phrase.
Note that this rule is very specific to the Boost libraries and those project that choose to use the Boost license. It is therefore not part of the default profile.
Compliance: Boost
Hide source code
# 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"
}
}
Rule index