testinfra_bdd/group.py
Rename function "_" to match the regular expression ^[a-z_][a-z0-9_]{2,}$. Open
Open
def _(expected_user: str, testinfra_bdd_host):
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Shared coding conventions allow teams to collaborate efficiently. This rule checks that all function names match a provided regular expression.
Noncompliant Code Example
With the default provided regular expression: ^[a-z_][a-z0-9_]{2,30}$
def MyFunction(a,b): ...
Compliant Solution
def my_function(a,b): ...