rspec/rules/S1700/python/rule.adoc

41 lines
514 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,python]
----
class Foo:
foo = ''
def getFoo(self):
...
foo = Foo()
foo.getFoo() # what does this return?
----
=== Compliant solution
[source,python]
----
class Foo:
name = ''
def getName(self):
...
foo = Foo()
foo.getName()
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
endif::env-github,rspecator-view[]