Showing 82 of 109 total issues
Method check_diff
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
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}")
- Read upRead up
Method verify_checkout
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
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}"
- Read upRead up