Preparing report...

Report for github.com/arvryna/blazer

(v0.0.0-20220128091036-2ce2f365b8a1)

A    Great!    Found 7 issues across 11 files

Tweet

gofmt90%

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!


gocyclo100%

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!


golint36%

Golint is a linter for Go source code.

    • cmd/blazer.go
    • Line 11: warning: comment on exported const Version should be of the form "Version ..." (golint)
    • Line 14: warning: don't use underscores in Go names; const Optimized_Download_Unsupported should be OptimizedDownloadUnsupported (golint)
    • Line 14: warning: exported const Optimized_Download_Unsupported should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported function Start should have comment or be unexported (golint)
    • cmd/flags.go
    • Line 10: warning: exported type CLIFlags should have comment or be unexported (golint)
    • Line 19: warning: comment on exported const DefaultThreadCount should be of the form "DefaultThreadCount ..." (golint)
    • Line 22: warning: exported method CLIFlags.Parse should have comment or be unexported (golint)
    • internals/util/file_util.go
    • Line 17: warning: comment on exported function TempDirectory should be of the form "TempDirectory ..." (golint)
    • Line 22: warning: comment on exported function SegmentFilePath should be of the form "SegmentFilePath ..." (golint)
    • Line 31: warning: comment on exported function FileExists should be of the form "FileExists ..." (golint)
    • Line 37: warning: comment on exported function DeleteFile should be of the form "DeleteFile ..." (golint)
    • Line 45: warning: comment on exported function CreateDir should be of the form "CreateDir ..." (golint)
    • Line 54: warning: exported const MemUnit should have comment or be unexported (golint)
    • Line 70: warning: exported function FileIntegrityCheck should have comment or be unexported (golint)
    • Line 78: warning: exported function GenHash should have comment or be unexported (golint)
    • Line 84: warning: exported function MemoryFormatStrings should have comment or be unexported (golint)
    • Line 88: warning: exported function GetFormattedSize should have comment or be unexported (golint)
    • internals/chunk/chunks.go
    • Line 18: warning: comment on exported type Chunks should be of the form "Chunks ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported method Chunks.ComputeChunks should be of the form "ComputeChunks ..." (golint)
    • internals/network/concurrent_downloader.go
    • Line 22: warning: comment on exported function ConcurrentDownloader should be of the form "ConcurrentDownloader ..." (golint)
    • Line 60: warning: comment on exported function DownloadSegment should be of the form "DownloadSegment ..." (golint)
    • internals/network/http_client.go
    • Line 10: warning: comment on exported function IsValidURL should be of the form "IsValidURL ..." (golint)
    • Line 16: warning: comment on exported function BuildRequest should be of the form "BuildRequest ..." (golint)
    • Line 23: warning: comment on exported function HTTPClient should be of the form "HTTPClient ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!