NationalGenomicsInfrastructure/ngi_pipeline

View on GitHub
ngi_pipeline/database/classes.py

Summary

Maintainability
C
1 day
Test Coverage

CharonSession has 28 functions (exceeds 20 allowed). Consider refactoring.
Open

class CharonSession(six.with_metaclass(Singleton, requests.Session)):
    
    def __init__(self, config=None, config_file_path=None):
        super(CharonSession, self).__init__()

Severity: Minor
Found in ngi_pipeline/database/classes.py - About 3 hrs to fix

    Function sample_update has 13 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def sample_update(self, projectid, sampleid, status=None, analysis_status=None,
    Severity: Major
    Found in ngi_pipeline/database/classes.py - About 1 hr to fix

      Function seqrun_update has 12 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def seqrun_update(self, projectid, sampleid, libprepid, seqrunid,
      Severity: Major
      Found in ngi_pipeline/database/classes.py - About 1 hr to fix

        Function seqrun_create has 10 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def seqrun_create(self, projectid, sampleid, libprepid, seqrunid,
        Severity: Major
        Found in ngi_pipeline/database/classes.py - About 1 hr to fix

          Function sample_create has 10 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def sample_create(self, projectid, sampleid, status=None, analysis_status=None,
          Severity: Major
          Found in ngi_pipeline/database/classes.py - About 1 hr to fix

            Function project_update has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def project_update(self, projectid, name=None, status=None, best_practice_analysis=None,
            Severity: Major
            Found in ngi_pipeline/database/classes.py - About 1 hr to fix

              Function project_create has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def project_create(self, projectid, name=None, status=None,
              Severity: Minor
              Found in ngi_pipeline/database/classes.py - About 35 mins to fix

                There are no issues that match your filters.

                Category
                Status