File _main.py
has 1453 lines of code (exceeds 250 allowed). Consider refactoring.
"""Pandoc filter to number all kinds of things."""
Numbered
has 33 functions (exceeds 20 allowed). Consider refactoring.
class Numbered:
"""
Numbered elements.
Arguments
Function _compute_data
has 26 lines of code (exceeds 25 allowed). Consider refactoring.
def _compute_data(self):
classes = self._doc.defined[self._basic_category]["classes"]
if self._alias == self._tag:
self._set_content(
Function _compute_data
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
def _compute_data(self):
classes = self._doc.defined[self._basic_category]["classes"]
if self._alias == self._tag:
self._set_content(
Function _compute_alias
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
def _compute_alias(self):
if not self._title:
if self._section_alias:
self._alias = (
Function meta_format
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def meta_format(
Function meta_entry
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def meta_entry(
Function _compute_title
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
def _compute_title(self):
self._title = []
if (
isinstance(self._get_content()[-3], Str)
and self._get_content()[-3].text[-1:] == ")"
There are no issues that match your filters.