Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
parcello/fake/FileSystem.go
- Line 1: warning: package comment should be of the form "Package fake ..." (golint)
- Line 13: warning: exported type FileSystem should have comment or be unexported (golint)
- Line 47: warning: exported method FileSystem.Open should have comment or be unexported (golint)
- Line 60: warning: exported method FileSystem.OpenCallCount should have comment or be unexported (golint)
- Line 66: warning: exported method FileSystem.OpenArgsForCall should have comment or be unexported (golint)
- Line 72: warning: exported method FileSystem.OpenReturns should have comment or be unexported (golint)
- Line 80: warning: exported method FileSystem.Walk should have comment or be unexported (golint)
- Line 94: warning: exported method FileSystem.WalkCallCount should have comment or be unexported (golint)
- Line 100: warning: exported method FileSystem.WalkArgsForCall should have comment or be unexported (golint)
- Line 106: warning: exported method FileSystem.WalkReturns should have comment or be unexported (golint)
- Line 113: warning: exported method FileSystem.OpenFile should have comment or be unexported (golint)
- Line 128: warning: exported method FileSystem.OpenFileCallCount should have comment or be unexported (golint)
- Line 134: warning: exported method FileSystem.OpenFileArgsForCall should have comment or be unexported (golint)
- Line 140: warning: exported method FileSystem.OpenFileReturns should have comment or be unexported (golint)
- Line 148: warning: exported method FileSystem.Invocations should have comment or be unexported (golint)
-
parcello/fake/FileSystemManager.go
- Line 1: warning: package comment should be of the form "Package fake ..." (golint)
- Line 13: warning: exported type FileSystemManager should have comment or be unexported (golint)
- Line 64: warning: exported method FileSystemManager.Open should have comment or be unexported (golint)
- Line 77: warning: exported method FileSystemManager.OpenCallCount should have comment or be unexported (golint)
- Line 83: warning: exported method FileSystemManager.OpenArgsForCall should have comment or be unexported (golint)
- Line 89: warning: exported method FileSystemManager.OpenReturns should have comment or be unexported (golint)
- Line 97: warning: exported method FileSystemManager.Walk should have comment or be unexported (golint)
- Line 111: warning: exported method FileSystemManager.WalkCallCount should have comment or be unexported (golint)
- Line 117: warning: exported method FileSystemManager.WalkArgsForCall should have comment or be unexported (golint)
- Line 123: warning: exported method FileSystemManager.WalkReturns should have comment or be unexported (golint)
- Line 130: warning: exported method FileSystemManager.OpenFile should have comment or be unexported (golint)
- Line 145: warning: exported method FileSystemManager.OpenFileCallCount should have comment or be unexported (golint)
- Line 151: warning: exported method FileSystemManager.OpenFileArgsForCall should have comment or be unexported (golint)
- Line 157: warning: exported method FileSystemManager.OpenFileReturns should have comment or be unexported (golint)
- Line 165: warning: exported method FileSystemManager.Dir should have comment or be unexported (golint)
- Line 178: warning: exported method FileSystemManager.DirCallCount should have comment or be unexported (golint)
- Line 184: warning: exported method FileSystemManager.DirArgsForCall should have comment or be unexported (golint)
- Line 190: warning: exported method FileSystemManager.DirReturns should have comment or be unexported (golint)
- Line 198: warning: exported method FileSystemManager.Add should have comment or be unexported (golint)
- Line 211: warning: exported method FileSystemManager.AddCallCount should have comment or be unexported (golint)
- Line 217: warning: exported method FileSystemManager.AddArgsForCall should have comment or be unexported (golint)
- Line 223: warning: exported method FileSystemManager.AddReturns should have comment or be unexported (golint)
- Line 230: warning: exported method FileSystemManager.Invocations should have comment or be unexported (golint)
-
parcello/fake/Composer.go
- Line 1: warning: package comment should be of the form "Package fake ..." (golint)
- Line 10: warning: exported type Composer should have comment or be unexported (golint)
- Line 23: warning: exported method Composer.Compose should have comment or be unexported (golint)
- Line 36: warning: exported method Composer.ComposeCallCount should have comment or be unexported (golint)
- Line 42: warning: exported method Composer.ComposeArgsForCall should have comment or be unexported (golint)
- Line 48: warning: exported method Composer.ComposeReturns should have comment or be unexported (golint)
- Line 55: warning: exported method Composer.Invocations should have comment or be unexported (golint)
-
parcello/fake/Compressor.go
- Line 1: warning: package comment should be of the form "Package fake ..." (golint)
- Line 10: warning: exported type Compressor should have comment or be unexported (golint)
- Line 24: warning: exported method Compressor.Compress should have comment or be unexported (golint)
- Line 37: warning: exported method Compressor.CompressCallCount should have comment or be unexported (golint)
- Line 43: warning: exported method Compressor.CompressArgsForCall should have comment or be unexported (golint)
- Line 49: warning: exported method Compressor.CompressReturns should have comment or be unexported (golint)
- Line 57: warning: exported method Compressor.Invocations should have comment or be unexported (golint)
-
parcello/fake/File.go
- Line 1: warning: package comment should be of the form "Package fake ..." (golint)
- Line 11: warning: exported type File should have comment or be unexported (golint)
- Line 76: warning: exported method File.Close should have comment or be unexported (golint)
- Line 87: warning: exported method File.CloseCallCount should have comment or be unexported (golint)
- Line 93: warning: exported method File.CloseReturns should have comment or be unexported (golint)
- Line 118: warning: exported method File.ReadCallCount should have comment or be unexported (golint)
- Line 124: warning: exported method File.ReadArgsForCall should have comment or be unexported (golint)
- Line 130: warning: exported method File.ReadReturns should have comment or be unexported (golint)
- Line 138: warning: exported method File.Seek should have comment or be unexported (golint)
- Line 152: warning: exported method File.SeekCallCount should have comment or be unexported (golint)
- Line 158: warning: exported method File.SeekArgsForCall should have comment or be unexported (golint)
- Line 164: warning: exported method File.SeekReturns should have comment or be unexported (golint)
- Line 172: warning: exported method File.Readdir should have comment or be unexported (golint)
- Line 185: warning: exported method File.ReaddirCallCount should have comment or be unexported (golint)
- Line 191: warning: exported method File.ReaddirArgsForCall should have comment or be unexported (golint)
- Line 197: warning: exported method File.ReaddirReturns should have comment or be unexported (golint)
- Line 205: warning: exported method File.Stat should have comment or be unexported (golint)
- Line 216: warning: exported method File.StatCallCount should have comment or be unexported (golint)
- Line 222: warning: exported method File.StatReturns should have comment or be unexported (golint)
- Line 248: warning: exported method File.WriteCallCount should have comment or be unexported (golint)
- Line 254: warning: exported method File.WriteArgsForCall should have comment or be unexported (golint)
- Line 260: warning: exported method File.WriteReturns should have comment or be unexported (golint)
- Line 268: warning: exported method File.ReadAt should have comment or be unexported (golint)
- Line 287: warning: exported method File.ReadAtCallCount should have comment or be unexported (golint)
- Line 293: warning: exported method File.ReadAtArgsForCall should have comment or be unexported (golint)
- Line 299: warning: exported method File.ReadAtReturns should have comment or be unexported (golint)
- Line 307: warning: exported method File.Invocations should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!