def detectSmells(file, outputFile): # print (">>> FILE SMELLS DETECTOR: ", file) # print (">>> outputFile SMELLS DETECTOR: ", outputFile) AbsSmellDectector.detectSmells(file, outputFile) EncSmellDectector.detectSmells(file, outputFile) ModSmellDectector.detectSmells(file, outputFile) DepSmellDectector.detectSmells(file, outputFile) HieSmellDectector.detectSmells(file, outputFile)
def test_detectBroHierarchy(self): folderName = "/Users/Tushar/Documents/Research/PuppetQuality/Repos/vagrant-baseline/puppet/" outFileName = "tmp/brokenHieTest.txt" outFile = open(outFileName, 'w') #fileObj = SourceModel.SM_File.SM_File("/Users/Tushar/Documents/Research/PuppetQuality/Repos/vagrant-baseline/puppet/modules/vendors/mongodb/manifests/repo/apt.pp") HieSmellDectector.detectBroHierarchy(folderName, outFile) #fileObj.getClassHierarchyInfo() outFile.close() outFileRead = open(outFileName, 'r') self.assertEquals(len(outFileRead.read()), 0)
def detectSmells(folder, outputFile): AbsSmellDectector.detectSmells(folder, outputFile) EncSmellDectector.detectSmells(folder, outputFile) ModSmellDectector.detectSmells(folder, outputFile) DepSmellDectector.detectSmells(folder, outputFile) HieSmellDectector.detectSmells(folder, outputFile)