roobre/ffxivapi

View on GitHub

Showing 2 of 20 total issues

Function main has 61 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func main() {
    addr := ":8080"
    if len(os.Args) >= 2 {
        addr = os.Args[1]
    }
Severity: Minor
Found in http/cmd/main.go - About 1 hr to fix

    Method TCacheRoundTripper.RoundTrip has 7 return statements (exceeds 4 allowed).
    Open

    func (trt *TCacheRoundTripper) RoundTrip(rq *http.Request) (response *http.Response, err error) {
        if rq.Method != http.MethodGet {
            return trt.roundTrip(rq)
        }
    
    
    Severity: Major
    Found in lodestone/tcacheRoundTripper.go - About 45 mins to fix
      Severity
      Category
      Status
      Source
      Language