FxCop/StyleCop for Delphi?

2019-02-04 15:49发布

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条回答
家丑人穷心不美
2楼-- · 2019-02-04 16:24

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.

查看更多
beautiful°
3楼-- · 2019-02-04 16:25

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

查看更多
女痞
4楼-- · 2019-02-04 16:25

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

查看更多
冷血范
5楼-- · 2019-02-04 16:32

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

查看更多
贪生不怕死
6楼-- · 2019-02-04 16:38

Doesn't Delphi output .net compatible IL code? I haven't used it in an age but I thought newer versions output .net assemblies.

If so then I would have thought FXcop would work and you could always add some of your own custom rules to it. Stylecop would not work but you could at least get FXCop running.

查看更多
Viruses.
7楼-- · 2019-02-04 16:40

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.

查看更多
登录 后发表回答