File: T010.tcl

package info (click to toggle)
vera%2B%2B 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,184 kB
  • sloc: cpp: 10,361; tcl: 921; python: 32; makefile: 5
file content (11 lines) | stat: -rwxr-xr-x 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/tclsh
# Identifiers should not be composed of 'l' and 'O' characters only

foreach file [getSourceFileNames] {
    foreach t [getTokens $file 1 0 -1 -1 {identifier}] {
        set value [lindex $t 0]
        if [regexp {^(l|O)+$} $value] {
            report $file [lindex $t 1] "identifier should not be composed of only 'l' and 'O'"
        }
    }
}