melexis/sphinx-traceability-extension

View on GitHub
mlx/traceability/directives/item_attribute_directive.py

Summary

Maintainability
A
0 mins
Test Coverage

Similar lines in 2 files
Wontfix

"""Module for the item-attribute directive"""

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==traceability.directives.item2dmatrixdirective:[94:100] ==traceability.directives.itemmatrixdirective:[615:621] optionalarguments = 1 # Options optionspec = { 'class': directives.classoption, 'target': directives.unchanged, 'source': directives.unchanged,

Similar lines in 2 files
Wontfix

"""Module for the item-attribute directive"""

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==traceability.directives.itemlinkdirective:[104:109] ==traceability.directives.itemrelinkdirective:[114:120] self.checkoptionpresence(node, 'nooverwrite')

if not processoptionssuccess: return [] env.traceabilitycollection.addintermediate_node(node) return [node]

Similar lines in 2 files
Wontfix

"""Module for the item-attribute directive"""

Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==traceability.directives.itemattributesmatrixdirective:[51:56] ==traceability.directives.itemmatrixdirective:[71:76] headings = [nodes.entry('', title) for title in titles] numberofcolumns = len(titles) tgroup = nodes.tgroup() tgroup += [nodes.colspec(colwidth=5) for _ in range(numberof_columns)] tgroup += nodes.thead('', nodes.row('', *headings))

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

            report_warning('Found attribute description which is not defined in configuration ({})'

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.

There are no issues that match your filters.

Category
Status