.NET

The Best .NET Static Analysis Tools (Linters/Formatters)

We rank 11 .NET linters, code analyzers, formatters, and more. Find and compare tools like Mega-Linter, ThreatMapper, Roslyn Analyzers, and more. Please rate and review tools that you've used. This helps others find the best tools for their projects.

2 .NET Tools

Microsoft IntelliTest

Generate a candidate suite of tests for your .NET code.

  • MaintainedMaintained
  • MaintainedDotnet
  • Maintainedcli
  • Maintainedlinter
  • 0% upvoted

Pex and Moles

Pex automatically generates test suites with high code coverage using automated white box analysis.

  • MaintainedMaintained
  • MaintainedDotnet
  • Maintainedcli
  • Maintainedlinter
  • 0% upvoted

9 Multi-Language Tools

Mega-Linter

Mega-Linter can handle any type of project thanks to its 70+ embedded Linters, its advanced reporting, runnable on any CI system or locally, with assisted installation and configuration, able to apply formatting and fixes

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 67% upvoted

ThreatMapper

Vulnerability Scanner and Risk Evaluation for containers, serverless and hosts at runtime. ThreatMapper generates runtime BOMs from dependencies and operating system packages, matches against multiple threat feeds, scans for unprotected secrets, and scores issues based on severity and risk-of-exploit.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedservice
  • Maintainedlinter
  • 83% upvoted

Roslyn Analyzers

Roslyn-based implementation of FxCop analyzers.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 100% upvoted

Offensive 360

Sponsor

Commercial Static Code Analysis system doesn't require building the source code or pre-compilation.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedservice
  • Maintainedlinter
  • 67% upvoted

CodeRush

Code creation, debugging, navigation, refactoring, analysis and visualization tools that use the Roslyn engine in Visual Studio 2015 and up.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 0% upvoted

dotenet-format

A code formatter for .NET. Preferences will be read from an .editorconfig file, if present, otherwise a default set of preferences will be used. At this time dotnet-format is able to format C# and Visual Basic projects with a subset of supported .editorconfig options.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 0% upvoted

Code Pulse

Code Pulse is a free real-time code coverage tool for penetration testing activities by OWASP and Code Dx (GitHub).

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 0% upvoted

relint

A static file linter that allows you to write custom rules using regular expressions (RegEx).

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 33% upvoted

Veracode

Find flaws in binaries and bytecode without requiring source. Support all major programming languages: Java, .NET, JavaScript, Swift, Objective-C, C, C++ and more.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 40% upvoted

Frequently Asked Questions

What are .NET tools?

.NET Framework (pronounced as "dot net") is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large class library called Framework Class Library (FCL) and provides language interoperability (each language can use code written in other languages) across several programming languages.

What are the best .NET static analysis tools and linters?

The most popular .NET tools ranked by user votes are: Mega-Linter, ThreatMapper, Roslyn Analyzers, Offensive 360, CodeRush.

Which .NET services are free for open source projects?

Commercial services with a free plan for open source include Mega-Linter, ThreatMapper, Roslyn Analyzers, dotenet-format, Code Pulse, relint.

Related Tags

Our Sponsors

This website is completely open source. To fund our work, we fully rely on sponsors. Thanks to them, we can keep the site free for everybody. Please check out their offers below.

  • BugProve
  • Pixee
  • semgrep
  • Offensive 360
  • BetterScan