rspec/rules/S1656/scala/rule.adoc

24 lines
273 B
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
def doSomething() = {
var name = ""
// ...
name = name
}
----
== Compliant Solution
----
def doSomething() = {
var name = ""
// ...
this.name = name
}
----
include::../see.adoc[]