Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReSharper - how to disable generation of rubbish documentation headers in Code Cleanup

We're using ReSharper 6.0 with StyleCop for ReSharper.

Although we use the StyleCop rule that members must have documentation headers, we don't want ReSharper's code cleanup facility to generate documentation headers for us, because they're inevitably rubbish. Bad doc headers are worse than none at all because they're less likely to be updated than added in the first place.

We tried turning off the setting 'Insert text into documentation and file headers' in ReSharper => Options => Tools => StyleCop but it bloody resets itself when you restart visual studio.

Any ideas how we can stop Code Cleanup creating documentation headers for us?

like image 229
David Avatar asked Nov 17 '11 10:11

David


1 Answers

ReSharper -> Options -> Tools section -> Code Cleanup -> select StyleCop profile -> Documentation section -> untick 1600.

Will prevent default documentation headers being created but StyleCop will still enforce that they should be there.

like image 149
David Avatar answered Sep 20 '22 17:09

David