Why is this an issue?

Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate.This rule checks that all local variables follow a naming convention.

The default configuration is:

Noncompliant code example

With the default regular expression ^[a-z][a-z0-9]*([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$:

Module Module1
    Sub Main()
        Dim Foo = 0 ' Noncompliant
    End Sub
End Module

Compliant solution

Module Module1
    Sub Main()
        Dim foo = 0 ' Compliant
    End Sub
End Module