nesquena/gitdocs

View on GitHub
lib/gitdocs/celluloid_facade.rb

Summary

Maintainability
A
1 hr
Test Coverage

Assignment Branch Condition size for start is too high. [33.56/15]
Open

    def start
      Celluloid.boot unless Celluloid.running?
      @supervisor = Celluloid::SupervisionGroup.run!

      # Start the web server ###################################################
Severity: Minor
Found in lib/gitdocs/celluloid_facade.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method start has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def start
      Celluloid.boot unless Celluloid.running?
      @supervisor = Celluloid::SupervisionGroup.run!

      # Start the web server ###################################################
Severity: Minor
Found in lib/gitdocs/celluloid_facade.rb - About 1 hr to fix

    Unnecessary utf-8 encoding comment.
    Open

    # -*- encoding : utf-8 -*-
    Severity: Minor
    Found in lib/gitdocs/celluloid_facade.rb by rubocop

    %w-literals should be delimited by [ and ].
    Open

                  urls: %w(/css /js /img /doc),
    Severity: Minor
    Found in lib/gitdocs/celluloid_facade.rb by rubocop

    This cop enforces the consistent usage of %-literal delimiters.

    Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

    Example:

    # Style/PercentLiteralDelimiters:
    #   PreferredDelimiters:
    #     default: '[]'
    #     '%i':    '()'
    
    # good
    %w[alpha beta] + %i(gamma delta)
    
    # bad
    %W(alpha #{beta})
    
    # bad
    %I(alpha beta)

    There are no issues that match your filters.

    Category
    Status