mrtazz/pocketcleaner

View on GitHub
pocketcleaner.go

Summary

Maintainability
A
40 mins
Test Coverage

Method PocketClient.callPocketAPI has 6 return statements (exceeds 4 allowed).
Open

func (c *PocketClient) callPocketAPI(method string, data interface{}) (ret string, err error) {
    if method != "get" && method != "send" {
        return ret, fmt.Errorf("unknown method: %s", method)
    }
    apiURL := fmt.Sprintf("%s/%s?consumer_key=%s&access_token=%s",
Severity: Major
Found in pocketcleaner.go - About 40 mins to fix

    error should be the last type when returning multiple items
    Open

    func (c *PocketClient) archiveItems(list pocketItemArray) (err error, ret pocketItemArray) {
    Severity: Minor
    Found in pocketcleaner.go by golint

    error should be the last type when returning multiple items
    Open

    func (c *PocketClient) archiveBatch(list pocketArchiveItemArray) (err error, ret pocketItemArray) {
    Severity: Minor
    Found in pocketcleaner.go by golint

    There are no issues that match your filters.

    Category
    Status