25 'include/grpc',
'include/grpc++',
'src/core',
'src/cpp',
'test/core',
30 _INTERESTING_EXTENSIONS = [
'.c',
'.h',
'.cc']
33 _ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]),
'../../..'))
39 printed_banner =
False
40 for target_dir
in _TARGET_DIRS:
41 for root, dirs, filenames
in os.walk(target_dir):
42 if 'README.md' not in filenames:
43 if not printed_banner:
44 print(
'Missing README.md')
45 print(
'=================')
51 printed_banner =
False
52 for target_dir
in _TARGET_DIRS:
53 for root, dirs, filenames
in os.walk(target_dir):
54 for filename
in filenames:
55 if os.path.splitext(filename)[1]
not in _INTERESTING_EXTENSIONS:
57 path = os.path.join(root, filename)
60 if '\\file' not in contents:
61 if not printed_banner:
62 print(
'Missing \\file comment')
63 print(
'======================')
68 assert errors == 0,
'error count = %d' % errors