Showing 262 of 405 total issues
Rename function "makeExtension" to match the regular expression ^[a-z_][a-z0-9_]{2,}$. Open
Open
def makeExtension(**kwargs): # pylint: disable=invalid-name
- Read upRead up
- 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): ...
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. Open
Open
def clean(self, value):
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.