lib/gitdocs/manager.rb
Assignment Branch Condition size for start is too high. [21.12/15] Open
Open
def start(host, port)
Gitdocs.log_info("Starting Gitdocs v#{VERSION}...")
Gitdocs.log_info(
"Using configuration root: '#{Initializer.root_dirname}'"
)
- Read upRead up
- Exclude checks
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
Open
def start(host, port)
Gitdocs.log_info("Starting Gitdocs v#{VERSION}...")
Gitdocs.log_info(
"Using configuration root: '#{Initializer.root_dirname}'"
)
Line is too long. [82/80] Open
Open
# ... and wait ###########################################################
- Exclude checks
Unnecessary utf-8 encoding comment. Open
Open
# -*- encoding : utf-8 -*-
- Exclude checks