BigKeeper/big-keeper

View on GitHub

Showing 82 of 109 total issues

Method check_diff has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def check_diff(path, branch, compare_branch)
compare_branch_commits = Array.new
IO.popen("cd '#{path}'; git log --left-right #{branch}...#{compare_branch} --pretty=oneline") do |io|
io.each do |line|
compare_branch_commits.push(line) if (line.include? '>') && (line.include? "Merge branch #{branch} into #{compare_branch}")
Severity: Minor
Found in lib/big_keeper/util/git_operator.rb - About 25 mins to fix

Method verify_checkout has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def verify_checkout(path, branch_name)
Dir.chdir(path) do
cmd = "git checkout -b #{branch_name}"
if GitOperator.new.has_branch(path, branch_name)
cmd = "git checkout #{branch_name}"
Severity: Minor
Found in lib/big_keeper/service/git_service.rb - About 25 mins to fix
Severity
Category
Status
Source
Language