melexis/sphinx-traceability-extension

View on GitHub

Showing 126 of 141 total issues

Too many instance attributes (8/7)
Open

class ItemPieChart(TraceableBaseNode):

Used when class has too many instance attributes, try to reduce this to get a simpler (and so easier to use) class.

Too many local variables (16/15)
Confirmed

    def build_pie_chart(self, sizes, labels, colors, env):

Used when a function or method has too many local variables.

subprocess call - check for execution of untrusted input.
Open

    plantuml_path = subprocess.check_output(["where", "/F", "plantuml.jar"])
Severity: Info
Found in doc/conf.py by bandit

Formatting a regular string which could be a f-string
Open

                txt = nodes.Text('%s not defined, broken link' % item_id)

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

            newnode = nodes.Text('{attr}{value}'.format(attr=attr_id, value=value))

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

                display_text = '{0.identifier} : {0.caption}'.format(item_info)

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

            selectors = ".{0}:visited".format(class_name)
Severity: Info
Found in mlx/traceability/traceability.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

            headers['Authorization'] = 'token {}'.format(private_token)
Severity: Info
Found in mlx/traceability/traceability.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

            report_warning("List item {!r} in merge/pull request {} is not defined as a checklist-item."
Severity: Info
Found in mlx/traceability/traceability.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

                report_warning("traceability_checklist: failed to GET {!r}: {!r}".format(url, err))
Severity: Info
Found in mlx/traceability/traceability.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

            report_warning('Traceability: item %s not found' % self['reftarget'], self['document'], self['line'])
Severity: Info
Found in mlx/traceability/traceability.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

        cli_match = match(r"\s*[\*\-]\s+\[(?P<checkbox>[\sx])\]\s+[*_`~]*(?P<target_id>{})".format(regex), line)
Severity: Info
Found in mlx/traceability/traceability.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

                        errors.append(TraceabilityException("No automatic reverse relation: {source} {relation} "

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Consider using Python 3 style super() without arguments
Open

        super(TraceableAttribute, self).update(other)

Emitted when calling the super() builtin with the current class and instance. On Python 3 these arguments are the default and they can be omitted.

Refactor this function to reduce its Cognitive Complexity from 60 to the 15 allowed.
Open

    def perform_replacement(self, app, collection):

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Formatting a regular string which could be a f-string
Open

            raise TraceabilityException('item {item} attribute does not match defined attributes ({attr}={value})'
Severity: Info
Found in mlx/traceability/traceable_item.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

        base_url = "{}/repos/{}/pulls/".format(api_host_name, settings['project_id'])
Severity: Info
Found in mlx/traceability/traceability.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Formatting a regular string which could be a f-string
Open

                raise TraceabilityException('item {item} has invalid attribute value for {attribute}'
Severity: Info
Found in mlx/traceability/traceable_item.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Consider using Python 3 style super() without arguments
Open

        super(TraceableItem, self).update(other)
Severity: Info
Found in mlx/traceability/traceable_item.py by pylint

Emitted when calling the super() builtin with the current class and instance. On Python 3 these arguments are the default and they can be omitted.

Formatting a regular string which could be a f-string
Open

            raise TraceabilityException('item {item} has invalid attribute ({attr}={value})'
Severity: Info
Found in mlx/traceability/traceable_item.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Severity
Category
Status
Source
Language