예제 #1
0
def auditListeners(filePath,content):
	if(not Utils.folderFilter(filePath,[],config.excludedFolderNames)):
		result = hasUnevenListeners(content)
		if (result['uneven']):
			print("ListenerAudit: {0} \nNum on: {1} \nNum off: {2} \n".format(filePath, result['numOn'], result['numOff']))			
예제 #2
0
def auditFileNames(filePath,content):
	if (not Utils.folderFilter(filePath,[],config.excludedFolders)):
		return
	fileName = ntpath.basename(filePath)
	if (not isValidFileContent(fileName,content)):
		print("FileNameAudit: " + filePath +"\n")