用于德尔福的 FxCop/StyleCop?

发布于 2024-07-17 16:33:43 字数 65 浏览 4 评论 0原文

有谁知道 Delphi 的 FxCop/StyleCop 的等效项吗? 我真的很想将样式等自动检查纳入持续集成中。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

亽野灬性zι浪 2024-07-24 16:33:43

Peganza 有 Pascal 分析器: http://www.peganza.com/products_pal.htm

我不知道不知道这些功能与 FxCop 相比如何,因为我还没有真正使用过其中任何一个。

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.

一个人练习一个人 2024-07-24 16:33:43

我见过的最接近的是来自 SOCK 软件的 CodeHealer。 我们使用它,并将其集成到我们的 FinalBuilder 构建中。 它与 FxCop 在一个重要方面有所不同:它分析源代码,而不是生成的可执行文件。 它也不像 FxCop 那样检查那么多。 但我认为这是德尔福在这一类别中最好的东西。

目前还没有对 Delphi 2009 的支持,但他们表示正在努力解决。

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.

迷离° 2024-07-24 16:33:43

Delphi 代码分析器 是另一款开源软件。

Delphi Code Analyzer is another one that is open source.

儭儭莪哋寶赑 2024-07-24 16:33:43

DGrok 项目始于几年前的 FxCop 之类的项目。 解析器和分析部分仍然可用,请在“DGrok 0.8.1:多线程,默认选项,GPL" - 解析器是一个 .Net 项目,但是

DGrok是一套用于解析的工具
Delphi源码告诉你
关于它的东西。 阅读更多相关信息
DGrok 项目页面。

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.

十年九夏 2024-07-24 16:33:43

有一个新的 Sonar 的 Delphi 插件,它使用 Delphi 语法来自动运行对源代码进行测试。

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

遗忘曾经 2024-07-24 16:33:43

我听说过Delforex,但我自己没有使用过它(然而)

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

萌辣 2024-07-24 16:33:43

Delforex 非常适合实际格式化代码。 但它并没有做更多的事情。 (我们已经/确实使用它)。

我会支持 Pascal Analyzer 或 Code Healer。

瓦卡诺

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

梦境 2024-07-24 16:33:43

Delphi 不输出 .net 兼容的 IL 代码吗? 我已经很久没有使用它了,但我认为较新的版本会输出 .net 程序集。

如果是这样,那么我会认为 FXcop 会起作用,并且您始终可以向其中添加一些您自己的自定义规则。 Stylecop 不会工作,但你至少可以让 FXCop 运行。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文