Showing 737 of 737 total issues
Function _parse
has a Cognitive Complexity of 11 (exceeds 10 allowed). Consider refactoring. Open
Open
def _parse(self, version_str: str) -> None:
version_match = MediaWikiVersion.MEDIAWIKI_VERSION.fullmatch(
version_str)
if not version_match:
- 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 _extract_results
has a Cognitive Complexity of 11 (exceeds 10 allowed). Consider refactoring. Open
Open
def _extract_results(self, resultdata):
"""Extract results from resultdata."""
for item in resultdata:
result = self.result(item)
if self._namespaces and not self._check_result_namespace(result):
- 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
TODO found Open
Open
TODO: decide if/how to enable/disable this feature.
- Exclude checks
TODO found Open
Open
# TODO: handle unsigned or archived by template
- Exclude checks
TODO found Open
Open
# TODO: use options instead following variables:
- Exclude checks
TODO found Open
Open
# TODO: should be move to assemble()
- Exclude checks
TODO found Open
Open
TODO: move to textlib
- Exclude checks
TODO found Open
Open
# TODO: enhance and use textlib.MultiTemplateMatchBuilder
- Exclude checks
TODO found Open
Open
# TODO: consider removing this: a different image of the same
- Exclude checks
TODO found Open
Open
# TODO: allow these cases to be propagated!
- Exclude checks
FIXME found Open
Open
whys.add(why) # FIXME: we don't know if we ever archive anything
- Exclude checks
TODO found Open
Open
# TODO: Check whether pages aren't vandalized
- Exclude checks
FIXME found Open
Open
# FIXME: What errors are we catching here?
- Exclude checks
TODO found Open
Open
# TODO: allow answer to repeat previous or go back after a mistake
- Exclude checks
FIXME found Open
Open
break # FIXME: doesn't work. edits twice!
- Exclude checks
FIXME found Open
Open
# FIXME: Implement this
- Exclude checks
TODO found Open
Open
# TODO: handle unsigned
- Exclude checks
TODO found Open
Open
# TODO: Make an option so that unstamped (unsigned) posts get
- Exclude checks
FIXME found Open
Open
'csvEncoding': 'Windows-1252', # FIXME: Encoding hell
- Exclude checks
TODO found Open
Open
# TODO: break this function up into subroutines!
- Exclude checks