Preparing report...

Report for github.com/mintoolkit/mint

(v0.0.0-20240305225319-5727bc0f3df5)

A+    Excellent!    Found 46 issues across 306 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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo84%

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.

    • pkg/docker/dockerimage/dockerimage.go
    • Line 518: warning: cyclomatic complexity 173 of function LoadPackage() is high (> 15) (gocyclo)
    • Line 1713: warning: cyclomatic complexity 101 of function inspectFile() is high (> 15) (gocyclo)
    • Line 1438: warning: cyclomatic complexity 49 of function layerFromStream() is high (> 15) (gocyclo)
    • pkg/util/fsutil/fsutil.go
    • Line 811: warning: cyclomatic complexity 31 of function copyFileObjectHandler() is high (> 15) (gocyclo)
    • Line 518: warning: cyclomatic complexity 28 of function CopyRegularFile() is high (> 15) (gocyclo)
    • Line 1432: warning: cyclomatic complexity 18 of function ArchiveDir() is high (> 15) (gocyclo)
    • Line 431: warning: cyclomatic complexity 18 of function cloneDirPath() is high (> 15) (gocyclo)
    • Line 717: warning: cyclomatic complexity 16 of function ReplaceFileData() is high (> 15) (gocyclo)
    • pkg/app/sensor/artifact/artifact.go
    • Line 1681: warning: cyclomatic complexity 191 of function (*store).saveArtifacts() is high (> 15) (gocyclo)
    • Line 1500: warning: cyclomatic complexity 44 of function (*store).saveCertsData() is high (> 15) (gocyclo)
    • Line 3313: warning: cyclomatic complexity 42 of function findSymlinks() is high (> 15) (gocyclo)
    • Line 1163: warning: cyclomatic complexity 34 of function (*store).saveSSHClient() is high (> 15) (gocyclo)
    • Line 1347: warning: cyclomatic complexity 34 of function (*store).saveOSLibsNetwork() is high (> 15) (gocyclo)
    • Line 797: warning: cyclomatic complexity 23 of function (*store).resolveLinks() is high (> 15) (gocyclo)
    • Line 696: warning: cyclomatic complexity 21 of function (*store).prepareArtifacts() is high (> 15) (gocyclo)
    • Line 2481: warning: cyclomatic complexity 17 of function (*store).detectAppStack() is high (> 15) (gocyclo)
    • Line 3175: warning: cyclomatic complexity 16 of function ngxEnsure() is high (> 15) (gocyclo)
    • pkg/monitor/ptrace/ptrace.go
    • Line 660: warning: cyclomatic complexity 43 of function (*App).collect() is high (> 15) (gocyclo)
    • Line 264: warning: cyclomatic complexity 25 of function (*App).processFileActivity() is high (> 15) (gocyclo)
    • pkg/app/master/command/build/image.go
    • Line 494: warning: cyclomatic complexity 27 of function UpdateBuildOptionsWithNewInstructions() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 26 of function buildOutputImage() is high (> 15) (gocyclo)
    • Line 572: warning: cyclomatic complexity 20 of function UpdateBuildOptionsWithOverrides() is high (> 15) (gocyclo)
    • pkg/app/master/compose/execution.go
    • Line 1246: warning: cyclomatic complexity 31 of function startContainer() is high (> 15) (gocyclo)
    • Line 183: warning: cyclomatic complexity 18 of function NewConfigInfo() is high (> 15) (gocyclo)
    • Line 438: warning: cyclomatic complexity 17 of function (*Execution).initServices() is high (> 15) (gocyclo)
    • pkg/app/master/command/build/handler.go
    • Line 64: warning: cyclomatic complexity 133 of function OnCommand() is high (> 15) (gocyclo)
    • Line 1262: warning: cyclomatic complexity 29 of function monitorContainer() is high (> 15) (gocyclo)
    • Line 1498: warning: cyclomatic complexity 17 of function finishCommand() is high (> 15) (gocyclo)
    • pkg/vulnerability/epss/api/api.go
    • Line 380: warning: cyclomatic complexity 39 of function (*Instance).call() is high (> 15) (gocyclo)
    • Line 199: warning: cyclomatic complexity 16 of function (*Instance).GenericListCall() 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!