Delete Header Header - StyleCop

We use StyleCop in our project to get the general formatting of our code. Most of us also use Resharper, with which StyleCop goes well.

We would like to include copyright information in the title, but we do not want to include a summary. Thus, rule SA1633 is checked, and rule SA1639 is not checked.

When we use Resharper (more precisely, I believe the StyleCop plugin for Resharper) to insert the file header, we get both copyright information and the summary element. The standard procedure today is to remove the summary element if we really do not want to write something there.

How to stop the automatic addition of a bulletin item?

+5
source share
3 answers

I do not know the solution for R #, however, if you add copyright information using another utility, for example. License Header Manager , you are not facing this problem. Perhaps this helps until R # adds this feature.

+1
source

This must be configured using the ReSharper options. With ReSharper 8.2, you can proceed to configuration using the following steps:

In Visual Studio:
Resharper - > Options ...

Then, in the Resharper Options dialog box in the left pane:
Edit Code โ†’ Clear Code

Select or add a profile, then scroll down to the StyleCop section:
StyleCop โ†’ Documentation โ†’ 1604

Then uncheck 1604.

:

enter image description here

0

Does your title template include a hardcoded composite tag? If so, it doesn't matter what this flag says.

Check here and make sure the tag is not hardcoded: enter image description here

0
source

All Articles