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.
-
etcdfs/config/config.go
- Line 14: warning: exported var MountPoint should have comment or be unexported (golint)
- Line 21: warning: comment on exported var CertFile should be of the form "CertFile ..." (golint)
- Line 26: warning: comment on exported var Version should be of the form "Version ..." (golint)
- Line 77: warning: exported function Execute should have comment or be unexported (golint)
-
etcdfs/fs/file.go
- Line 30: 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 93: warning: comment on exported method Node.Fsync should be of the form "Fsync ..." (golint)
- Line 110: warning: comment on exported method Node.Setattr should be of the form "Setattr ..." (golint)
-
etcdfs/fs/folder.go
- Line 36: warning: comment on exported type Node should be of the form "Node ..." (with optional leading article) (golint)
- Line 55: warning: comment on exported method Node.Readdir should be of the form "Readdir ..." (golint)
- Line 150: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
-
etcdfs/fs/server.go
- Line 16: warning: exported type Server should have comment or be unexported (golint)
- Line 24: warning: exported function MustMount should have comment or be unexported (golint)
- Line 45: warning: exported method Server.ListenForUnmount should have comment or be unexported (golint)
-
etcdfs/etcd/client.go
- Line 16: warning: exported type Client should have comment or be unexported (golint)
- Line 20: warning: exported function MustNew should have comment or be unexported (golint)
- Line 55: warning: comment on exported method Client.ListKeys should be of the form "ListKeys ..." (golint)
- Line 71: warning: exported method Client.GetValue should have comment or be unexported (golint)
- Line 85: warning: exported method Client.PutValue should have comment or be unexported (golint)
- Line 91: warning: exported method Client.DeleteKey should have comment or be unexported (golint)
- Line 97: warning: exported method Client.Close 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!