When i change stylecop.json to include "xmlHeader": false" and remove XML headers, it gives SA1633 "The file header XML is invalid" warning
See original GitHub issueSA1633 should not occur with “xmlHeader”: false". Disabling SA1633 causes all header checking to be disabled, but I want the header to be checked as specified by StyleCop docs.
Sample json:
{
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"documentationRules": {
"copyrightText": "Copyright (c) 2013-2017 XYZ LLC."
"xmlHeader": false"
headerDecoration": "--------------------------------------------------------------------------------------------------------------------"
}
}
}
Sample CS file:
// --------------------------------------------------------------------------------------------------------------------
// Copyright (c) 2013-2017 XYZ LLC.
// --------------------------------------------------------------------------------------------------------------------
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
What does "File has no header" build warning in visual ...
cs files. I've googled but get swamped with results for "SA1633: The file has no header, the header Xml is invalid, or the...
Read more >stylecop.json 1.0.5
stylecop.json ... raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
Read more >StyleCop: A Detailed Guide to Starting and Using It
First, you can use rule set files to configure which rules are checked and how strongly you feel about them. Second, you can...
Read more >StyleCop Rules Documentation
The StyleCop tool provides warnings that indicate style and consistency rule violations in C# code. By default, the tool integrates into Visual Studio...
Read more >Stylecop.json setting is ignored during code cleanup and ...
Add file header option is presented when stylecop.json is in project. I'm expecting the same for code cleanup automatically when "Update file header"...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@philipag I forgot we fixed that a long time ago, so everything works if you just put
\n
in the settings file. I filed #2477 to make everything also “just work” if you put\r\n
in the settings file.