Showing 264 of 409 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): ...
BUG found Open
Open
keeping a reference to BUG-ID and trying to reconstruct the URL
- Exclude checks
TODO found Open
Open
// TODO: remove the page reload above and add the new case to the list
- Exclude checks
Merge this if statement with the enclosing one. Open
Open
if (not os.path.exists(filename)) or (not read_installation_id(filename)):
- Read upRead up
- Exclude checks
Merging collapsible if
statements increases the code's readability.
Noncompliant Code Example
if condition1: if condition2: # ...
Compliant Solution
if condition1 and condition2: # ...