C# 有哪些 linter?

发布于 2024-07-17 16:15:47 字数 1542 浏览 5 评论 0原文

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

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

发布评论

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

评论(6

风筝有风,海豚有海 2024-07-24 16:15:47

尝试过FxCop? 它作为“代码分析”集成到 VS 中。

在较新版本的 Visual Studio 中,它称为“Microsoft 代码分析”,可以从 Visual Studio Marketplace 下载:https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.MicrosoftCodeAnalysis2017

Tried FxCop? It's integrated into VS as "Code Analysis"

In the newer versions of Visual Studio, it is called "Microsoft Code Analysis" and can be downloaded from the Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.MicrosoftCodeAnalysis2017

酒解孤独 2024-07-24 16:15:47

SonarLint(免费,开源)非常贴心!

SonarLint for Visual Studio 基于 .NET 编译器平台(“Roslyn”)及其代码分析 API 并从中受益,可在 Visual Studio 2015 中提供完全集成的用户体验。
SonarLint 是免费、开源的,可在 Visual Studio Gallery 中使用。

SonarLint (free, open source) is pretty sweet!

SonarLint for Visual Studio is based on and benefits from the .NET Compiler Platform ("Roslyn") and its code analysis API to provide a fully-integrated user experience in Visual Studio 2015.
SonarLint is free, open source, and available in the Visual Studio Gallery.

凝望流年 2024-07-24 16:15:47

Resharper 执行相当多的静态分析以及做大量其他有用的事情。 自版本 8.0 起,分析可以在命令行模式下运行。 目前,如果没有它,我不会用 C# 编写代码。

除了 FxCop 之外,Gendarme 是另一个值得关注的工具(它是 FxCop 的 Mono 版本,但它们是不同的)方法和他们实际发现的错误)。

Resharper performs a fair bit of static analysis as well as doing a ton of other useful things. Since version 8.0 analysis can run in command line mode. Currently I wouldn't code in C# without it.

As well as FxCop, Gendarme is another tool to look at (it is Mono's version of FxCop but they are different in approach and the errors that they actually find).

公布 2024-07-24 16:15:47

Gendarme for Mono 与 FxCop 类似

Gendarme for Mono is similar to FxCop

小嗷兮 2024-07-24 16:15:47

您可以尝试 Red-Gate 的 .Net Reflector,您可以从此处获取它。 CodePlex 上提供了许多有用的 .Net Reflector 插件,您可以从此处获取。

You can try .Net Reflector by Red-Gate, you can get it from here. Many useful plugins for .Net Reflector are available on CodePlex which you can get it from here.

不念旧人 2024-07-24 16:15:47

这个问题已经有答案了,但仅供参考...

您可以尝试 PVS-工作室。 这不是免费的,但是,恕我直言,必须有一个。
引自他们的网站:

PVS-Studio 是一个用于检测用 C、C++ 和 C# 编写的程序源代码中的错误的工具。

PVS-Studio 执行静态代码分析并生成报告,帮助程序员查找和修复错误。 PVS-Studio 进行广泛的代码检查; 但它对于搜索打印错误和复制粘贴错误特别有用。

该分析器是为使用 Visual Studio 的开发人员设计的。

This question already has an answer, but for reference...

You can try PVS-Studio. That's not free, but, IMHO, must have one.
Quote from their site:

PVS-Studio is a tool used to detect bugs in the source code of programs written in C, C++ and C#.

PVS-Studio performs static code analysis and generates a report that helps a programmer find and fix bugs. PVS-Studio does a wide range of code checks; but it is especially useful to search for misprints and Copy-Paste errors.

The analyzer is designed for developers who use Visual Studio.

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