Lines Matching refs:file
10 # you may not use this file except in compliance with the License.
33 # \note Defined this way to avoid triggering license check error on this file
40 def readFile (file):
41 f = open(file, 'rt')
46 def getFileLicense (file):
47 contents = readFile(file)
59 def checkFileLicense (file):
60 license = getFileLicense(file)
63 print("%s: contains MIT license" % file)
65 print("%s: contains multiple licenses" % file)
67 print("%s: missing/unknown license" % file)
71 def isSourceFile (file):
73 if fnmatch(file, ptrn):
79 for file in files:
80 if isTextFile(file) and isSourceFile(file):
81 if not checkFileLicense(file):