org.sonar.l10n.go.rules.go.S117.html Maven / Gradle / Ivy
Shared naming conventions allow teams to collaborate effectively. This rule raises an issue when a local variable or function parameter name does
not match the provided regular expression.
Noncompliant Code Example
With the default regular expression ^(_|[a-zA-Z0-9]+)$:
func doSomething(my_param int) { // Noncompliant
var local_ int; // Noncompliant
...
}
Compliant Solution
func doSomething(myParam int) {
var local int;
...
}{code}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy