Showing 286 of 616 total issues
Function change_category
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def change_category(self, old_cat, new_cat,
Function getReferences
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def getReferences(self,
Function download
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def download(self,
Function report
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def report(
Function authorship
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def authorship(
Function LogeventsPageGenerator
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def LogeventsPageGenerator(logtype: str | None = None,
Function __init__
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def __init__(self, option: str, shortcut: str, text: str, context: int,
Function twtranslate
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def twtranslate(
Function redirect_func
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def redirect_func(target, *,
Function add_deprecated_attr
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def add_deprecated_attr(self, name: str, replacement: Any = None, *,
Function AllpagesPageGenerator
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def AllpagesPageGenerator(
Function deleterevs
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def deleterevs(
Function PrefixingPageGenerator
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def PrefixingPageGenerator(
Function submit
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def submit(self, request, result, data_result: str | None,
Function fromTimestamp
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def fromTimestamp(cls,
Function blocks
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def blocks(
Function deletedrevs
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def deletedrevs(
Function __init__
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
def __init__(self, site=None,
Function findAlternatives
has a Cognitive Complexity of 12 (exceeds 10 allowed). Consider refactoring. Open
Open
def findAlternatives(self, page) -> bool:
"""Append link target to a list of alternative links.
Overrides the BaseDisambigBot method.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function parse_site
has a Cognitive Complexity of 12 (exceeds 10 allowed). Consider refactoring. Open
Open
def parse_site(self) -> tuple:
"""Parse only enough text to determine which site the link points to.
This method does not parse anything after the first ":"; links
with multiple interwiki prefixes (such as "wikt:fr:Parlais") need
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"