glaciers-in-archives/snowman

View on GitHub
internal/sparql/sparql.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Repository.Query has 8 return statements (exceeds 4 allowed).
Open

func (r *Repository) Query(queryLocation string, arguments ...interface{}) ([]map[string]rdf.Term, error) {
    query, exists := r.QueryIndex[queryLocation] // QueryIndex includes query/, wanted or not? not?
    if !exists {
        return nil, errors.New("The given query could not be found. " + queryLocation)
    }
Severity: Major
Found in internal/sparql/sparql.go - About 50 mins to fix

    Method Repository.QueryCall has 5 return statements (exceeds 4 allowed).
    Open

    func (r *Repository) QueryCall(query string) (*string, error) {
        form := url.Values{}
        form.Set("query", query)
        b := form.Encode()
    
    
    Severity: Major
    Found in internal/sparql/sparql.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status