Bypass SonarQube naming convention rule for Application_ methods in Global.asax

1.3k Views Asked by At

Is there any way to bypass the rule

"Rename this method to match the regular expression: [A-Z][a-zA-Z0-9]++"

for the Global.asax.cs, specifically for the for the Application_ methods/events? We don't want to minimize the amount of files that are skipped completely.

public class MvcApplication : System.Web.HttpApplication
{
    protected void Application_Start()
    {
1

There are 1 best solutions below

2
Mithfindel On

You can define a narrow exclusion pattern for this rule on this exact file, please follow instruction in SonarQube's manual.