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-graphsplit/utils.go
- Line 37: warning: exported const UnixfsLinksPerLevel should have comment or be unexported (golint)
- Line 38: warning: exported const UnixfsChunkSize should have comment or be unexported (golint)
- Line 40: warning: exported type Finfo should have comment or be unexported (golint)
- Line 48: warning: exported function BuildIpldGraph should have comment or be unexported (golint)
- Line 294: warning: exported function BuildFileNode should have comment or be unexported (golint)
- Line 330: warning: exported function GenGraphName should have comment or be unexported (golint)
- Line 337: warning: exported function GetGraphCount should have comment or be unexported (golint)
- Line 357: warning: exported function GetFileListAsync should have comment or be unexported (golint)
- Line 403: warning: exported function GetFileList should have comment or be unexported (golint)
- Line 436: warning: comment on exported type PieceInfo should be of the form "PieceInfo ..." (with optional leading article) (golint)
- Line 444: warning: comment on exported type Manifest should be of the form "Manifest ..." (with optional leading article) (golint)
-
go-graphsplit/chunk.go
- Line 17: warning: exported type GraphBuildCallback should have comment or be unexported (golint)
- Line 104: warning: exported function CommPCallback should have comment or be unexported (golint)
- Line 108: warning: exported function CSVCallback should have comment or be unexported (golint)
- Line 111: warning: exported function ErrCallback should have comment or be unexported (golint)
- Line 115: warning: exported function Chunk should have comment or be unexported (golint)
-
go-graphsplit/commp.go
- Line 17: warning: exported type CommPRet should have comment or be unexported (golint)
- Line 22: warning: comment on exported function CalcCommP should be of the form "CalcCommP ..." (golint)
-
go-graphsplit/restore.go
- Line 26: warning: exported function Import should have comment or be unexported (golint)
- Line 55: warning: exported function NodeWriteTo should have comment or be unexported (golint)
- Line 91: warning: exported function ExistDir should have comment or be unexported (golint)
- Line 99: warning: exported function CarTo should have comment or be unexported (golint)
- Line 171: warning: exported function Merge 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!