Rank: Member
Groups: Authorized User, Developers Joined: 11/12/2018(UTC) Posts: 25
Thanks: 1 times Was thanked: 4 time(s) in 3 post(s)
|
I'm using Visual Studio 2109 Pro to work on AbleCommerce 9 source code mods. When I build, I get a ton of these errors: SA1650 : CSharp.Documentation : The documentation text within the param tag contains incorrectly spelled words: '[some word is doesn't like such as url]' Does anyone know how to turn these errors off or suppress them, or at least make them warnings instead of errors so it will build successfully? I've tried googling it, but all the directions seem to be for older versions of Visual Studio and StyleCop and they don't work any more. I did try adding this line to GlobalSuppressions.cs to see if I could suppress the error for one type, but it didn't help: [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Scope = "type", Target = "CommerceBuilder.Catalog.CatalogNode")] I still got the error for items in the CatalogNode.cs file. I also tried right-click project, choose Properties, go to Code Analysis. The Active Rules setting is "Microsoft Managed Recommended Rules". When I click the Configure button, SA1650 is not listed. Edited by user Monday, April 13, 2020 11:59:10 AM(UTC)
| Reason: spelling corrections
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/12/2018(UTC) Posts: 25
Thanks: 1 times Was thanked: 4 time(s) in 3 post(s)
|
OK, so I poked around an searched a little more, and I figured it out. At the CommerceBuilder project level, there is already a Settings.StyleCop file. Under the Analyzers section, it starts out with: Code:
<Analyzers>
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
<Rules>
<Rule Name="FileMustHaveHeader">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
[etc.]
So right after that, I added: Code:
<Rule Name="ElementDocumentationMustBeSpelledCorrectly">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
Edited by user Monday, April 13, 2020 2:31:30 PM(UTC)
| Reason: Add code tags
|
2 users thanked Jay for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close