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']))
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")