stepf/RiboPip

View on GitHub
lib/ribopip/cli.rb

Summary

Maintainability
D
2 days
Test Coverage

Method postproc has 216 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def postproc
      require 'ribopip/deseq'
      require 'ribopip/expression_analysis'
      require 'ribopip/filenames'
      require 'ribopip/gene_id_2_name'
Severity: Major
Found in lib/ribopip/cli.rb - About 1 day to fix

    File cli.rb has 507 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require 'thor'
    require 'ribopip'
    
    # rubocop:disable all
    module Ribopip
    Severity: Major
    Found in lib/ribopip/cli.rb - About 1 day to fix

      Method align has 133 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def align
            require 'ribopip/array_writer'
            require 'ribopip/binary_checker'
            require 'ribopip/counts'
            require 'ribopip/feature_counts'
      Severity: Major
      Found in lib/ribopip/cli.rb - About 5 hrs to fix

        Method postproc has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

            def postproc
              require 'ribopip/deseq'
              require 'ribopip/expression_analysis'
              require 'ribopip/filenames'
              require 'ribopip/gene_id_2_name'
        Severity: Minor
        Found in lib/ribopip/cli.rb - About 55 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        There are no issues that match your filters.

        Category
        Status