Preparing report...

Report for github.com/jackfr0st13/gorm-sqlite-cipher

A+    Excellent!    Found 3 issues across 4 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint25%

Golint is a linter for Go source code.

    • gorm-sqlite-cipher/sqlite-encrypt.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 20: warning: exported type Dialector should have comment or be unexported (golint)
    • Line 26: warning: exported function Open should have comment or be unexported (golint)
    • Line 30: warning: exported method Dialector.Name should have comment or be unexported (golint)
    • Line 34: warning: exported method Dialector.Initialize should have comment or be unexported (golint)
    • Line 59: warning: exported method Dialector.ClauseBuilders should have comment or be unexported (golint)
    • Line 107: warning: exported method Dialector.DefaultValueOf should have comment or be unexported (golint)
    • Line 116: warning: exported method Dialector.Migrator should have comment or be unexported (golint)
    • Line 124: warning: exported method Dialector.BindVarTo should have comment or be unexported (golint)
    • Line 128: warning: exported method Dialector.QuoteTo should have comment or be unexported (golint)
    • Line 144: warning: exported method Dialector.Explain should have comment or be unexported (golint)
    • Line 148: warning: exported method Dialector.DataTypeOf should have comment or be unexported (golint)
    • Line 156: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 172: warning: exported method Dialector.SavePoint should have comment or be unexported (golint)
    • Line 172: warning: receiver name dialectopr should be consistent with previous receiver name dialector for Dialector (golint)
    • Line 177: warning: exported method Dialector.RollbackTo should have comment or be unexported (golint)
    • Line 177: warning: receiver name dialectopr should be consistent with previous receiver name dialector for Dialector (golint)
    • gorm-sqlite-cipher/migrator.go
    • Line 14: warning: exported type Migrator should have comment or be unexported (golint)
    • Line 18: warning: exported method Migrator.RunWithoutForeignKey should have comment or be unexported (golint)
    • Line 29: warning: exported method Migrator.HasTable should have comment or be unexported (golint)
    • Line 37: warning: exported method Migrator.DropTable should have comment or be unexported (golint)
    • Line 56: warning: exported method Migrator.HasColumn should have comment or be unexported (golint)
    • Line 74: warning: exported method Migrator.AlterColumn should have comment or be unexported (golint)
    • Line 114: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 124: warning: exported method Migrator.DropColumn should have comment or be unexported (golint)
    • Line 168: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 174: warning: exported method Migrator.CreateConstraint should have comment or be unexported (golint)
    • Line 178: warning: exported method Migrator.DropConstraint should have comment or be unexported (golint)
    • Line 182: warning: exported method Migrator.HasConstraint should have comment or be unexported (golint)
    • Line 196: warning: exported method Migrator.CurrentDatabase should have comment or be unexported (golint)
    • Line 202: warning: exported method Migrator.BuildIndexOptions should have comment or be unexported (golint)
    • Line 221: warning: exported method Migrator.CreateIndex should have comment or be unexported (golint)
    • Line 249: warning: exported method Migrator.HasIndex should have comment or be unexported (golint)
    • Line 266: warning: exported method Migrator.RenameIndex should have comment or be unexported (golint)
    • Line 277: warning: exported method Migrator.DropIndex should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!