ainsleyclark/stock-informer

View on GitHub

Showing 3 of 3 total issues

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

func GetAbsoluteURL(fullURL string, relative string) (string, error) {
    const op = "HTTPUtil.GetAbsoluteURL"
    full, err := url.Parse(fullURL)
    if err != nil {
        return "", errors.NewInvalid(err, "Error parsing full URI", op)
Severity: Major
Found in httputil/httputil.go - About 35 mins to fix

    Method httpClient.Do has 5 return statements (exceeds 4 allowed).
    Open

    func (h *httpClient) Do(url, method string) (*Response, error) {
        const op = "HTTPClient.Do"
        resp, err := h.cycle.Do(url, options, method)
    
        // Setup the response data.
    Severity: Major
    Found in httputil/client.go - About 35 mins to fix

      Method scrape.Scrape has 5 return statements (exceeds 4 allowed).
      Open

      func (s *scrape) Scrape(uri string, selector string) (string, error) {
          const op = "Scraper.Scrape"
      
          response, err := s.client.Do(uri, http.MethodGet)
          if err != nil {
      Severity: Major
      Found in crawl/scrape.go - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language