Exemple #1
0
def checkLicense (files):
	error = False
	for file in files:
		if isTextFile(file) and isSourceFile(file):
			if not checkFileLicense(file):
				error = True

	return not error
def checkInvalidLiterals(files):
    error = False
    for file in files:
        if isTextFile(file):
            if not checkFileInvalidLiterals(file):
                error = True

    return not error
Exemple #3
0
def checkWhitespace(files):
    error = False
    for file in files:
        if isTextFile(file):
            if not checkFileWhitespace(file):
                error = True

    return not error
def checkLicense(files):
    error = False
    for file in files:
        if isTextFile(file) and isSourceFile(file):
            if not checkFileLicense(file):
                error = True

    return not error
Exemple #5
0
def checkEncoding(files):
    error = False
    for file in files:
        if isTextFile(file):
            if not checkFileEncoding(file):
                error = True

    return not error
def checkInvalidLiterals (files):
	error = False
	for file in files:
		if isTextFile(file):
			if not checkFileInvalidLiterals(file):
				error = True

	return not error