Preparing report...

Report for github.com/oniony/TMSU

A    Great!    Found 75 issues across 90 files

Tweet

gofmt91%

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.


golint20%

Golint is a linter for Go source code.

    • TMSU/src/github.com/oniony/TMSU/common/path/path.go
    • Line 27: warning: exported type FileSystemFile should have comment or be unexported (golint)
    • Line 32: warning: exported function IsRoot should have comment or be unexported (golint)
    • Line 36: warning: exported function Rel should have comment or be unexported (golint)
    • Line 45: warning: exported function RelTo should have comment or be unexported (golint)
    • Line 78: warning: exported function UnescapeOctal should have comment or be unexported (golint)
    • Line 91: warning: exported function Dereference should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/database/query.go
    • Line 23: warning: comment on exported function Queries should be of the form "Queries ..." (golint)
    • Line 39: warning: comment on exported function Query should be of the form "Query ..." (golint)
    • Line 55: warning: comment on exported function InsertQuery should be of the form "InsertQuery ..." (golint)
    • Line 77: warning: comment on exported function DeleteQuery should be of the form "DeleteQuery ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/cli/imply.go
    • Line 26: warning: exported var ImplyCommand should have comment or be unexported (golint)
    • Line 51: warning: error should be the last type when returning multiple items (golint)
    • Line 125: warning: error should be the last type when returning multiple items (golint)
    • Line 214: warning: error should be the last type when returning multiple items (golint)
    • TMSU/src/github.com/oniony/TMSU/query/parser.go
    • Line 22: warning: exported type Parser should have comment or be unexported (golint)
    • Line 26: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 30: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • Line 34: warning: exported type Expression should have comment or be unexported (golint)
    • Line 37: warning: exported type EmptyExpression should have comment or be unexported (golint)
    • Line 40: warning: exported type OrExpression should have comment or be unexported (golint)
    • Line 45: warning: exported type AndExpression should have comment or be unexported (golint)
    • Line 50: warning: exported type ComparisonExpression should have comment or be unexported (golint)
    • Line 56: warning: exported type NotExpression should have comment or be unexported (golint)
    • Line 60: warning: exported type TagExpression should have comment or be unexported (golint)
    • Line 64: warning: exported type ValueExpression should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/database/file.go
    • Line 28: warning: comment on exported function FileCount should be of the form "FileCount ..." (golint)
    • Line 42: warning: comment on exported function Files should be of the form "Files ..." (golint)
    • Line 60: warning: comment on exported function File should be of the form "File ..." (golint)
    • Line 76: warning: comment on exported function FileByPath should be of the form "FileByPath ..." (golint)
    • Line 95: warning: comment on exported function FilesByDirectory should be of the form "FilesByDirectory ..." (golint)
    • Line 120: warning: comment on exported function FileCountByFingerprint should be of the form "FileCountByFingerprint ..." (golint)
    • Line 136: warning: comment on exported function FilesByFingerprint should be of the form "FilesByFingerprint ..." (golint)
    • Line 153: warning: comment on exported function UntaggedFiles should be of the form "UntaggedFiles ..." (golint)
    • Line 170: warning: comment on exported function FileCountForQuery should be of the form "FileCountForQuery ..." (golint)
    • Line 183: warning: comment on exported function FilesForQuery should be of the form "FilesForQuery ..." (golint)
    • Line 196: warning: comment on exported function DuplicateFiles should be of the form "DuplicateFiles ..." (golint)
    • Line 255: warning: comment on exported function InsertFile should be of the form "InsertFile ..." (golint)
    • Line 285: warning: comment on exported function UpdateFile should be of the form "UpdateFile ..." (golint)
    • Line 311: warning: comment on exported function DeleteFile should be of the form "DeleteFile ..." (golint)
    • Line 336: warning: comment on exported function DeleteUntaggedFiles should be of the form "DeleteUntaggedFiles ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/common/terminal/ansi/ansi.go
    • Line 23: warning: exported function Bold should have comment or be unexported (golint)
    • Line 27: warning: exported function Italic should have comment or be unexported (golint)
    • Line 31: warning: exported function Underline should have comment or be unexported (golint)
    • Line 35: warning: exported function Blink should have comment or be unexported (golint)
    • Line 39: warning: exported function Invert should have comment or be unexported (golint)
    • Line 43: warning: exported function Black should have comment or be unexported (golint)
    • Line 47: warning: exported function Red should have comment or be unexported (golint)
    • Line 51: warning: exported function Green should have comment or be unexported (golint)
    • Line 55: warning: exported function Yellow should have comment or be unexported (golint)
    • Line 59: warning: exported function Blue should have comment or be unexported (golint)
    • Line 63: warning: exported function Magenta should have comment or be unexported (golint)
    • Line 67: warning: exported function Cyan should have comment or be unexported (golint)
    • Line 71: warning: exported function White should have comment or be unexported (golint)
    • Line 75: warning: exported function DarkGrey should have comment or be unexported (golint)
    • Line 79: warning: exported function Strip should have comment or be unexported (golint)
    • Line 83: warning: exported function Sort should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/tag.go
    • Line 23: warning: comment on exported method Storage.TagCount should be of the form "TagCount ..." (golint)
    • Line 28: warning: comment on exported method Storage.Tags should be of the form "Tags ..." (golint)
    • Line 33: warning: comment on exported method Storage.Tag should be of the form "Tag ..." (golint)
    • Line 38: warning: comment on exported method Storage.TagsByIds should be of the form "TagsByIds ..." (golint)
    • Line 43: warning: comment on exported method Storage.TagByName should be of the form "TagByName ..." (golint)
    • Line 48: warning: comment on exported method Storage.TagByCasedName should be of the form "TagByCasedName ..." (golint)
    • Line 53: warning: comment on exported method Storage.TagsByNames should be of the form "TagsByNames ..." (golint)
    • Line 58: warning: comment on exported method Storage.TagsByCasedNames should be of the form "TagsByCasedNames ..." (golint)
    • Line 63: warning: comment on exported method Storage.AddTag should be of the form "AddTag ..." (golint)
    • Line 72: warning: comment on exported method Storage.RenameTag should be of the form "RenameTag ..." (golint)
    • Line 81: warning: comment on exported method Storage.CopyTag should be of the form "CopyTag ..." (golint)
    • Line 100: warning: comment on exported method Storage.DeleteTag should be of the form "DeleteTag ..." (golint)
    • Line 117: warning: comment on exported method Storage.TagUsage should be of the form "TagUsage ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/common/version.go
    • Line 24: warning: exported type Version should have comment or be unexported (golint)
    • Line 30: warning: exported function ParseVersion should have comment or be unexported (golint)
    • Line 55: warning: exported method Version.LessThan should have comment or be unexported (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 61: warning: exported method Version.GreaterThan should have comment or be unexported (golint)
    • Line 61: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/value.go
    • Line 23: warning: comment on exported method Storage.ValueCount should be of the form "ValueCount ..." (golint)
    • Line 28: warning: comment on exported method Storage.Values should be of the form "Values ..." (golint)
    • Line 33: warning: comment on exported method Storage.Value should be of the form "Value ..." (golint)
    • Line 38: warning: comment on exported method Storage.ValuesByIds should be of the form "ValuesByIds ..." (golint)
    • Line 43: warning: comment on exported method Storage.UnusedValues should be of the form "UnusedValues ..." (golint)
    • Line 48: warning: comment on exported method Storage.ValueByName should be of the form "ValueByName ..." (golint)
    • Line 53: warning: comment on exported method Storage.ValueByCasedName should be of the form "ValueByCasedName ..." (golint)
    • Line 62: warning: comment on exported method Storage.ValuesByNames should be of the form "ValuesByNames ..." (golint)
    • Line 67: warning: comment on exported method Storage.ValuesByCasedNames should be of the form "ValuesByCasedNames ..." (golint)
    • Line 72: warning: comment on exported method Storage.ValuesByTag should be of the form "ValuesByTag ..." (golint)
    • Line 77: warning: comment on exported method Storage.AddValue should be of the form "AddValue ..." (golint)
    • Line 86: warning: comment on exported method Storage.RenameValue should be of the form "RenameValue ..." (golint)
    • Line 95: warning: comment on exported method Storage.DeleteValue should be of the form "DeleteValue ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/common/terminal/print.go
    • Line 24: warning: exported const ETX should have comment or be unexported (golint)
    • Line 26: warning: exported function PrintColumns should have comment or be unexported (golint)
    • Line 30: warning: exported function PrintColumnsWidth should have comment or be unexported (golint)
    • Line 105: warning: exported function PrintWrapped should have comment or be unexported (golint)
    • Line 109: warning: exported function PrintWrappedWidth should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/entities/file.go
    • Line 25: warning: exported type FileId should have comment or be unexported (golint)
    • Line 27: warning: exported type FileIds should have comment or be unexported (golint)
    • Line 41: warning: exported method FileIds.Uniq should have comment or be unexported (golint)
    • Line 60: warning: exported type File should have comment or be unexported (golint)
    • Line 70: warning: exported method File.Path should have comment or be unexported (golint)
    • Line 74: warning: exported type Files should have comment or be unexported (golint)
    • Line 76: warning: exported method Files.Where should have comment or be unexported (golint)
    • Line 88: warning: exported type FileTagCount should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/cli/untag.go
    • Line 29: warning: exported var UntagCommand should have comment or be unexported (golint)
    • Line 48: warning: error should be the last type when returning multiple items (golint)
    • Line 100: warning: error should be the last type when returning multiple items (golint)
    • Line 158: warning: error should be the last type when returning multiple items (golint)
    • TMSU/src/github.com/oniony/TMSU/cli/values.go
    • Line 26: warning: exported var ValuesCommand should have comment or be unexported (golint)
    • Line 41: warning: error should be the last type when returning multiple items (golint)
    • Line 97: warning: error should be the last type when returning multiple items (golint)
    • Line 149: warning: error should be the last type when returning multiple items (golint)
    • TMSU/src/github.com/oniony/TMSU/common/terminal/ansi/codes.go
    • Line 18: warning: exported var ResetCode should have comment or be unexported (golint)
    • Line 20: warning: exported var BoldCode should have comment or be unexported (golint)
    • Line 21: warning: exported var ItalicCode should have comment or be unexported (golint)
    • Line 22: warning: exported var UnderlineCode should have comment or be unexported (golint)
    • Line 23: warning: exported var BlinkCode should have comment or be unexported (golint)
    • Line 24: warning: exported var InvertCode should have comment or be unexported (golint)
    • Line 26: warning: exported var BlackCode should have comment or be unexported (golint)
    • Line 27: warning: exported var RedCode should have comment or be unexported (golint)
    • Line 28: warning: exported var GreenCode should have comment or be unexported (golint)
    • Line 29: warning: exported var YellowCode should have comment or be unexported (golint)
    • Line 30: warning: exported var BlueCode should have comment or be unexported (golint)
    • Line 31: warning: exported var MagentaCode should have comment or be unexported (golint)
    • Line 32: warning: exported var CyanCode should have comment or be unexported (golint)
    • Line 33: warning: exported var WhiteCode should have comment or be unexported (golint)
    • Line 35: warning: exported var DarkGreyCode should have comment or be unexported (golint)
    • Line 37: warning: exported var CodeByName should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/implication.go
    • Line 24: warning: comment on exported method Storage.Implications should be of the form "Implications ..." (golint)
    • Line 29: warning: comment on exported method Storage.ImplicationsFor should be of the form "ImplicationsFor ..." (golint)
    • Line 54: warning: comment on exported method Storage.ImplicationsImplying should be of the form "ImplicationsImplying ..." (golint)
    • Line 79: warning: comment on exported method Storage.AddImplication should be of the form "AddImplication ..." (golint)
    • Line 95: warning: comment on exported method Storage.DeleteImplication should be of the form "DeleteImplication ..." (golint)
    • Line 100: warning: comment on exported method Storage.DeleteImplicationsByTagId should be of the form "DeleteImplicationsByTagId ..." (golint)
    • Line 105: warning: comment on exported method Storage.DeleteImplicationsByValueId should be of the form "DeleteImplicationsByValueId ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/query.go
    • Line 23: warning: comment on exported method Storage.Queries should be of the form "Queries ..." (golint)
    • Line 28: warning: comment on exported method Storage.Query should be of the form "Query ..." (golint)
    • Line 33: warning: comment on exported method Storage.AddQuery should be of the form "AddQuery ..." (golint)
    • Line 38: warning: comment on exported method Storage.DeleteQuery should be of the form "DeleteQuery ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/entities/value.go
    • Line 25: warning: exported type ValueId should have comment or be unexported (golint)
    • Line 27: warning: exported type ValueIds should have comment or be unexported (golint)
    • Line 41: warning: exported method ValueIds.Uniq should have comment or be unexported (golint)
    • Line 60: warning: exported type Value should have comment or be unexported (golint)
    • Line 65: warning: exported type Values should have comment or be unexported (golint)
    • Line 79: warning: exported method Values.Contains should have comment or be unexported (golint)
    • Line 89: warning: exported method Values.ContainsCasedName should have comment or be unexported (golint)
    • Line 108: warning: exported method Values.Any should have comment or be unexported (golint)
    • Line 118: warning: exported function ValidateValueName should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/filetag.go
    • Line 23: warning: comment on exported method Storage.FileTagExists should be of the form "FileTagExists ..." (golint)
    • Line 41: warning: comment on exported method Storage.FileTagCount should be of the form "FileTagCount ..." (golint)
    • Line 46: warning: comment on exported method Storage.FileTags should be of the form "FileTags ..." (golint)
    • Line 51: warning: comment on exported method Storage.FileTagCountByFileId should be of the form "FileTagCountByFileId ..." (golint)
    • Line 65: warning: comment on exported method Storage.FileTagCountByTagId should be of the form "FileTagCountByTagId ..." (golint)
    • Line 79: warning: comment on exported method Storage.FileTagsByTagId should be of the form "FileTagsByTagId ..." (golint)
    • Line 97: warning: comment on exported method Storage.FileTagCountByValueId should be of the form "FileTagCountByValueId ..." (golint)
    • Line 102: warning: comment on exported method Storage.FileTagsByValueId should be of the form "FileTagsByValueId ..." (golint)
    • Line 107: warning: comment on exported method Storage.FileTagsByFileId should be of the form "FileTagsByFileId ..." (golint)
    • Line 125: warning: comment on exported method Storage.AddFileTag should be of the form "AddFileTag ..." (golint)
    • Line 130: warning: comment on exported method Storage.DeleteFileTag should be of the form "DeleteFileTag ..." (golint)
    • Line 151: warning: comment on exported method Storage.DeleteFileTagsByFileId should be of the form "DeleteFileTagsByFileId ..." (golint)
    • Line 164: warning: comment on exported method Storage.DeleteFileTagsByTagId should be of the form "DeleteFileTagsByTagId ..." (golint)
    • Line 182: warning: comment on exported method Storage.DeleteFileTagsByValueId should be of the form "DeleteFileTagsByValueId ..." (golint)
    • Line 200: warning: comment on exported method Storage.CopyFileTags should be of the form "CopyFileTags ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/cli/tags.go
    • Line 31: warning: exported var TagsCommand should have comment or be unexported (golint)
    • Line 60: warning: error should be the last type when returning multiple items (golint)
    • Line 131: warning: error should be the last type when returning multiple items (golint)
    • Line 229: warning: error should be the last type when returning multiple items (golint)
    • TMSU/src/github.com/oniony/TMSU/common/path/tree.go
    • Line 24: warning: exported type Tree should have comment or be unexported (golint)
    • Line 28: warning: exported function NewTree should have comment or be unexported (golint)
    • Line 32: warning: comment on exported method Tree.Add should be of the form "Add ..." (golint)
    • Line 62: warning: comment on exported method Tree.Paths should be of the form "Paths ..." (golint)
    • Line 71: warning: comment on exported method Tree.TopLevel should be of the form "TopLevel ..." (golint)
    • Line 79: warning: comment on exported method Tree.Leaves should be of the form "Leaves ..." (golint)
    • Line 87: warning: comment on exported method Tree.Files should be of the form "Files ..." (golint)
    • Line 95: warning: comment on exported method Tree.Directories should be of the form "Directories ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/database/implication.go
    • Line 23: warning: comment on exported function Implications should be of the form "Implications ..." (golint)
    • Line 51: warning: comment on exported function ImplicationsFor should be of the form "ImplicationsFor ..." (golint)
    • Line 95: warning: exported function ImplyingImplications should have comment or be unexported (golint)
    • Line 137: warning: comment on exported function AddImplication should be of the form "AddImplication ..." (golint)
    • Line 151: warning: comment on exported function DeleteImplication should be of the form "DeleteImplication ..." (golint)
    • Line 179: warning: comment on exported function DeleteImplicationsByTagId should be of the form "DeleteImplicationsByTagId ..." (golint)
    • Line 193: warning: comment on exported function DeleteImplicationsByValueId should be of the form "DeleteImplicationsByValueId ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/entities/filetag.go
    • Line 18: warning: exported type FileTag should have comment or be unexported (golint)
    • Line 26: warning: exported method FileTag.ToTagIdValueIdPair should have comment or be unexported (golint)
    • Line 30: warning: exported type FileTags should have comment or be unexported (golint)
    • Line 32: warning: exported method FileTags.ToTagIdValueIdPairs should have comment or be unexported (golint)
    • Line 42: warning: exported method FileTags.Any should have comment or be unexported (golint)
    • Line 52: warning: exported method FileTags.Where should have comment or be unexported (golint)
    • Line 64: warning: exported method FileTags.Single should have comment or be unexported (golint)
    • Line 73: warning: exported method FileTags.FileIds should have comment or be unexported (golint)
    • Line 82: warning: exported method FileTags.TagIds should have comment or be unexported (golint)
    • Line 91: warning: exported method FileTags.ValueIds should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/entities/setting.go
    • Line 18: warning: exported type Setting should have comment or be unexported (golint)
    • Line 23: warning: exported type Settings should have comment or be unexported (golint)
    • Line 37: warning: exported method Settings.AutoCreateTags should have comment or be unexported (golint)
    • Line 41: warning: exported method Settings.AutoCreateValues should have comment or be unexported (golint)
    • Line 45: warning: exported method Settings.FileFingerprintAlgorithm should have comment or be unexported (golint)
    • Line 49: warning: exported method Settings.DirectoryFingerprintAlgorithm should have comment or be unexported (golint)
    • Line 53: warning: exported method Settings.SymlinkFingerprintAlgorithm should have comment or be unexported (golint)
    • Line 57: warning: exported method Settings.ReportDuplicates should have comment or be unexported (golint)
    • Line 61: warning: exported method Settings.ContainsName should have comment or be unexported (golint)
    • Line 71: warning: exported method Settings.Value should have comment or be unexported (golint)
    • Line 81: warning: exported method Settings.BoolValue should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/database/value.go
    • Line 24: warning: comment on exported function ValueCount should be of the form "ValueCount ..." (golint)
    • Line 39: warning: comment on exported function Values should be of the form "Values ..." (golint)
    • Line 55: warning: comment on exported function Value should be of the form "Value ..." (golint)
    • Line 71: warning: comment on exported function ValuesByIds should be of the form "ValuesByIds ..." (golint)
    • Line 103: warning: comment on exported function UnusedValues should be of the form "UnusedValues ..." (golint)
    • Line 120: warning: comment on exported function ValueByName should be of the form "ValueByName ..." (golint)
    • Line 138: warning: comment on exported function ValuesByNames should be of the form "ValuesByNames ..." (golint)
    • Line 177: warning: comment on exported function ValuesByTagId should be of the form "ValuesByTagId ..." (golint)
    • Line 196: warning: comment on exported function InsertValue should be of the form "InsertValue ..." (golint)
    • Line 223: warning: comment on exported function RenameValue should be of the form "RenameValue ..." (golint)
    • Line 249: warning: comment on exported function DeleteValue should be of the form "DeleteValue ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/entities/implication.go
    • Line 18: warning: exported type Implication should have comment or be unexported (golint)
    • Line 25: warning: exported method Implication.ImplyingTagValuePair should have comment or be unexported (golint)
    • Line 29: warning: exported method Implication.ImpliedTagValuePair should have comment or be unexported (golint)
    • Line 33: warning: exported type Implications should have comment or be unexported (golint)
    • Line 35: warning: exported method Implications.Contains should have comment or be unexported (golint)
    • Line 46: warning: exported method Implications.Any should have comment or be unexported (golint)
    • Line 56: warning: exported method Implications.Where should have comment or be unexported (golint)
    • Line 68: warning: exported method Implications.Implies should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/database/errors.go
    • Line 23: warning: exported type DatabaseNotFoundError should have comment or be unexported (golint)
    • Line 31: warning: exported type DatabaseAccessError should have comment or be unexported (golint)
    • Line 40: warning: exported type DatabaseTransactionError should have comment or be unexported (golint)
    • Line 49: warning: exported type DatabaseQueryError should have comment or be unexported (golint)
    • Line 59: warning: exported type NoSuchFileError should have comment or be unexported (golint)
    • Line 67: warning: exported type NoSuchValueError should have comment or be unexported (golint)
    • Line 75: warning: exported type NoSuchQueryError should have comment or be unexported (golint)
    • Line 83: warning: exported type NoSuchFileTagError should have comment or be unexported (golint)
    • Line 93: warning: exported type NoSuchImplicationError should have comment or be unexported (golint)
    • Line 102: warning: exported type NoSuchSettingError should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/database/sqlbuilder.go
    • Line 23: warning: exported type SqlBuilder should have comment or be unexported (golint)
    • Line 30: warning: exported function NewBuilder should have comment or be unexported (golint)
    • Line 35: warning: exported method SqlBuilder.Sql should have comment or be unexported (golint)
    • Line 39: warning: exported method SqlBuilder.Params should have comment or be unexported (golint)
    • Line 43: warning: exported method SqlBuilder.AppendSql should have comment or be unexported (golint)
    • Line 60: warning: exported method SqlBuilder.AppendParam should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/cli/option.go
    • Line 23: warning: exported type Option should have comment or be unexported (golint)
    • Line 31: warning: exported type Options should have comment or be unexported (golint)
    • Line 33: warning: exported method Options.HasOption should have comment or be unexported (golint)
    • Line 46: warning: exported method Options.Count should have comment or be unexported (golint)
    • Line 58: warning: exported method Options.Get should have comment or be unexported (golint)
    • Line 68: warning: exported type OptionParser should have comment or be unexported (golint)
    • Line 73: warning: exported function NewOptionParser should have comment or be unexported (golint)
    • Line 78: warning: exported method OptionParser.Parse should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/cli/status.go
    • Line 32: warning: exported var StatusCommand should have comment or be unexported (golint)
    • Line 56: warning: exported type Status should have comment or be unexported (golint)
    • Line 59: warning: exported const UNTAGGED should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: exported type StatusReport should have comment or be unexported (golint)
    • Line 69: warning: exported method StatusReport.AddRow should have comment or be unexported (golint)
    • Line 73: warning: exported method StatusReport.ContainsRow should have comment or be unexported (golint)
    • Line 83: warning: exported type Row should have comment or be unexported (golint)
    • Line 88: warning: exported function NewReport should have comment or be unexported (golint)
    • Line 94: warning: error should be the last type when returning multiple items (golint)
    • TMSU/src/github.com/oniony/TMSU/query/scanner.go
    • Line 27: warning: exported type Token should have comment or be unexported (golint)
    • Line 30: warning: exported function Type should have comment or be unexported (golint)
    • Line 55: warning: exported type EndToken should have comment or be unexported (golint)
    • Line 58: warning: exported type OpenParenToken should have comment or be unexported (golint)
    • Line 61: warning: exported type CloseParenToken should have comment or be unexported (golint)
    • Line 64: warning: exported type SymbolToken should have comment or be unexported (golint)
    • Line 68: warning: exported type NotOperatorToken should have comment or be unexported (golint)
    • Line 71: warning: exported type AndOperatorToken should have comment or be unexported (golint)
    • Line 74: warning: exported type OrOperatorToken should have comment or be unexported (golint)
    • Line 77: warning: exported type ComparisonOperatorToken should have comment or be unexported (golint)
    • Line 81: warning: exported type Scanner should have comment or be unexported (golint)
    • Line 86: warning: exported function NewScanner should have comment or be unexported (golint)
    • Line 90: warning: exported method Scanner.LookAhead should have comment or be unexported (golint)
    • Line 102: warning: exported method Scanner.Next should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/setting.go
    • Line 32: warning: comment on exported method Storage.Settings should be of the form "Settings ..." (golint)
    • Line 51: warning: exported method Storage.Setting should have comment or be unexported (golint)
    • Line 64: warning: exported method Storage.UpdateSetting should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/cli/tag.go
    • Line 33: warning: exported var TagCommand should have comment or be unexported (golint)
    • Line 73: warning: error should be the last type when returning multiple items (golint)
    • Line 151: warning: error should be the last type when returning multiple items (golint)
    • Line 191: warning: error should be the last type when returning multiple items (golint)
    • Line 222: warning: error should be the last type when returning multiple items (golint)
    • Line 277: warning: error should be the last type when returning multiple items (golint)
    • Line 459: warning: error should be the last type when returning multiple items (golint)
    • TMSU/src/github.com/oniony/TMSU/vfs/fusevfs.go
    • Line 90: warning: exported type FuseVfs should have comment or be unexported (golint)
    • Line 96: warning: exported function MountVfs should have comment or be unexported (golint)
    • Line 120: warning: exported method FuseVfs.Unmount should have comment or be unexported (golint)
    • Line 124: warning: exported method FuseVfs.Serve should have comment or be unexported (golint)
    • Line 128: warning: exported method FuseVfs.SetDebug should have comment or be unexported (golint)
    • Line 132: warning: exported method FuseVfs.Access should have comment or be unexported (golint)
    • Line 139: warning: exported method FuseVfs.Chmod should have comment or be unexported (golint)
    • Line 146: warning: exported method FuseVfs.Chown should have comment or be unexported (golint)
    • Line 153: warning: exported method FuseVfs.Create should have comment or be unexported (golint)
    • Line 160: warning: exported method FuseVfs.GetAttr should have comment or be unexported (golint)
    • Line 187: warning: exported method FuseVfs.GetXAttr should have comment or be unexported (golint)
    • Line 194: warning: exported method FuseVfs.Link should have comment or be unexported (golint)
    • Line 201: warning: exported method FuseVfs.ListXAttr should have comment or be unexported (golint)
    • Line 208: warning: exported method FuseVfs.Mkdir should have comment or be unexported (golint)
    • Line 244: warning: exported method FuseVfs.Mknod should have comment or be unexported (golint)
    • Line 251: warning: exported method FuseVfs.OnMount should have comment or be unexported (golint)
    • Line 256: warning: exported method FuseVfs.OnUnmount should have comment or be unexported (golint)
    • Line 261: warning: exported method FuseVfs.Open should have comment or be unexported (golint)
    • Line 275: warning: exported method FuseVfs.OpenDir should have comment or be unexported (golint)
    • Line 306: warning: exported method FuseVfs.Readlink should have comment or be unexported (golint)
    • Line 329: warning: exported method FuseVfs.RemoveXAttr should have comment or be unexported (golint)
    • Line 336: warning: exported method FuseVfs.Rename should have comment or be unexported (golint)
    • Line 379: warning: exported method FuseVfs.Rmdir should have comment or be unexported (golint)
    • Line 446: warning: exported method FuseVfs.SetXAttr should have comment or be unexported (golint)
    • Line 453: warning: exported method FuseVfs.StatFs should have comment or be unexported (golint)
    • Line 464: warning: exported method FuseVfs.Symlink should have comment or be unexported (golint)
    • Line 471: warning: exported method FuseVfs.Truncate should have comment or be unexported (golint)
    • Line 478: warning: exported method FuseVfs.Unlink should have comment or be unexported (golint)
    • Line 549: warning: exported method FuseVfs.Utimens should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/cli/delete.go
    • Line 23: warning: exported var DeleteCommand should have comment or be unexported (golint)
    • Line 37: warning: error should be the last type when returning multiple items (golint)
    • Line 61: warning: error should be the last type when returning multiple items (golint)
    • Line 85: warning: error should be the last type when returning multiple items (golint)
    • TMSU/src/github.com/oniony/TMSU/query/query.go
    • Line 22: warning: exported function Parse should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function HasAll should be of the form "HasAll ..." (golint)
    • Line 44: warning: comment on exported function TagNames should be of the form "TagNames ..." (golint)
    • Line 50: warning: comment on exported function ExactValueNames should be of the form "ExactValueNames ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/storage.go
    • Line 25: warning: exported type Storage should have comment or be unexported (golint)
    • Line 31: warning: exported function CreateAt should have comment or be unexported (golint)
    • Line 35: warning: exported function OpenAt should have comment or be unexported (golint)
    • Line 51: warning: exported method Storage.Begin should have comment or be unexported (golint)
    • Line 60: warning: exported method Storage.Close should have comment or be unexported (golint)
    • Line 75: warning: exported type Tx should have comment or be unexported (golint)
    • Line 79: warning: exported method Tx.Commit should have comment or be unexported (golint)
    • Line 83: warning: exported method Tx.Rollback should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/cli/merge.go
    • Line 24: warning: exported var MergeCommand should have comment or be unexported (golint)
    • Line 37: warning: error should be the last type when returning multiple items (golint)
    • Line 68: warning: error should be the last type when returning multiple items (golint)
    • Line 118: warning: error should be the last type when returning multiple items (golint)
    • TMSU/src/github.com/oniony/TMSU/common/log/log.go
    • Line 25: warning: exported var Verbosity should have comment or be unexported (golint)
    • Line 27: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 32: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 37: warning: exported function Warn should have comment or be unexported (golint)
    • Line 41: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 45: warning: exported function Info should have comment or be unexported (golint)
    • Line 53: warning: exported function Infof should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/entities/tag.go
    • Line 25: warning: exported type TagId should have comment or be unexported (golint)
    • Line 27: warning: exported type TagIds should have comment or be unexported (golint)
    • Line 41: warning: exported method TagIds.Uniq should have comment or be unexported (golint)
    • Line 60: warning: exported type Tag should have comment or be unexported (golint)
    • Line 65: warning: exported type Tags should have comment or be unexported (golint)
    • Line 79: warning: exported method Tags.Contains should have comment or be unexported (golint)
    • Line 89: warning: exported method Tags.ContainsCasedName should have comment or be unexported (golint)
    • Line 108: warning: exported method Tags.Any should have comment or be unexported (golint)
    • Line 118: warning: exported type TagFileCount should have comment or be unexported (golint)
    • Line 124: warning: exported function ValidateTagName should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/database/filetag.go
    • Line 23: warning: comment on exported function FileTagExists should be of the form "FileTagExists ..." (golint)
    • Line 40: warning: comment on exported function FileTagCount should be of the form "FileTagCount ..." (golint)
    • Line 57: warning: comment on exported function FileTags should be of the form "FileTags ..." (golint)
    • Line 72: warning: comment on exported function FileTagCountByFileId should be of the form "FileTagCountByFileId ..." (golint)
    • Line 90: warning: comment on exported function FileTagCountByTagId should be of the form "FileTagCountByTagId ..." (golint)
    • Line 108: warning: comment on exported function FileTagsByTagId should be of the form "FileTagsByTagId ..." (golint)
    • Line 124: warning: comment on exported function FileTagCountByValueId should be of the form "FileTagCountByValueId ..." (golint)
    • Line 142: warning: comment on exported function FileTagsByValueId should be of the form "FileTagsByValueId ..." (golint)
    • Line 158: warning: comment on exported function FileTagsByFileId should be of the form "FileTagsByFileId ..." (golint)
    • Line 174: warning: comment on exported function AddFileTag should be of the form "AddFileTag ..." (golint)
    • Line 188: warning: comment on exported function DeleteFileTag should be of the form "DeleteFileTag ..." (golint)
    • Line 213: warning: comment on exported function DeleteFileTagsByFileId should be of the form "DeleteFileTagsByFileId ..." (golint)
    • Line 227: warning: comment on exported function DeleteFileTagsByTagId should be of the form "DeleteFileTagsByTagId ..." (golint)
    • Line 241: warning: comment on exported function DeleteFileTagsByValueId should be of the form "DeleteFileTagsByValueId ..." (golint)
    • Line 255: warning: comment on exported function CopyFileTags should be of the form "CopyFileTags ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/file.go
    • Line 29: warning: comment on exported method Storage.FileCount should be of the form "FileCount ..." (golint)
    • Line 34: warning: comment on exported method Storage.Files should be of the form "Files ..." (golint)
    • Line 42: warning: comment on exported method Storage.File should be of the form "File ..." (golint)
    • Line 50: warning: comment on exported method Storage.FileByPath should be of the form "FileByPath ..." (golint)
    • Line 60: warning: comment on exported method Storage.FilesByDirectory should be of the form "FilesByDirectory ..." (golint)
    • Line 71: warning: comment on exported method Storage.FilesByDirectories should be of the form "FilesByDirectories ..." (golint)
    • Line 92: warning: comment on exported method Storage.FileCountByFingerprint should be of the form "FileCountByFingerprint ..." (golint)
    • Line 97: warning: comment on exported method Storage.FilesByFingerprint should be of the form "FilesByFingerprint ..." (golint)
    • Line 104: warning: comment on exported method Storage.UntaggedFiles should be of the form "UntaggedFiles ..." (golint)
    • Line 111: warning: comment on exported method Storage.FileCountForQuery should be of the form "FileCountForQuery ..." (golint)
    • Line 120: warning: comment on exported method Storage.FilesForQuery should be of the form "FilesForQuery ..." (golint)
    • Line 131: warning: comment on exported method Storage.DuplicateFiles should be of the form "DuplicateFiles ..." (golint)
    • Line 142: warning: comment on exported method Storage.AddFile should be of the form "AddFile ..." (golint)
    • Line 151: warning: comment on exported method Storage.UpdateFile should be of the form "UpdateFile ..." (golint)
    • Line 160: warning: comment on exported method Storage.DeleteFile should be of the form "DeleteFile ..." (golint)
    • Line 165: warning: comment on exported method Storage.DeleteFileIfUntagged should be of the form "DeleteFileIfUntagged ..." (golint)
    • Line 180: warning: comment on exported method Storage.DeleteUntaggedFiles should be of the form "DeleteUntaggedFiles ..." (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/database/database.go
    • Line 26: warning: exported type Database should have comment or be unexported (golint)
    • Line 30: warning: exported function CreateAt should have comment or be unexported (golint)
    • Line 55: warning: exported function OpenAt should have comment or be unexported (golint)
    • Line 89: warning: exported method Database.Close should have comment or be unexported (golint)
    • Line 93: warning: exported method Database.Begin should have comment or be unexported (golint)
    • Line 102: warning: exported type Tx should have comment or be unexported (golint)
    • Line 106: warning: exported method Tx.Exec should have comment or be unexported (golint)
    • Line 113: warning: exported method Tx.Query should have comment or be unexported (golint)
    • Line 120: warning: exported method Tx.Commit should have comment or be unexported (golint)
    • Line 126: warning: exported method Tx.Rollback should have comment or be unexported (golint)
    • TMSU/src/github.com/oniony/TMSU/storage/database/tag.go
    • Line 24: warning: comment on exported function TagCount should be of the form "TagCount ..." (golint)
    • Line 39: warning: comment on exported function Tags should be of the form "Tags ..." (golint)
    • Line 55: warning: comment on exported function Tag should be of the form "Tag ..." (golint)
    • Line 71: warning: comment on exported function TagsByIds should be of the form "TagsByIds ..." (golint)
    • Line 99: warning: comment on exported function TagByName should be of the form "TagByName ..." (golint)
    • Line 117: warning: comment on exported function TagsByNames should be of the form "TagsByNames ..." (golint)
    • Line 151: warning: comment on exported function InsertTag should be of the form "InsertTag ..." (golint)
    • Line 178: warning: comment on exported function RenameTag should be of the form "RenameTag ..." (golint)
    • Line 201: warning: comment on exported function DeleteTag should be of the form "DeleteTag ..." (golint)
    • Line 223: warning: comment on exported function TagUsage should be of the form "TagUsage ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!