tulir/gomuks

View on GitHub
matrix/crypto.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Container.initCrypto has 5 return statements (exceeds 4 allowed).
Open

func (c *Container) initCrypto() error {
    var cryptoStore crypto.Store
    var err error
    legacyStorePath := filepath.Join(c.config.DataDir, "crypto.gob")
    if _, err = os.Stat(legacyStorePath); err == nil {
Severity: Major
Found in matrix/crypto.go - About 35 mins to fix

    a blank import should be only in a main or test package, or have a comment justifying it
    Open

        _ "github.com/mattn/go-sqlite3"
    Severity: Minor
    Found in matrix/crypto.go by golint

    There are no issues that match your filters.

    Category
    Status