Preparing report...

Report for github.com/Knappek/mongodbatlas-operator

A+    Excellent!    Found 11 issues across 36 files

Tweet

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!


gocyclo86%

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.


golint97%

Golint is a linter for Go source code.

    • mongodbatlas-operator/pkg/apis/knappek/v1alpha1/zz_generated.openapi.go
    • Line 12: warning: exported function GetOpenAPIDefinitions should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasAlertConfiguration should be schemaPkgApisKnappekV1alpha1MongoDBAtlasAlertConfiguration (golint)
    • Line 72: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasAlertConfigurationSpec should be schemaPkgApisKnappekV1alpha1MongoDBAtlasAlertConfigurationSpec (golint)
    • Line 134: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasAlertConfigurationStatus should be schemaPkgApisKnappekV1alpha1MongoDBAtlasAlertConfigurationStatus (golint)
    • Line 201: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasCluster should be schemaPkgApisKnappekV1alpha1MongoDBAtlasCluster (golint)
    • Line 244: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasClusterSpec should be schemaPkgApisKnappekV1alpha1MongoDBAtlasClusterSpec (golint)
    • Line 318: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasClusterStatus should be schemaPkgApisKnappekV1alpha1MongoDBAtlasClusterStatus (golint)
    • Line 446: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasDatabaseUser should be schemaPkgApisKnappekV1alpha1MongoDBAtlasDatabaseUser (golint)
    • Line 489: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasDatabaseUserSpec should be schemaPkgApisKnappekV1alpha1MongoDBAtlasDatabaseUserSpec (golint)
    • Line 540: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasDatabaseUserStatus should be schemaPkgApisKnappekV1alpha1MongoDBAtlasDatabaseUserStatus (golint)
    • Line 590: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasProject should be schemaPkgApisKnappekV1alpha1MongoDBAtlasProject (golint)
    • Line 633: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasProjectSpec should be schemaPkgApisKnappekV1alpha1MongoDBAtlasProjectSpec (golint)
    • Line 653: warning: don't use underscores in Go names; func schema_pkg_apis_knappek_v1alpha1_MongoDBAtlasProjectStatus should be schemaPkgApisKnappekV1alpha1MongoDBAtlasProjectStatus (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!