Preparing report...

Report for github.com/42minutes/go-42minutes

A    Great!    Found 15 issues across 27 files

Tweet

gofmt96%

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


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!


gocyclo88%

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.


golint96%

Golint is a linter for Go source code.

    • go-42minutes/user_library_sql.go
    • Line 258: warning: comment on exported method SqlUserLibrary.QueryEpisodesForFinder should be of the form "QueryEpisodesForFinder ..." (golint)
    • Line 291: warning: comment on exported method SqlUserLibrary.QueryEpisodesForDownloader should be of the form "QueryEpisodesForDownloader ..." (golint)
    • Line 342: warning: exported method SqlUserLibrary.Close should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign55%

IneffAssign detects ineffectual assignments in Go code.

    • go-42minutes/watcher_file.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/fsnotify/fsnotify (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/xyproto/recwatch (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/fsnotify/fsnotify (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/xyproto/recwatch (invalid package name: "") (ineffassign)
    • go-42minutes/api.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/gin-gonic/gin (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/gin-gonic/gin (invalid package name: "") (ineffassign)
    • go-42minutes/queue.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • go-42minutes/user_library_sql_test.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/jinzhu/gorm/dialects/sqlite (invalid package name: "") (ineffassign)
    • Line 86: warning: s.Fail undefined (type *UserLibraryPersistenceSuite has no field or method Fail) (ineffassign)
    • Line 92: warning: s.Fail undefined (type *UserLibraryPersistenceSuite has no field or method Fail) (ineffassign)
    • Line 115: warning: s.Fail undefined (type *UserLibraryPersistenceSuite has no field or method Fail) (ineffassign)
    • Line 123: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 126: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 127: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 132: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 135: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 138: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 141: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 143: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 148: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 151: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 154: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 157: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 159: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 166: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 168: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 172: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 179: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 181: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 185: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 188: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 190: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 194: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 202: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 204: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 208: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 212: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 214: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 218: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 226: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 230: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 238: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 242: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 250: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 254: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 258: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 265: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 266: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 276: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 277: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 282: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 283: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 292: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 293: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 299: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 300: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 308: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 309: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 313: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 314: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • Line 318: warning: s.Equal undefined (type *UserLibraryPersistenceSuite has no field or method Equal) (ineffassign)
    • Line 319: warning: s.Nil undefined (type *UserLibraryPersistenceSuite has no field or method Nil) (ineffassign)
    • go-42minutes/cmd/standalone/main.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/42minutes/go-42minutes (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/42minutes/go-trakt (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/gin-gonic/gin (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/jinzhu/gorm/dialects/sqlite (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/op/go-logging (invalid package name: "") (ineffassign)
    • go-42minutes/user_library_rethink.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/dancannon/gorethink (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/dancannon/gorethink (invalid package name: "") (ineffassign)
    • go-42minutes/logging.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/op/go-logging (invalid package name: "") (ineffassign)
    • Line 3: warning: could not import github.com/op/go-logging (invalid package name: "") (ineffassign)
    • go-42minutes/finder_torrents.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/42minutes/go-torrentlookup (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/42minutes/go-torrentlookup (invalid package name: "") (ineffassign)
    • go-42minutes/show_library_trakt.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/42minutes/go-trakt (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/42minutes/go-trakt (invalid package name: "") (ineffassign)

misspell92%

Misspell Finds commonly misspelled English words