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.
Golint is a linter for Go source code.
-
go-s3fs/s3fs.go
- Line 19: warning: exported type S3FS should have comment or be unexported (golint)
- Line 24: warning: exported type Config should have comment or be unexported (golint)
- Line 35: warning: exported type FileInfo should have comment or be unexported (golint)
- Line 42: warning: exported type CopyInfo should have comment or be unexported (golint)
- Line 49: warning: exported const Directory should have comment (or a comment on this block) or be unexported (golint)
- Line 53: warning: exported function New should have comment or be unexported (golint)
- Line 86: warning: exported method S3FS.CreateBucket should have comment or be unexported (golint)
- Line 86: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 100: warning: exported method S3FS.DeleteBucket should have comment or be unexported (golint)
- Line 100: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 107: warning: exported method S3FS.List should have comment or be unexported (golint)
- Line 107: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 167: warning: exported method S3FS.MkDir should have comment or be unexported (golint)
- Line 167: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 181: warning: exported method S3FS.Get should have comment or be unexported (golint)
- Line 181: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 192: warning: exported method S3FS.Put should have comment or be unexported (golint)
- Line 192: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 206: warning: exported method S3FS.Delete should have comment or be unexported (golint)
- Line 206: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 209: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 214: warning: exported method S3FS.SingleDelete should have comment or be unexported (golint)
- Line 214: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 225: warning: exported method S3FS.BulkDelete should have comment or be unexported (golint)
- Line 225: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 262: warning: exported method S3FS.Copy should have comment or be unexported (golint)
- Line 262: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 265: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 270: warning: exported method S3FS.SingleCopy should have comment or be unexported (golint)
- Line 270: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 294: warning: exported method S3FS.BulkCopy should have comment or be unexported (golint)
- Line 294: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 347: warning: exported method S3FS.Move should have comment or be unexported (golint)
- Line 347: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 350: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 355: warning: exported method S3FS.SingleMove should have comment or be unexported (golint)
- Line 355: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 365: warning: exported method S3FS.BulkMove should have comment or be unexported (golint)
- Line 365: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 375: warning: exported method S3FS.Info should have comment or be unexported (golint)
- Line 375: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 383: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 398: warning: exported method S3FS.PathExists should have comment or be unexported (golint)
- Line 398: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 414: warning: exported method S3FS.ExactPathExists should have comment or be unexported (golint)
- Line 414: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (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!