def main(filenames):
    """ Checks files for #include blocks matching the Tarsnap STYLE.

        Args:
            filenames (list): the filenames (as strings) to check."""
    for filename in filenames:
        # don't apply to libarchive right now
        if style_utils.is_libarchive(filename):
            continue
        handle_file(filename)
Exemplo n.º 2
0
def main(filenames):
    """ Checks files for #include blocks matching the Tarsnap STYLE.

        Args:
            filenames (list): the filenames (as strings) to check."""
    for filename in filenames:
        # don't apply to libarchive right now
        if style_utils.is_libarchive(filename):
            continue
        handle_file(filename)
Exemplo n.º 3
0
def main(filenames):
    """ Checks files for a newline in function definitions.

        Args:
            filenames (list): the filenames (as strings) to check."""
    for filename in filenames:
        # don't apply to libarchive right now
        if style_utils.is_libarchive(filename):
            continue
        handle_file(filename)
    print("---------")
    print("This script is an aid, not a definitive guide.  It can create")
    print("false positives and false negatives.  Use your own judgement.")