SA1600 triggers for internal interfaces when documentInterfaces = true and documentInternalElements = false
See original GitHub issueSA1600 is mis-firing on internal interfaces when the stylecop.json documentationRules has documentInterfaces = true and documentInternalElements = false
example
namespace Foo
{
internal interface Bar // SA1600 fires for this when it shouldn't
{
void Baz();
}
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
StyleCop SA1600 rule and interfaces realisation
1. Copy documentation from interface. · 2. Suppress message with SuppressMessageAttribute. · 3. Divide class into regions, · 4. Modify rule SA1600.
Read more >stylecop.json 1.0.5
"xmlHeader" : false, "documentInterfaces" : true, "documentExposedElements" : true, "documentInternalElements" : false, "documentPrivateElements" : false,
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
@sharwell Done: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3100
@zplan @RobSiklos since the current behavior matches what was originally intended when the feature was implemented, I’m going to resolve this issue as answered. It sounds like the design does not work well for your scenarios, so please feel free to open a new issue proposing a specific change to the current behavior, and make sure to account for existing users who may be happy with the current behavior (i.e. the new behavior should only be activated by a new setting so current settings do not change).