This repository contains a couple of .NET code analyzers, built with NDepend:
- Design Smells Detection Strategies - For more information about the detection strategies, check this article
- Structural Relations
- .NET Framework installed
- NDepend installed and NDepend license activated (Build license or trial)
- All solutions that you want to analyze need to be built
- Clone this repository. The repository needs to be in the same folder as the NDepend installation (next to the Lib folder). For more information about why, check the NDepend Power Tools documentation
- Build this solution.
- Go to the output folder and run the executable file (CodeAnalyzer.App.exe). E.g.:
CodeAnalyzer.App.exe -TopLevelInputFolder c:\path\to\input\folder\ -OutputFolder .\output\
- Because building the NDepend project can take some time, the CodeAnalyzer will reuse an already built project (if it's present in the NDependProjects folder in the output directory). If you want to rebuild the NDepend project, delete the contents of this directory.