Preparing report...

Report for github.com/trimble-oss/tierceron

(v1.12.6)

A+    Excellent!    Found 30 issues across 104 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!


gocyclo71%

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/trcinit/initlib/vault-seed.go
    • Line 83: warning: cyclomatic complexity 105 of function SeedVault() is high (> 15) (gocyclo)
    • Line 648: warning: cyclomatic complexity 54 of function SeedVaultFromData() is high (> 15) (gocyclo)
    • Line 457: warning: cyclomatic complexity 41 of function seedVaultWithCertsFromEntry() is high (> 15) (gocyclo)
    • pkg/utils/diffUtil.go
    • Line 366: warning: cyclomatic complexity 49 of function DiffHelper() is high (> 15) (gocyclo)
    • Line 30: warning: cyclomatic complexity 45 of function LineByLineDiff() is high (> 15) (gocyclo)
    • Line 237: warning: cyclomatic complexity 29 of function VersionHelper() is high (> 15) (gocyclo)
    • pkg/trcx/xutil/xmanager.go
    • Line 24: warning: cyclomatic complexity 125 of function GenerateSeedSectionFromVaultRaw() is high (> 15) (gocyclo)
    • Line 616: warning: cyclomatic complexity 50 of function GenerateSeedsFromVault() is high (> 15) (gocyclo)
    • pkg/core/util/util.go
    • Line 261: warning: cyclomatic complexity 21 of function GetPluginToolConfig() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 19 of function SeedVaultById() is high (> 15) (gocyclo)
    • pkg/cli/trcconfigbase/utils/dataStorePopulator.go
    • Line 20: warning: cyclomatic complexity 58 of function (*ConfigDataStore).Init() is high (> 15) (gocyclo)
    • Line 393: warning: cyclomatic complexity 36 of function GetPathsFromProject() is high (> 15) (gocyclo)
    • Line 262: warning: cyclomatic complexity 18 of function (*ConfigDataStore).InitTemplateVersionData() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 16 of function (*ConfigDataStore).GetValue() is high (> 15) (gocyclo)
    • pkg/vaulthelper/kv/Modifier.go
    • Line 357: warning: cyclomatic complexity 44 of function (*Modifier).ReadData() is high (> 15) (gocyclo)
    • Line 738: warning: cyclomatic complexity 32 of function (*Modifier).GetVersionValues() is high (> 15) (gocyclo)
    • Line 1061: warning: cyclomatic complexity 23 of function (*Modifier).HardDelete() is high (> 15) (gocyclo)
    • Line 299: warning: cyclomatic complexity 17 of function (*Modifier).Write() 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!