最新版 NDepend v2023.2.3 更新於 2023/12/7
Can analyze .NET 8.0 and ASP.NET Core application
NDepend 這款 Visual Studio工具管理複雜的.NET代碼並獲得優質的代碼。利用NDepend,可以通過Code Metrics(代碼標準)測量軟件的質量,通過Graphs & Treemaps(圖表和樹型圖)進行查看,通過標準規則和自定義規則來執行操作。這樣一來,軟件設計就變得十分具體明確,用戶可以有效地審核代碼、輕鬆地進行大規模重構並管理升級。
架構師與開發者可以用這工具來分析代碼的架構、指定設計規則、計畫大量的重整、檢視代碼或是與其他版本的代碼作比較。
專案越來越大,也越來越難一眼看出專案潛在的品質問題,這時必須利用一些第三方工具幫我們進一步分析 .NET 專案 (或整個方案),而這套 NDepend 正是一個極其優異的產品,對於一些多人開發的專案或是有點龐大或複雜的專案,都能利用 NDepend 幫我們做品質分析,甚至於可以跟 TFS 或其他 CI 整合進開發流程,透過自訂規則確保專案在開發的過程中都能有效維持一定的程式碼品質。
ndepend : The .NET Code Quality Tool
Integrate with Visual Studio 2022, 2019, 2017, 2015, 2013, 2012 and 2010, with Azure DevOps / TFS, with GitHub Action and all other DevOps platforms
All features available side-by-side with Visual Studio Code and Rider thanks to the standalone app VisualNDepend.exe
Analyze NEW .NET 8.0, .NET 7.0, .NET 6.0, .NET Core, .NET Fx 4.x, ASP.NET Core, Blazor, Xamarin, Unity and UWP application
Easily Manage Large Projects
Most companies have large systems that work together, often in mysterious ways. NDepend's in-depth reporting and toolset can help your company enforce its own coding standards and maintain complex projects.
Code Rule and Code Query
Hundreds of default code rules to check against best practices. Support for Code Query over C# LINQ (CQLinq) to easily customize rules and query code.
Powerful Dependency Graph and Matrix
Explore how the code is actually structured and shed light on architectural flaws thanks to the most powerful code dependency graph and dependency matrix available in the tool industry.
Smart Technical Debt Estimation
For each issue, the cost to fix and the severity are estimated through smart and customizable C# formulas. Thus estimations proposed are realistic.
Continuous Code Quality
A unique approach to continuously keep the technical debt under control and reimburse it with time.
Quality Gates
Quality Gates are C# LINQ (CQLinq) queries that implement PASS/FAIL criteria to code quality.
In-Depth Issues Management
Explore the issues-set in a few clicks and focus your effort on what is urgent and important.
Harness Test Coverage Data
Import test coverage data, and make the most of it in the NDepend feature-rich context.
Monitor the Health of Your Application
NDepend allows your team to accurately gauge the overall health of your application, no matter how complex it is.
Trend Monitoring
Get Trend Charts about pretty much any code metrics to master the evolution of your application.
Code Diff since Baseline
Compare two versions of a code base and its issues set, and browse diff and changes in any way you can think of.
Warnings on Build Process Health
Be warned of potential build process problems before they end up causing friction and pain.
Reduce Friction Between Your Developer Teams
NDepend's reporting and analysis helps architects and developers to communicate and reduce confusion.
Continuous Integration Reporting
Integrate NDepend analysis into your build process and get highly customized and detailed reports to see progression and prevent code quality degradation.
Complexity and Diagrams
Spot too complex code at a glance thanks to unique diagramming capabilities.
Code Quality and Code Metrics
Lines of Code, Cyclomatic Complexity, Coupling, Nesting Depth, Rank, NDepend supports them all (and much more).
Working with Legacy Code is Now Easier
By mapping out the structure of the project, it is much easier to see how components and dependencies are connected.
Detect Dependency Cycles
Get rid of dependency cycles between components to achieve higher code maintainability.
Enforce Immutability and Purity
NDepend helps maintaining clean side-effects free code to write highly maintainable products.
Real-World Proof
Full Visual Studio and Azure DevOps integration, super fast and lightweight analysis, integration within all CI/DevOps systems, NDepend is conceived for real-world programmers.
NDepend.API and Power Tools
Write your own static analyzer based on NDepend.API, or tweak existing open-sources Power Tools.
Features
- Code Rule and Code Query over LINQ (CQLinq)
- Powerful Dependency Graph and Matrix
- Smart Technical Debt Estimation
- Quality Gates
- In-Depth Issues Management
- Trend Monitoring
- Harness Test Coverage Data
- Code Quality and Code Metrics
- Detect Dependency Cycles
- Code Diff since Baseline
- Enforce Immutability and Purity
- Complexity and Diagrams
- Continuous Integration Reporting
- Warnings on Build Process Health
- NDepend.API and Power Tools
- Real-World Proof
版本介紹
NDepend for Developer
NDepend for Developer is dedicated to developers that use NDepend interactive UI from:
» the NDepend Visual Studio extension, supported VS versions: 2022, 2019, 2017, 2015, 2013, 2012 and 2010.
» or through the VisualNDepend.exe standalone executable.
It only runs on Windows. Each machine on which NDepend for Developer is activated, counts as a license seat.
NDepend for Build Machine
NDepend for Build Machine is dedicated to Windows, Linux and Mac build servers and Continuous Integration (CI) servers that integrate NDepend analysis into their build processes and produce NDepend reports.
Each physical machine, each virtual machine (VM), each agent, on which NDepend for Build Machine is activated, counts as a license seat.
NDepend for Build Machine is required to integrate NDepend into: SonarQube, TeamCity, Jenkins, AppVeyor, Bamboo.
NDepend Azure DevOps / TFS extension
The NDepend Azure DevOps / TFS Extension lets run an NDepend analysis after each rebuild and explore results in an interactive dashboard embedded in the AzureDevOps / TFS dashboard.
The NDepend Azure DevOps / TFS Extension is sold per 5x users allowed to access the extension dashboard. Only users accessing the hub are counted. Let's precise that the NDepend analysis is triggered no matter if the user responsible for commit is allowed to access the extension dashboard or not.
NDepend GitHub Action
The GitHub Action lets run an NDepend analysis after each rebuild and explore results in a shared interactive HTML+js report. This Action can also fail the build upon some Quality Gate(s) failure.
With a Developer license, the standalone app VisualNDepend.exe or the NDepend Visual Studio extension can be used to explore the result in more details.
The GitHub Action is sold per 5x users triggering the action. Only users triggering the action are counted.
版本比較表
Developer Edition |
Build Machine Edition |
Azure DevOps / TFS Edition |
GitHub Action | |
Visual Studio Integration and standalone app VisualNDepend.exe Integration in Visual Studio 2022, 2019, 2017, 2015, 2013, 2012 and 2010 (see screenshots of NDepend within Visual Studio here) Quality Gates and Rules validation within Visual Studio, before commit Interactive Dependency Graph Interactive Dependency Matrix Interactive Metrics Visualization through Treemaping |
V | |||
Build Process Integration and Reporting Integration into the Build Process with Jenkins, AppVeyor, Bamboo, TeamCity, SonarQube. Build Fail: The build can be aborted upon some NDepend Quality Gates failure. Automatic Report Production through NDepend.Console.exe (see some sample reports here). Automatic Project Creation through NDepend.Console.exe /CreateProject. Running an Analysis from Power Tools and NDepend.API. |
V | |||
Integration with Azure DevOps and TFS. (marketplace extension page) Cloud Code Quality integrated within Azure DevOps, no need for VPS hosting (Virtual Private Server). Azure DevOps Build Fail: The build can be aborted upon some NDepend Quality Gates failure. |
V | |||
GitHub Action. Run an NDepend analysis after each rebuild and explore results in a shared interactive HTML+js report (see some sample reports here). GitHub Build Fail: The build can be aborted upon some NDepend Quality Gates failure. With a Developer license, the standalone app VisualNDepend.exe or the NDepend Visual Studio extension can be used to fetch result from GitHub and explore it in details. |
V | |||
Project, Rule and Code Query Customization Facilities to Create and Customize NDepend Project Write Custom Rules and Queries and edit default ones. Rich code search by generating code queries Usage of Power Tools and NDepend.API (except Running an Analysis) |
V | V | ||
Common Features Analysis run that scans any Visual Studio solution and any .NET assembly Dashboard in UI ; in Report ; in Azure DevOps / TFS Smart Technical Debt Estimation Quality Gates validation Comparison against a Baseline Import of Test Coverage Data from Visual Studio Coverage, OpenCover, dotCover or NCover Run Default and Custom Code Rules and Queries Trend Metrics and Trend Charts Issues suppression |
V | V | V | V |