Preparing report...

Report for github.com/argoproj/argo-cd

(v1.8.6)

A+    Excellent!    Found 44 issues across 324 files

Tweet

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!


gofmt93%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo91%

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.

    • util/db/certificate.go
    • Line 153: warning: cyclomatic complexity 39 of function (*db).CreateRepoCertificate() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 21 of function (*db).ListRepoCertificates() is high (> 15) (gocyclo)
    • Line 340: warning: cyclomatic complexity 21 of function (*db).RemoveRepoCertificates() is high (> 15) (gocyclo)
    • reposerver/repository/repository.go
    • Line 1025: warning: cyclomatic complexity 33 of function (*Service).GetAppDetails() is high (> 15) (gocyclo)
    • Line 499: warning: cyclomatic complexity 28 of function helmTemplate() is high (> 15) (gocyclo)
    • Line 627: warning: cyclomatic complexity 23 of function GenerateManifests() is high (> 15) (gocyclo)
    • Line 842: warning: cyclomatic complexity 21 of function findManifests() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 20 of function (*Service).runRepoOperation() is high (> 15) (gocyclo)
    • util/gpg/gpg.go
    • Line 656: warning: cyclomatic complexity 21 of function SyncKeyRingFromDirectory() is high (> 15) (gocyclo)
    • Line 556: warning: cyclomatic complexity 18 of function ParseGitCommitVerification() is high (> 15) (gocyclo)
    • Line 459: warning: cyclomatic complexity 16 of function GetInstalledPGPKeys() is high (> 15) (gocyclo)
    • util/helm/client.go
    • Line 96: warning: cyclomatic complexity 20 of function (*nativeHelmChart).ExtractChart() is high (> 15) (gocyclo)
    • util/webhook/webhook.go
    • Line 191: warning: cyclomatic complexity 17 of function (*ArgoCDWebhookHandler).HandleEvent() is high (> 15) (gocyclo)
    • Line 84: warning: cyclomatic complexity 16 of function affectedRevisionInfo() is high (> 15) (gocyclo)
    • cmd/argocd/commands/app.go
    • Line 501: warning: cyclomatic complexity 57 of function setAppSpecOptions() is high (> 15) (gocyclo)
    • Line 855: warning: cyclomatic complexity 29 of function NewApplicationUnsetCommand() is high (> 15) (gocyclo)
    • Line 1497: warning: cyclomatic complexity 27 of function NewApplicationSyncCommand() is high (> 15) (gocyclo)
    • Line 1816: warning: cyclomatic complexity 26 of function waitOnApplicationStatus() is high (> 15) (gocyclo)
    • Line 316: warning: cyclomatic complexity 22 of function printAppSummaryTable() is high (> 15) (gocyclo)
    • Line 1937: warning: cyclomatic complexity 18 of function setParameterOverrides() is high (> 15) (gocyclo)
    • Line 1087: warning: cyclomatic complexity 18 of function NewApplicationDiffCommand() is high (> 15) (gocyclo)
    • Line 103: warning: cyclomatic complexity 17 of function NewApplicationCreateCommand() is high (> 15) (gocyclo)
    • controller/state.go
    • Line 311: warning: cyclomatic complexity 50 of function (*appStateManager).CompareAppState() is high (> 15) (gocyclo)
    • controller/cache/info.go
    • Line 220: warning: cyclomatic complexity 32 of function populatePodInfo() is high (> 15) (gocyclo)
    • Line 86: warning: cyclomatic complexity 28 of function populateIngressInfo() is high (> 15) (gocyclo)
    • controller/appcontroller.go
    • Line 1263: warning: cyclomatic complexity 28 of function (*ApplicationController).autoSync() is high (> 15) (gocyclo)
    • Line 808: warning: cyclomatic complexity 25 of function (*ApplicationController).processRequestedAppOperation() is high (> 15) (gocyclo)
    • Line 994: warning: cyclomatic complexity 21 of function (*ApplicationController).processAppRefreshQueueItem() is high (> 15) (gocyclo)
    • Line 304: warning: cyclomatic complexity 20 of function (*ApplicationController).getResourceTree() is high (> 15) (gocyclo)
    • Line 692: warning: cyclomatic complexity 18 of function (*ApplicationController).finalizeApplicationDeletion() is high (> 15) (gocyclo)
    • Line 924: warning: cyclomatic complexity 17 of function (*ApplicationController).setOperationState() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 16 of function (*ApplicationController).handleObjectUpdated() is high (> 15) (gocyclo)
    • controller/sync.go
    • Line 37: warning: cyclomatic complexity 24 of function (*appStateManager).SyncAppState() is high (> 15) (gocyclo)
    • util/kube/kube.go
    • Line 13: warning: cyclomatic complexity 19 of function SetAppInstanceLabel() is high (> 15) (gocyclo)
    • server/server.go
    • Line 993: warning: cyclomatic complexity 17 of function bug21955WorkaroundInterceptor() is high (> 15) (gocyclo)
    • Line 384: warning: cyclomatic complexity 16 of function (*ArgoCDServer).watchSettings() is high (> 15) (gocyclo)
    • server/application/application.go
    • Line 1143: warning: cyclomatic complexity 24 of function (*Server).Sync() is high (> 15) (gocyclo)
    • Line 210: warning: cyclomatic complexity 21 of function (*Server).GetManifests() is high (> 15) (gocyclo)
    • Line 1046: warning: cyclomatic complexity 20 of function (*Server).PodLogs() is high (> 15) (gocyclo)
    • Line 640: warning: cyclomatic complexity 19 of function (*Server).Watch() is high (> 15) (gocyclo)
    • Line 708: warning: cyclomatic complexity 18 of function (*Server).validateAndNormalizeApp() is high (> 15) (gocyclo)
    • Line 1434: warning: cyclomatic complexity 16 of function (*Server).RunResourceAction() is high (> 15) (gocyclo)

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!