43 lines
669 B
Plaintext
43 lines
669 B
Plaintext
== Why is this an issue?
|
|
|
|
include::../description.adoc[]
|
|
|
|
=== Noncompliant code example
|
|
|
|
With the default regular expression ``++^(_|[a-zA-Z0-9]+)$++``:
|
|
|
|
[source,go]
|
|
----
|
|
func doSomething(my_param int) { // Noncompliant
|
|
var local_ int; // Noncompliant
|
|
...
|
|
}
|
|
----
|
|
|
|
=== Compliant solution
|
|
|
|
[source,go]
|
|
----
|
|
func doSomething(myParam int) {
|
|
var local int;
|
|
...
|
|
}{code}
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
include::../parameters.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|