Инструмент с открытым исходным кодом для нахождения недостижимого/неиспользованного кода c# [закрытым]

Я снабдил бы вкладками добавление отступа не, работают, чем повреждающийся снабжающий вкладками между объектами формы.

, Если Вы хотите сделать отступ, чтобы вставить код в поле Markdown, используйте Ctrl + K (или ⌘K на Mac).

С точки зрения фактической остановки действия, jQuery (который использует Переполнение стека) будет мешать событию пузыриться, когда Вы возвратите false от обратного вызова события. Это делает жизнь легче для работы с несколькими браузерами.

5
задан balalakshmi 10 November 2009 в 07:15
поделиться

4 ответа

FxCop, which is built into higher editions of Visual Studio, will warn of unused private or internal members. Right-click your project and choose Run Code Analysis. In conjunction with "unreachable code segments" being identified by the compiler as others have noted, this should catch the remaining unused code.

(Note FxCop will not warn of unused public or protected members, because these could be part of an API intended for use by external callers. Also, FxCop is not available in all editions of Visual Studio though older versions are available for download.)

5
ответ дан 14 December 2019 в 13:39
поделиться

Although not an open source tool you can use R# (Resharper). it's a visual studio add-in that can show you unreachable code and can remove it automatically (using system clean-up).

1
ответ дан 14 December 2019 в 13:39
поделиться

The best I can suggest is a code coverage tool used on the main executable instead of a test assembly, then put the application through it's paces... A static analysis of code would be NP hard to do in some more esoteric cases.

1
ответ дан 14 December 2019 в 13:39
поделиться

Вы можете использовать инструмент покрытия кода, который доступен в Visual Studio 2005/2008 Team Suite.

0
ответ дан 14 December 2019 в 13:39
поделиться
Другие вопросы по тегам:

Похожие вопросы: