grokify/mogo

View on GitHub
math/ratio/ratio.go

Summary

Maintainability
A
35 mins
Test Coverage

Function RatioInt has 5 return statements (exceeds 4 allowed).
Open

func RatioInt(x1, y1, x2, y2 int) (int, int) {
    if x2 > 0 && y2 > 0 {
        return x2, y2
    } else if x2 <= 0 && y2 <= 0 {
        return x1, y1
Severity: Major
Found in math/ratio/ratio.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status