melexis/sphinx-traceability-extension

View on GitHub

Showing 6 of 141 total issues

File item_matrix_directive.py has 605 lines of code (exceeds 500 allowed). Consider refactoring.
Open

"""Module for the item-matrix directive"""
import re
from collections import namedtuple
from copy import copy, deepcopy

Severity: Major
Found in mlx/traceability/directives/item_matrix_directive.py - About 4 hrs to fix

    TraceableItem has 28 functions (exceeds 25 allowed). Consider refactoring.
    Open

    class TraceableItem(TraceableBaseClass):
        '''
        Storage for a traceable documentation item
        '''
    
    
    Severity: Minor
    Found in mlx/traceability/traceable_item.py - About 2 hrs to fix

      File traceability.py has 515 lines of code (exceeds 500 allowed). Consider refactoring.
      Open

      # -*- coding: utf-8 -*-
      
      """
      Traceability plugin
      
      
      Severity: Major
      Found in mlx/traceability/traceability.py - About 2 hrs to fix

        Function setup has 53 lines of code (exceeds 40 allowed). Consider refactoring.
        Open

        def setup(app):
            """Extension setup"""
            # Javascript and stylesheet for the tree-view
            app.add_js_file('https://cdn.rawgit.com/aexmachina/jquery-bonsai/master/jquery.bonsai.js')
            app.add_css_file('https://cdn.rawgit.com/aexmachina/jquery-bonsai/master/jquery.bonsai.css')
        Severity: Major
        Found in mlx/traceability/traceability.py - About 1 hr to fix

          Avoid deeply nested control flow statements.
          Open

                                  if target_of_target in item.yield_targets(rev_relation):
                                      errors.append(TraceabilityException(
                                          "Circular relationship found: {src} {rel} {tgt} {rel} {nested} {rel} {src}"
                                          .format(src=itemid, rel=relation, tgt=tgt, nested=target_of_target),
                                          item.docname))
          Severity: Major
          Found in mlx/traceability/traceable_collection.py - About 45 mins to fix

            Avoid too many return statements within this function.
            Open

                    return self.items[source_id].is_related(relations, target_id)
            Severity: Major
            Found in mlx/traceability/traceable_collection.py - About 30 mins to fix
              Severity
              Category
              Status
              Source
              Language