Showing 616 of 616 total issues
Function report
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def report(
Function authorship
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def authorship(
Function LogeventsPageGenerator
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def LogeventsPageGenerator(logtype: str | None = None,
Function __init__
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def __init__(self, option: str, shortcut: str, text: str, context: int,
Function twtranslate
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def twtranslate(
Function redirect_func
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def redirect_func(target, *,
Function add_deprecated_attr
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def add_deprecated_attr(self, name: str, replacement: Any = None, *,
Function AllpagesPageGenerator
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def AllpagesPageGenerator(
Function deleterevs
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def deleterevs(
Function PrefixingPageGenerator
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def PrefixingPageGenerator(
Function submit
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def submit(self, request, result, data_result: str | None,
Function fromTimestamp
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def fromTimestamp(cls,
Function blocks
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def blocks(
Function deletedrevs
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def deletedrevs(
Function __init__
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
def __init__(self, site=None,
Function findAlternatives
has a Cognitive Complexity of 12 (exceeds 10 allowed). Consider refactoring. 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
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"
Further reading
Function __new__
has a Cognitive Complexity of 12 (exceeds 10 allowed). Consider refactoring. Open
def __new__(cls, name, bases, dct):
"""Create the new class."""
def test_method(site, package):
def test_template(self):
- 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 apply_replacements
has a Cognitive Complexity of 12 (exceeds 10 allowed). Consider refactoring. Open
def apply_replacements(self, original_text, applied, page) -> str:
"""Apply all replacements to the given text."""
new_text = original_text
exceptions = _get_text_exceptions(self.exceptions)
skipped_containers = set()
- 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 isTitleExcepted
has a Cognitive Complexity of 12 (exceeds 10 allowed). Consider refactoring. Open
def isTitleExcepted(self, title) -> bool:
"""Return True if one of the exceptions applies for the given title."""
if 'title' in self.exceptions:
for exc in self.exceptions['title']:
if exc.search(title):
- 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"