The Sonar rule csharpsquid:S100 (Method name should comply with a naming convention) is thrown also for event handlers that are generated by Visual Studio, something like:
protected void Page_Load(object sender, EventArgs e)
{
DoIt();
}
Is it possible to ignore this rule for event handlers as they are auto-generated?
We have already changed the default Regex for this rule to allow underscores. The next version of the C# plugin will use that. Until then you can change the Regex yourself to ^[A-Z][a-zA-Z0-9_]*[a-zA-Z0-9]$
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With