Preparing report...

Report for github.com/ThreatFlux/dockerServerMangerGoMCP

(v0.0.0-20250408041657-e42495166823)

A+    Excellent!    Found 41 issues across 210 files

Tweet

gofmt99%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo80%

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.

    • internal/docker/compose/orchestrator/service.go
    • Line 616: warning: cyclomatic complexity 46 of function (*ServiceManager).createContainerConfig() is high (> 15) (gocyclo)
    • Line 1314: warning: cyclomatic complexity 28 of function (*ServiceManager).waitForHealthCheck() is high (> 15) (gocyclo)
    • Line 1072: warning: cyclomatic complexity 21 of function (*ServiceManager).parseVolumeSpec() is high (> 15) (gocyclo)
    • Line 208: warning: cyclomatic complexity 20 of function (*ServiceManager).RemoveServices() is high (> 15) (gocyclo)
    • Line 119: warning: cyclomatic complexity 18 of function (*ServiceManager).DeployServices() is high (> 15) (gocyclo)
    • Line 299: warning: cyclomatic complexity 18 of function (*ServiceManager).StartServices() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 17 of function (*ServiceManager).ScaleService() is high (> 15) (gocyclo)
    • internal/api/network_controller.go
    • Line 70: warning: cyclomatic complexity 21 of function (*NetworkController).ListNetworks() is high (> 15) (gocyclo)
    • Line 305: warning: cyclomatic complexity 17 of function (*NetworkController).DeleteNetwork() is high (> 15) (gocyclo)
    • internal/api/auth_controller.go
    • Line 537: warning: cyclomatic complexity 28 of function (*AuthController).UpdateUser() is high (> 15) (gocyclo)
    • Line 729: warning: cyclomatic complexity 20 of function (*AuthController).CreateUser() is high (> 15) (gocyclo)
    • Line 418: warning: cyclomatic complexity 17 of function (*AuthController).UpdateCurrentUser() is high (> 15) (gocyclo)
    • internal/utils/archiver/archiver.go
    • Line 236: warning: cyclomatic complexity 21 of function ArchiveFiles() is high (> 15) (gocyclo)
    • Line 132: warning: cyclomatic complexity 20 of function ArchiveFile() is high (> 15) (gocyclo)
    • Line 343: warning: cyclomatic complexity 20 of function ExtractArchive() is high (> 15) (gocyclo)
    • internal/models/docker_entities.go
    • Line 937: warning: cyclomatic complexity 27 of function FromDockerContainerJSON() is high (> 15) (gocyclo)
    • Line 736: warning: cyclomatic complexity 20 of function (*Network).ValidateNetworkAddressing() is high (> 15) (gocyclo)
    • internal/docker/container/lifecycle/create.go
    • Line 497: warning: cyclomatic complexity 43 of function (*Creator).validateOptions() is high (> 15) (gocyclo)
    • Line 913: warning: cyclomatic complexity 30 of function (*Creator).applySecurityDefaults() is high (> 15) (gocyclo)
    • Line 1119: warning: cyclomatic complexity 30 of function (*Creator).applyResourceLimits() is high (> 15) (gocyclo)
    • Line 326: warning: cyclomatic complexity 27 of function (*Creator).Create() is high (> 15) (gocyclo)
    • Line 1416: warning: cyclomatic complexity 27 of function (*Creator).convertToModel() is high (> 15) (gocyclo)
    • Line 1033: warning: cyclomatic complexity 25 of function (*Creator).applySecurityOpts() is high (> 15) (gocyclo)
    • Line 1336: warning: cyclomatic complexity 18 of function (*Creator).validatePortBindings() is high (> 15) (gocyclo)
    • Line 1278: warning: cyclomatic complexity 16 of function (*Creator).validateMountPoints() is high (> 15) (gocyclo)
    • internal/api/image/controller.go
    • Line 91: warning: cyclomatic complexity 19 of function (*Controller).List() is high (> 15) (gocyclo)
    • Line 318: warning: cyclomatic complexity 18 of function (*Controller).Pull() is high (> 15) (gocyclo)
    • internal/utils/validation.go
    • Line 624: warning: cyclomatic complexity 22 of function ValidateURL() is high (> 15) (gocyclo)
    • Line 1110: warning: cyclomatic complexity 20 of function ValidateSecurityOpts() is high (> 15) (gocyclo)
    • Line 890: warning: cyclomatic complexity 18 of function ValidatePassword() is high (> 15) (gocyclo)
    • internal/api/file_controller.go
    • Line 322: warning: cyclomatic complexity 29 of function (*FileController).UploadFile() is high (> 15) (gocyclo)
    • Line 1039: warning: cyclomatic complexity 19 of function (*FileController).ExtractArchive() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 19 of function (*FileController).DownloadFile() is high (> 15) (gocyclo)
    • Line 773: warning: cyclomatic complexity 18 of function (*FileController).TailFile() is high (> 15) (gocyclo)
    • pkg/client/client.go
    • Line 387: warning: cyclomatic complexity 39 of function (*APIClient).handleResponse() is high (> 15) (gocyclo)
    • Line 506: warning: cyclomatic complexity 22 of function (*APIClient).Do() is high (> 15) (gocyclo)
    • internal/docker/compose/converter/helpers.go
    • Line 494: warning: cyclomatic complexity 28 of function ConvertNetworkConfig() is high (> 15) (gocyclo)
    • Line 603: warning: cyclomatic complexity 18 of function ConvertDependsOn() is high (> 15) (gocyclo)
    • Line 47: warning: cyclomatic complexity 17 of function MapOrListToMap() 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!