Exemple #1
0
def main():
    parser = HeaderChecker.configArgParser()

    checker = HeaderChecker(KERNEL_HEADER)
    checker.ignoreExtension(*KERNEL_IGNORED_EXTENSIONS)
    checker.ignorePattern(*KERNEL_IGNORED_PATTERNS)

    checker.ignoreFile(os.path.split(__file__)[-1])

    n_failed = 0
    return n_failed
Exemple #2
0
def main():
    parser = HeaderChecker.configArgParser()
    args = parser.parse_args()

    # Configure the checks then run
    checker = HeaderChecker(KERNEL_HEADER)
    checker.ignoreExtension(*KERNEL_IGNORED_EXTENSIONS)
    checker.ignorePattern(*KERNEL_IGNORED_PATTERNS)
    checker.ignoreFile(*KERNEL_IGNORED_FILES)
    checker.ignoreFile(os.path.split(__file__)[-1])

    return checker.processArgs(args)