You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First reported in #1766, Issue D9, with some refinements here.
This is a difference with classic StyleCop. In classic StyleCop the code below would trigger SA1400 and SA1205. In the current analyzer it triggers SA1202 and SA1205. It boils down to the fact that the partial classes without an access modifier may appear before or after the public class, depending on the access modifier assigned. Classic StyleCop suppressed the SA1202 and just reported SA1205 (and SA1400). The current analyzer suppresses SA1400 in favor of SA1205, but classic StyleCop reported both.
I'd be okay with just documenting this functionality difference with classic StyleCop. This is not a problem that will come up frequently, and I think it was really a bug in classic StyleCop that they reported both SA1400 and SA1205. The current functionality is actually more correct than standard StyleCop.
namespaceRuleViolations{/// <summary>A rule SA1205 fail.</summary>publicclassRuleSA1205Fail{/// <content>A part 1 class.</content>partialclassPart1{}/// <summary>A part 2 class.</summary>publicclassPart2{}}}
The text was updated successfully, but these errors were encountered:
First reported in #1766, Issue D9, with some refinements here.
This is a difference with classic StyleCop. In classic StyleCop the code below would trigger SA1400 and SA1205. In the current analyzer it triggers SA1202 and SA1205. It boils down to the fact that the partial classes without an access modifier may appear before or after the public class, depending on the access modifier assigned. Classic StyleCop suppressed the SA1202 and just reported SA1205 (and SA1400). The current analyzer suppresses SA1400 in favor of SA1205, but classic StyleCop reported both.
I'd be okay with just documenting this functionality difference with classic StyleCop. This is not a problem that will come up frequently, and I think it was really a bug in classic StyleCop that they reported both SA1400 and SA1205. The current functionality is actually more correct than standard StyleCop.
The text was updated successfully, but these errors were encountered: