Lines Matching +full:non +full:- +full:comment
23 # This program is intended to be used by "make check-copyright". It
37 # Check a comment for boilerplate violations. Return true if the comment
39 def check_comment(comment, fname, ln, code_seen, nonlicense_seen): argument
42 for line in comment:
46 warn(fname, ln, 'License begins after first line of comment')
50 warn(fname, ln, 'License after non-license comments')
52 # DB2 licenses start with '/*-' and we don't want to change them.
53 if line != '' and line != '-':
60 if '-*- mode: c;' in lines[ln]:
63 # Check filename comment if present.
64 m = re.match(r'/\* ([^ ]*)( - .*)? \*/', lines[ln])
67 warn(fname, ln, 'Wrong filename in comment')
82 comment = [comment_part.strip()]
86 comment.append(line.lstrip('*').lstrip())
89 comment.append(comment_part.strip())
90 is_license = check_comment(comment, fname, comment_starts_at,