rspec/rules/S1656/scala/rule.adoc
2020-06-30 17:16:12 +02:00

24 lines
273 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
----
def doSomething() = {
var name = ""
// ...
name = name
}
----
== Compliant Solution
----
def doSomething() = {
var name = ""
// ...
this.name = name
}
----
include::../see.adoc[]