Preparing report...

Report for github.com/microsoft/bedrock

C    Needs some work    Found 5 issues across 5 files

Tweet

gofmt60%

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!


gocyclo40%

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.


golint20%

Golint is a linter for Go source code.

    • bedrock/test/bedrock_Azure_mc_test.go
    • Line 114: warning: don't use underscores in Go names; var common_backend_tfOptions should be commonBackendTfOptions (golint)
    • Line 125: warning: don't use underscores in Go names; var common_tfOptions should be commonTfOptions (golint)
    • Line 146: warning: don't use underscores in Go names; var tm_dnsprefix should be tmDnsprefix (golint)
    • Line 148: warning: don't use underscores in Go names; var k8s_eastRG should be k8sEastRG (golint)
    • Line 149: warning: don't use underscores in Go names; var k8s_westRG should be k8sWestRG (golint)
    • Line 150: warning: don't use underscores in Go names; var k8s_centralRG should be k8sCentralRG (golint)
    • Line 151: warning: don't use underscores in Go names; var k8s_globalRG should be k8sGlobalRG (golint)
    • Line 153: warning: don't use underscores in Go names; var cluster_location1 should be clusterLocation1 (golint)
    • Line 154: warning: don't use underscores in Go names; var cluster_location2 should be clusterLocation2 (golint)
    • Line 155: warning: don't use underscores in Go names; var cluster_location3 should be clusterLocation3 (golint)
    • Line 193: warning: don't use underscores in Go names; var agent_vm_count should be agentVMCount (golint)
    • Line 194: warning: don't use underscores in Go names; var agent_vm_size should be agentVMSize (golint)
    • Line 268: warning: don't use underscores in Go names; var westCluster_out should be westClusterOut (golint)
    • Line 269: warning: don't use underscores in Go names; var eastCluster_out should be eastClusterOut (golint)
    • Line 270: warning: don't use underscores in Go names; var centralCluster_out should be centralClusterOut (golint)
    • Line 339: warning: don't use underscores in Go names; var westIP_address_file should be westIPAddressFile (golint)
    • Line 340: warning: don't use underscores in Go names; var eastIP_address_file should be eastIPAddressFile (golint)
    • Line 341: warning: don't use underscores in Go names; var centralIP_address_file should be centralIPAddressFile (golint)
    • bedrock/test/bedrock_Azure_single_cosmos_mongo_test.go
    • Line 93: warning: don't use underscores in Go names; var common_backend_tfOptions should be commonBackendTfOptions (golint)
    • Line 104: warning: don't use underscores in Go names; var common_tfOptions should be commonTfOptions (golint)
    • Line 126: warning: don't use underscores in Go names; var cosmos_db_name should be cosmosDbName (golint)
    • Line 127: warning: don't use underscores in Go names; var mongo_db_name should be mongoDbName (golint)
    • Line 173: warning: don't use underscores in Go names; var k8s_backend_tfOptions should be k8sBackendTfOptions (golint)
    • Line 184: warning: don't use underscores in Go names; var k8s_tfOptions should be k8sTfOptions (golint)
    • Line 240: warning: don't use underscores in Go names; var cosmos_db_key should be cosmosDbKey (golint)
    • bedrock/test/bedrock_Azure_common_kv_test.go
    • Line 93: warning: don't use underscores in Go names; var common_backend_tfOptions should be commonBackendTfOptions (golint)
    • Line 104: warning: don't use underscores in Go names; var common_tfOptions should be commonTfOptions (golint)
    • Line 170: warning: don't use underscores in Go names; var k8s_backend_tfOptions should be k8sBackendTfOptions (golint)
    • Line 181: warning: don't use underscores in Go names; var k8s_tfOptions should be k8sTfOptions (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!