rspec/rules/S116/python/rule.adoc
2020-12-21 15:38:52 +01:00

18 lines
226 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
With the default regular expression `+^[_a-z][_a-z0-9]*$+`:
----
class MyClass:
myField = 1
----
== Compliant Solution
----
class MyClass:
my_field = 1
----