FxCop/StyleCop for Delphi?

后端 未结 8 776
野的像风
野的像风 2020-12-30 06:51

Does anyone know of an equivalent to FxCop/StyleCop for Delphi? I would really like to get the automatic checking of style, etc. into Continuous Integration.

相关标签:
8条回答
  • 2020-12-30 07:26

    The closest I've seen is CodeHealer from SOCK software. We use it, and we have integrated it into our FinalBuilder build. It differs from FxCop in one important way: It analyzes the source code, rather than the produced executable. It also doesn't check quite as much as FxCop does. But I think it is the best thing which is available in this category for Delphi.

    Delphi 2009 support isn't there just yet, but they say they're working on it.

    0 讨论(0)
  • 2020-12-30 07:28

    There's Pascal Analyzer from Peganza: http://www.peganza.com/products_pal.htm

    I don't know how the features compare to FxCop, since I haven't really used either one.

    0 讨论(0)
  • 2020-12-30 07:30

    I've heard of something called Delforex but haven't used it myself (yet)

    0 讨论(0)
  • 2020-12-30 07:35

    The DGrok project started with something like FxCop some years ago. The parser and analysis parts are still available, read more at "DGrok 0.8.1: multithreading, default options, GPL" - The parser is a .Net project but

    DGrok is a set of tools for parsing Delphi source code and telling you stuff about it. Read more about it on the DGrok project page.

    0 讨论(0)
  • 2020-12-30 07:36

    Delforex is great for actually formatting the code. It does not do much more than that though. (we have/do use it).

    I would second the votes for either Pascal Analyzer or Code Healer.

    Vaccano

    0 讨论(0)
  • 2020-12-30 07:39

    There is a new Delphi plugin for Sonar, which uses a Delphi grammar to run automatic tests over the source code.

    0 讨论(0)
提交回复
热议问题