#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
#
# Check that source files contain a valid comment block
#
line += 1
ret = 0
blocks = []
lic = []
start = 0
lineno = 0
if not filename:
lineno += 1
start = 0
lic = []
elif in_cmt:
if in_cmt:
# Check for no comment block, warn if we're not being lenient
if not ret:
ret = 2
# Check for multiple comment blocks
ret = 1
' at lines %s\n''' %
# Validate each comment block
for b in blocks:
try:
checkblock(b, full_text)
except CmtBlkError, e:
ret = 1
"%s: %d: Error: Invalid line in %s block:\n"
" should be\n"
" '%s'\n"
" is\n"
break
return ret