ndepend

Getting list of types that are effected by an extension method in cqlinq

僤鯓⒐⒋嵵緔 提交于 2019-12-20 03:03:36
问题 How to get the list of types that are extended by a extension method in ndepend cqlinq? Using reflection to code this seems a bit of donkey work where ndepend is already there. 回答1: NDepend code model doesn't have a straight way to resolve the method parameter type. So we can come up with a satisfying answer with code query relying on string formatting extended type name, extracted from the method name. But this query is overly complex and there are edge cases where it won't work properly

Resolving MSB3247 - Found conflicts between different versions of the same dependent assembly

◇◆丶佛笑我妖孽 提交于 2019-12-17 03:44:27
问题 A .NET 3.5 solution ended up with this warning when compiling with msbuild. Sometimes NDepend might help out but in this case it didn't give any further details. Like Bob I ended up having to resort to opening each assembly in ILDASM until I found the one that was referencing an older version of the dependant assembly. I did try using MSBUILD from VS 2010 Beta 2 (as the Connect article indicated this was fixed in the next version of the CLR) but that didn't provide any more detail either

nDepend integration in Visual Studio 2010

馋奶兔 提交于 2019-12-13 14:11:47
问题 This stems from a previous question I asked regarding code metrics. I have been trying out nDepend as a tool to use in running metrics on our team's code. I have to say that so far I am very impressed with the design, information given, etc. My question now is if I can somehow combine the integrated nDepend tools with the builds and notifications for said builds in Team Foundation Server 2010. Whether this be by automatically triggering the nDepend code metrics to run on a TFS build, or

Setting up NCover for NUnit in FinalBuilder [closed]

冷暖自知 提交于 2019-12-13 12:09:17
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . Solved: Look at the bottom of this question for the working configuration I am attempting to set up NCover for usage in my FinalBuilder project, for a

NDepend - Unresolved .NET Assembly Error

送分小仙女□ 提交于 2019-12-13 04:47:21
问题 I am trying to run NDepend on our project. Even though the solution is built and assemblies exist, there is the following error: "Can't find the .NET assembly {AssemblyName} in specified folders. Has it been compiled properly? Is the NDepend project missing the containing folder of the .NET aseembly?" Any help is appreciated. Thanks. 来源: https://stackoverflow.com/questions/27012468/ndepend-unresolved-net-assembly-error

How to get list of extension methods in a solution or project in VS2013?

穿精又带淫゛_ 提交于 2019-12-13 02:02:16
问题 How does one get the list of extension methods in a solution/project? Is there anything in VS 2013 by default to achieve that like class view or using ndepend cqlinq? 回答1: You can just write the code query: from m in Application.Methods where m.IsExtensionMethod select m For a code query that group extension method sby types extended see: Getting list of types that are effected by an extension method in cqlinq 来源: https://stackoverflow.com/questions/29481538/how-to-get-list-of-extension

CQLINQ for list of methods returning a specific type or interface?

不问归期 提交于 2019-12-11 09:01:41
问题 What is the CQLINQ to get list of methods returning a (compatible) specific type or interface? 回答1: You can get inspiration from such query: let listOfT = ThirdParty.Types.WithFullName( "System.Collections.Generic.IList<T>").Single() let compatibleTypes = listOfT.TypesThatImplementMe.Concat(listOfT) from m in Methods.Where(m => m.ReturnType != null && compatibleTypes.Contains(m.ReturnType)) select new { m, m.ReturnType } 来源: https://stackoverflow.com/questions/29505525/cqlinq-for-list-of

NDepend SonarQube integration generates java.lang.NullPointerException

一个人想着一个人 提交于 2019-12-11 06:23:29
问题 When trying to integrate NDepend into SonarQube, a NullPointerException is generated saying that "The property "sonar.cs.ndepend.projectPath" must be set (to an absolute path)" I followed the instructions but right now I'm at a loss. Any ideas, anyone? NDepend version: 6.3.0 Professional SonarQube version: 6.0 Full exception stacktrace: ERROR: Error during SonarQube Scanner execution java.lang.NullPointerException: The property "sonar.cs.ndepend.projectPath" must be set (to an absolute path).

How to use CQLinq to get metrics of Methods and Fields within a single query

社会主义新天地 提交于 2019-12-10 22:30:56
问题 I am calculating average length of identifiers with CQLinq in NDepend, and I want to get the length of the names of classes, fields and methods. I walked through this page of CQlinq: http://www.ndepend.com/docs/cqlinq-syntax, and I have code like: let id_m = Methods.Select(m => new { m.SimpleName, m.SimpleName.Length }) let id_f = Fields.Select(f => new { f.Name, f.Name.Length }) select id_m.Union(id_f) It doesn't work, one error says: 'System.Collections.Generic.IEnumerable' does not contain

Can I tell NDepend to ignore a single result?

我怕爱的太早我们不能终老 提交于 2019-12-10 13:25:40
问题 I'm running NDepend against my C# project in VS 2012. There is a particular "critical rule violation" that I have looked at and have decided that I want to leave as-is. I want to tell NDepend to ignore this one violation and NOT count it against my critical rule violation count, so that I can get the dot at the bottom to be no longer red. If it matters: It's a "function with too many parameters". The purpose of function is to make a log entry into a database table, and I need to pass in all