ndepend

NDepend - Several .NET assemblies have the name {MyAssembly} but they are different

I've just started using NDepend and am trying to analyse a solution. This warning appears when I add the solution's assemblies and it will not load any assemblies with the warning: Cant' load the assembly {MyAssembly}: Several .NET assemblies have the name {MyAssembly} but they are different: ...list of the .dlls in the project whic...

Finding Types that implement specific Methods using CQL

I'm refining the built in dead code query in NDEpend and I'm finding a lot of false positives from standalone programs (i.e. w/ Main() entrypoints). I noticed that the built in unused types query has this clause: !NameIs "Program" AND // Generally, types named Program // contain a Main() entry-point ...

How to find code which is only called by tests

Occasionally I am looking at some code, I search for usages of a method (using resharper) and find that it is only called by tests. So it's effectively redundant and I can delete it and the methods that call it. Obviously there's no point in having unused code lying around the place, slowing down the build and the test run. What I'd lik...

visual studio code analysis/metrics tools

Hi, I just downloaded a trial version of NDepend. What I'm looking for is a tool that helps in standardization of code. Not only in style of braces, spaces, naming conventions, etc, but also in cohesion & complexity. Is anybody using it that can tell me if I can integrate cohesion & complexity into the build errors (in example, if comp...

How do I direct nDepend output into the artifacts folder on CruiseControl.Net?

<cb:define subversionpath="c:\Program Files\Subversion\bin\svn.exe" msbuild4="C:\WINNT\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" msbuild35="C:\WINNT\Microsoft.NET\Framework\v3.5\MSBuild.exe" nDependPath="C:\Progra~1\NDepend" standardlogger="ThoughtWorks.CruiseControl.MsBuild.XmlLogger,C:\Program Files\CruiseControl...

Exposing CQL Result in NDepend

Hi All, I have some custom CQLs in NDepend Project and I want generate the results of these CQLs using NDepend.Console.exe. When I generate the report, I don't see any result of my custom CQLs in the report. I can export from Visual NDepend but I want to use NDepend.Console.exe from script. Ant. ...

NDepend Count, Average, etc.. reporting... aggregates. Possible? clean work arounds?

We have a huge code base, where methods with too many local variables alone returns 226 methods. I don't want this huge table being dumped into the xml output to clutter it up, and I'd like the top 10 if possible, but what I really want is the count so we can do trending and executive summaries. Is there a clean/efficient/scalable non-ha...

Getting NDepend to recurse through an input directory finding all assemblies/source across multiple projects

I am using a NAnt build script to call NDepend with the required command line arguments. <exec program="NDepend.Console.exe" basedir="${NDependPath}"> <arg line="${NDependProjectFilePath} /indirs ${NDependInDirs} /outdir ${NDependOutputDir}" /> </exec> But what I am looking for is to get NDepend to recurse through all subdirectorie...

Why does list initialization with lambda causes high cyclomatic complexity?

Initialization of list with lambdas causes high IL cyclomatic complexity: why, and how remove this complexity? For example following code causes the static constructor of the class (which is actually compiler generated) to be very complex: 1 + the list count. static List<Predicate<string>> list = new List<Predicate<string>>() { s =>...

Does NDepend run on Mono/Linux?

I'd like to use NDepend at home for an open source project, but I can't find if it run on linux with mono 2.6.8. Any one have succesfully used it on a mono only machine? ...