Esempio n. 1
0
def checkThisFile(f):
    if gitutils.isFileEmpty(f):
        return False
    for checker in FilesToCheck:
        if checker.search(f):
            return True
    return False
Esempio n. 2
0
def checkThisFile(f):
    # This check covers things like symlinks which point to files that DNE
    if not (os.path.exists(f)):
        return False
    if gitutils and gitutils.isFileEmpty(f):
        return False
    for checker in FilesToCheck:
        if checker.search(f):
            return True
    return False