StyleCop 用于其他语言

发布于 2024-07-15 05:11:40 字数 113 浏览 11 评论 0原文

我们一直在使用 StyleCop 来执行 C# 中的编码标准,我想知道其他语言是否有类似的工具? 即:

  • js
  • css
  • sql

weve been using StyleCop for enforcing coding standards in C#, I was wondering are there similar tools for other languages? namely:

  • js
  • css
  • sql

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

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

发布评论

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

评论(5

素食主义者 2024-07-22 05:11:40

还没见过 StyleCop,但对于 Java,有 Checkstyle:http://checkstyle.sourceforge.net/

Haven't seen StyleCop, but for Java there is Checkstyle: http://checkstyle.sourceforge.net/

伊面 2024-07-22 05:11:40

JavaScript: JSHint

CSS: CSS LINT

SQL:声纳

JavaScript: JSHint

CSS: CSS LINT

SQL: Sonar

酒解孤独 2024-07-22 05:11:40

CSS 和 CSS 已经有了一些进展。 PHP_CodeSniffer 支持 JS 编码标准 (博客文章/公告)。 目前(2009 年 3 月)它处于候选发布状态。

There has been some moves towards CSS & JS coding standards being supported in PHP_CodeSniffer (blog post/announcement). It's currently (March 2009) in Release Candidate status though.

ゝ杯具 2024-07-22 05:11:40

我不知道有任何 js 工具会实际执行提交规则,但是 http://www.jslint.com/ 是一个好的开始。

I'm not aware of any js tool that will actually enforce rules on commit but http://www.jslint.com/ is a good start.

孤凫 2024-07-22 05:11:40

对于 Perl,有一个名为 perlcritic 的工具。

For Perl there is a tool called perlcritic.

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