Preparing report...

Report for github.com/slimtoolkit/slim

(v0.0.0-20230103064051-4ab562bf34b3)

A+    Excellent!    Found 43 issues across 251 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!


gocyclo85%

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/app/master/compose/execution.go
    • Line 1247: warning: cyclomatic complexity 31 of function startContainer() is high (> 15) (gocyclo)
    • Line 184: warning: cyclomatic complexity 18 of function NewConfigInfo() is high (> 15) (gocyclo)
    • Line 439: warning: cyclomatic complexity 17 of function (*Execution).initServices() is high (> 15) (gocyclo)
    • pkg/app/sensor/artifacts/artifacts.go
    • Line 1200: warning: cyclomatic complexity 148 of function (*artifactStore).saveArtifacts() is high (> 15) (gocyclo)
    • Line 1019: warning: cyclomatic complexity 44 of function (*artifactStore).saveCertsData() is high (> 15) (gocyclo)
    • Line 2637: warning: cyclomatic complexity 42 of function findSymlinks() is high (> 15) (gocyclo)
    • Line 867: warning: cyclomatic complexity 33 of function (*artifactStore).saveOSLibsNetwork() is high (> 15) (gocyclo)
    • Line 673: warning: cyclomatic complexity 23 of function (*artifactStore).resolveLinks() is high (> 15) (gocyclo)
    • Line 1810: warning: cyclomatic complexity 17 of function (*artifactStore).detectAppStack() is high (> 15) (gocyclo)
    • Line 575: warning: cyclomatic complexity 16 of function (*artifactStore).prepareArtifacts() is high (> 15) (gocyclo)
    • Line 2479: warning: cyclomatic complexity 16 of function ngxEnsure() is high (> 15) (gocyclo)
    • pkg/app/master/commands/build/image.go
    • Line 469: warning: cyclomatic complexity 27 of function UpdateBuildOptionsWithNewInstructions() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 21 of function buildOutputImage() is high (> 15) (gocyclo)
    • Line 547: warning: cyclomatic complexity 20 of function UpdateBuildOptionsWithOverrides() is high (> 15) (gocyclo)
    • pkg/docker/dockerimage/dockerimage.go
    • Line 1161: warning: cyclomatic complexity 97 of function inspectFile() is high (> 15) (gocyclo)
    • Line 458: warning: cyclomatic complexity 83 of function LoadPackage() is high (> 15) (gocyclo)
    • Line 886: warning: cyclomatic complexity 49 of function layerFromStream() is high (> 15) (gocyclo)
    • pkg/util/fsutil/fsutil.go
    • Line 605: warning: cyclomatic complexity 31 of function copyFileObjectHandler() is high (> 15) (gocyclo)
    • Line 484: warning: cyclomatic complexity 28 of function CopyRegularFile() is high (> 15) (gocyclo)
    • Line 1212: warning: cyclomatic complexity 18 of function ArchiveDir() is high (> 15) (gocyclo)
    • Line 406: warning: cyclomatic complexity 18 of function cloneDirPath() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words