rspec/rules/S1542/python/rule.adoc

25 lines
377 B
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
include::../description.adoc[]
== Noncompliant Code Example
2021-01-27 13:42:22 +01:00
With the default provided regular expression: ``++^[a-z_][a-z0-9_]*$++``
2020-06-30 12:47:33 +02:00
----
def MyFunction(a,b):
...
----
== Compliant Solution
----
def my_function(a,b):
...
----
ifdef::rspecator-view[]
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::rspecator-view[]