Esempio n. 1
0
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_detectDefEnc(self):
     fileName = "/Users/Tushar/Documents/Research/PuppetQuality/Repos/percona-xtradb-cluster-tutorial/manifests/master_slave.pp"
     outFileName = "tmp/DefEncTest.txt"
     fileObj = SourceModel.SM_File.SM_File(fileName)
     outFile = open(outFileName, 'w')
     EncSmellDectector.detectDefEnc(fileObj, outFile)
     outFile.close()
     outFileRead = open(outFileName, 'r')
     self.assertGreater(len(outFileRead.read()), 0)
Esempio n. 3
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)