visual-studio-2008shortcutstylecop

Can StyleCop automatically fix anything?


I've decided to start running StyleCop on a medium sized project and am getting over 1000 warnings.

Is there a quick easy way to fix most of these warnings? Most of the warnings could easily have been automated to resolve and would save me a lot of time.


Solution

  • This doesn't exactly "automatically fix anything" but there is a StyleCop plug-in for Resharper on Github that will automatically highlight the style errors in your code.

    Update: According to the StyleCop for ReSharper website, ReSharper now provides an increasing number of Quick-Fixes for StyleCop errors. You select a quick-fix from the list and the problem will be resolved automatically.