Preparing report...

Report for github.com/smira/aptly

A+    Excellent!    Found 33 issues across 181 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


gocyclo81%

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.

    • aptly/deb/remote.go
    • Line 425: warning: cyclomatic complexity 33 of function (*RemoteRepo).DownloadPackageIndexes() is high (> 15) (gocyclo)
    • Line 267: warning: cyclomatic complexity 28 of function (*RemoteRepo).Fetch() is high (> 15) (gocyclo)
    • aptly/deb/import.go
    • Line 67: warning: cyclomatic complexity 27 of function ImportPackageFiles() is high (> 15) (gocyclo)
    • Line 15: warning: cyclomatic complexity 17 of function CollectPackageFiles() is high (> 15) (gocyclo)
    • aptly/deb/package.go
    • Line 245: warning: cyclomatic complexity 27 of function (*Package).GetField() is high (> 15) (gocyclo)
    • Line 509: warning: cyclomatic complexity 25 of function (*Package).Stanza() is high (> 15) (gocyclo)
    • aptly/s3/server_test.go
    • Line 364: warning: cyclomatic complexity 18 of function (bucketResource).get() is high (> 15) (gocyclo)
    • Line 526: warning: cyclomatic complexity 16 of function validBucketName() is high (> 15) (gocyclo)
    • aptly/deb/version.go
    • Line 240: warning: cyclomatic complexity 19 of function ParseDependency() is high (> 15) (gocyclo)
    • Line 49: warning: cyclomatic complexity 16 of function compareLexicographic() is high (> 15) (gocyclo)
    • aptly/deb/deb.go
    • Line 143: warning: cyclomatic complexity 19 of function GetContentsFromDeb() is high (> 15) (gocyclo)
    • Line 32: warning: cyclomatic complexity 18 of function GetControlFileFromDeb() is high (> 15) (gocyclo)
    • aptly/deb/reflist.go
    • Line 185: warning: cyclomatic complexity 21 of function (*PackageRefList).Diff() is high (> 15) (gocyclo)
    • Line 276: warning: cyclomatic complexity 16 of function (*PackageRefList).Merge() is high (> 15) (gocyclo)
    • aptly/api/publish.go
    • Line 88: warning: cyclomatic complexity 21 of function apiPublishRepoOrSnapshot() is high (> 15) (gocyclo)
    • Line 232: warning: cyclomatic complexity 20 of function apiPublishUpdateSwitch() is high (> 15) (gocyclo)
    • aptly/deb/publish.go
    • Line 489: warning: cyclomatic complexity 69 of function (*PublishedRepo).Publish() is high (> 15) (gocyclo)
    • Line 152: warning: cyclomatic complexity 32 of function NewPublishedRepo() is high (> 15) (gocyclo)
    • Line 1169: warning: cyclomatic complexity 17 of function (*PublishedRepoCollection).Remove() is high (> 15) (gocyclo)
    • Line 1086: warning: cyclomatic complexity 17 of function (*PublishedRepoCollection).CleanupPrefixComponentFiles() is high (> 15) (gocyclo)
    • aptly/files/package_pool.go
    • Line 234: warning: cyclomatic complexity 29 of function (*PackagePool).Import() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 16 of function (*PackagePool).Verify() is high (> 15) (gocyclo)
    • aptly/deb/list.go
    • Line 488: warning: cyclomatic complexity 20 of function (*PackageList).FilterWithProgress() is high (> 15) (gocyclo)
    • Line 299: warning: cyclomatic complexity 19 of function (*PackageList).VerifyDependencies() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!