Method for checking redundant code in C #

Is there any tool or way that I can test how I can optimize my code? redundancy removal? I am using VS 2010

Thanx

+3
source share
8 answers

I don't know about removing redundancy, but ReSharper has some nice code analysis features that can help identify unused blocks of code. It can also make suggestions for cleaner code, but it is not always 100% accurate.

+4
source

Such tools, even if they existed, would not be reliable. It would be best to review the code by a good developer or architect.

+3
source

. , , , ReSharper, . - . , , .

. S.O.L.I.D. . , :

  • ?
  • - ?
  • ?
  • , , / , ?
+1

, . , , , , , .

0

, , - Code Coverage. , . , , . , , .

, .

sabout:

Code Coverage #/. NET?

#

Microsoft FxCop :

http://msdn.microsoft.com/en-us/library/bb429476(VS.80).aspx

0

There is a (commercial, 249 โ‚ฌ) solution for checking duplicate code even in large projects.

http://www.solidsourceit.com/products/SolidSDD-code-duplication-cloning-analysis.html

0
source

For this purpose, we use the built-in Duplicated Finder in our TeamCity build server.

0
source

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


All Articles