Check for correct file header

Is there a way to make ReSharper check for correct file headers just like classic StyleCop did. I'm aware that there is a way to define file headers to be inserted in new files, but we are using Resharperto check a rather big legacy codebase. So it would be helpful if there was an automatic check for correct file headers.

I'm referring to StyleCop rules SA1633 up to SA1649.

0
1 comment

Hello Florian,

thank you for contacting us.
With ReSharper you can specify file header in ReSharper | Options | Code Editing | File Header Text.
This specified file header is inserted in all source files using Code Cleanup tool. You can create a separate Code Cleanup profile just to apply the file header to all files.
If there's already file header added to some of the files it will be replaced by Code Cleanup also.
Please refer to the help article for more details - https://www.jetbrains.com/help/resharper/File_Header_Style.html.
Please let me know if you have any more questions.
Thank you

0

Please sign in to leave a comment.