C # /. NET Custom Code Analysis

What tool can I examine the source or assemblies and tell if the StringBuilder has ever been used? or if an ObjectDataSource was used?

I am open to analyzing or analyzing the source code, but I also need to know the right way to do this against web applications.

UPDATE : I’m probably looking for a tool that you can insert into the assembly process, which displays a report telling me if some assemblies or templates were used. I would also like to know if inheritance is used anywhere in the code (in classes without a frame in the assembly). A simple way to tell me if OOP has been used.

+3
source share
6 answers

Take a look at NDepend - it has this feature and much more.

I have successfully used it to analyze very large projects. It has a built-in code query language that allows you to find code based on dependencies and using different code.

It can also be used for both source code and binary assemblies - although the analysis of binary files will be more limited (there is no analysis of cyclic complexity and such).

+13
source

Reflector contains many add-ons including code search . Obviously this is a text search, but it can help. Other solutions may work better, but may not be as inexpensive.

+2
source

NDepend - .

, .NET .NET Telerik JustDecompile:

http://www.telerik.com/justdecompile

, . , , . UserVoice: http://justdecompile.uservoice.com

, .

+2

StyleCop , .

, StyleCop , MSBUILD. nant, - StyleCopCmd StyleCop . StyleCop StyleCopCmd nant, .

+1

, FxCop . , .

" FxCop : " Jason BinaryCoder.net

: FxCop- , VSTS Code Analysis FxCop - ( ), TFS 2008 Gated check- .

+1

, , Visual Studio, " ".

0

Source: https://habr.com/ru/post/1712131/


All Articles