コード例 #1
0
ファイル: project.py プロジェクト: betsegaw/peppy
 def staticAnalysis(self, lang="fortran", regenerate=False):
     url = self.getSettingsRelativeURL("%s.static_analysis" % lang)
     dprint(url)
     filename = str(url.path)
     dprint(filename)
     if lang == "fortran":
         stats = FortranStaticAnalysis(serialized_filename=filename, regenerate=regenerate)
         if not regenerate and not stats.isEmpty():
             return url
         for source in self.walkProjectDir(["*.f", "*.f90"]):
             print source
             stats.scan(source)
         stats.analyze()
         stats.summary()
         dprint(filename)
         stats.saveStateToFile()
         return url
     else:
         dprint("%s not supported for static analysis")
         return None
コード例 #2
0
ファイル: project.py プロジェクト: zendbit/peppy
 def staticAnalysis(self, lang="fortran", regenerate=False):
     url = self.getSettingsRelativeURL("%s.static_analysis" % lang)
     dprint(url)
     filename = str(url.path)
     dprint(filename)
     if lang == "fortran":
         stats = FortranStaticAnalysis(serialized_filename=filename,
                                       regenerate=regenerate)
         if not regenerate and not stats.isEmpty():
             return url
         for source in self.walkProjectDir(["*.f", "*.f90"]):
             print source
             stats.scan(source)
         stats.analyze()
         stats.summary()
         dprint(filename)
         stats.saveStateToFile()
         return url
     else:
         dprint("%s not supported for static analysis")
         return None