evalphobia/eurekache

View on GitHub

Showing 3 of 9 total issues

Function TestItems has 65 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestItems(t *testing.T) {
    assert := assert.New(t)

    tests := []struct {
        max   int
Severity: Minor
Found in memorycache/memory_test.go - About 1 hr to fix

    Method RedisCache.getGobItem has 5 return statements (exceeds 4 allowed).
    Open

    func (c *RedisCache) getGobItem(key string) (*eurekache.Item, bool) {
        conn, err := c.conn()
        if err != nil {
            return nil, false
        }
    Severity: Major
    Found in rediscache/redis.go - About 35 mins to fix

      Method RedisCache.SetExpire has 5 return statements (exceeds 4 allowed).
      Open

      func (c *RedisCache) SetExpire(key string, data interface{}, ttl int64) error {
          conn, err := c.conn()
          if err != nil {
              return err
          }
      Severity: Major
      Found in rediscache/redis.go - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language