[C#] False positive with S101 in case of partial generated classes

14 views
Skip to first unread message

tamas...@gmail.com

unread,
Feb 15, 2017, 2:22:17 PM2/15/17
to SonarLint
Hello Guys,

S101 reports non compliant class names on all parts of partial classes. I think this is good. However, when any of the partial parts is recognized to be in a generated file, then the other parts should not be reported.

file1:
///<auto-generated>
partial class SOME_CLASS
{
}

file2:
partial class SOME_CLASS // Noncompliant, although it can't be changed due to the other part.
{
}

Thanks,
Tamas

Amaury Leve

unread,
Feb 17, 2017, 12:05:43 PM2/17/17
to tamas...@gmail.com, SonarLint
Cheers,
Amaury

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/24ea843f-44a7-4b9d-a9b1-8bc2e7af1b85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Amaury LEVE | SonarSource
Software Developer
Reply all
Reply to author
Forward
0 new messages