rspec/rules/S1542/python/rule.adoc

35 lines
525 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::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::parameters.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]