nesquena/gitdocs

View on GitHub
lib/gitdocs/manager.rb

Summary

Maintainability
A
1 hr
Test Coverage

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

    def start(host, port)
      Gitdocs.log_info("Starting Gitdocs v#{VERSION}...")
      Gitdocs.log_info(
        "Using configuration root: '#{Initializer.root_dirname}'"
      )
Severity: Minor
Found in lib/gitdocs/manager.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 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def start(host, port)
      Gitdocs.log_info("Starting Gitdocs v#{VERSION}...")
      Gitdocs.log_info(
        "Using configuration root: '#{Initializer.root_dirname}'"
      )
Severity: Minor
Found in lib/gitdocs/manager.rb - About 1 hr to fix

    Line is too long. [82/80]
    Open

            # ... and wait ###########################################################
    Severity: Minor
    Found in lib/gitdocs/manager.rb by rubocop

    Unnecessary utf-8 encoding comment.
    Open

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

    There are no issues that match your filters.

    Category
    Status