简体   繁体   English

Adobe Flex静态分析工具

[英]Adobe Flex static analysis tool

Can anyone recommend a static analysis/code complexity/code metrics tool for Adobe Flex (MXML and Actionscript)? 任何人都可以为Adobe Flex(MXML和Actionscript)推荐静态分析/代码复杂性/代码度量工具吗? Something like Sonar or Clover? 像Sonar或Clover这样的东西?

Maybe FlexPMD can be an answer. 也许FlexPMD可以作为答案。

FlexPMD is a tool that helps to improve code quality by auditing any AS3/Flex source directory and detecting common bad practices, such as: FlexPMD是一种通过审核任何AS3 / Flex源目录并检测常见错误做法来帮助提高代码质量的工具,例如:

  • Unused code (functions, variables, constants, etc.) 未使用的代码(函数,变量,常量等)
  • Inefficient code (misuse of dynamic filters, heavy constructors, etc.) 效率低下的代码(滥用动态过滤器,重型构造函数等)
  • Over-complex code (nested loops, too many conditionals, etc.) 过于复杂的代码(嵌套循环,太多条件等)
  • Over-long code (classes, methods, etc.) 过长的代码(类,方法等)
  • Incorrect use of the Flex component lifecycle (commitProperties, etc.) Flex组件生命周期的不正确使用(commitProperties等)

Sonar Flex插件看起来很不错。

Adobe的Flex PMD是一个良好的开端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM