Preparing report...

Report for github.com/openshift-telco/netconf-operator

(v0.0.0-20211201160559-4ca791c7934f)

A+    Excellent!    Found 13 issues across 27 files

Tweet

gofmt96%

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!


gocyclo100%

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.

No problems detected. Good job!


golint55%

Golint is a linter for Go source code.

    • api/v1/editconfig_types.go
    • Line 79: warning: exported method EditConfig.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 83: warning: exported method EditConfig.GetNamespacedName should have comment or be unexported (golint)
    • api/v1/get_types.go
    • Line 64: warning: exported method Get.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 68: warning: exported method Get.GetNamespacedName should have comment or be unexported (golint)
    • api/v1/getconfig_types.go
    • Line 62: warning: exported method GetConfig.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 66: warning: exported method GetConfig.GetNamespacedName should have comment or be unexported (golint)
    • api/v1/lock_types.go
    • Line 62: warning: exported method Lock.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 66: warning: exported method Lock.GetNamespacedName should have comment or be unexported (golint)
    • api/v1/mountpoint_types.go
    • Line 67: warning: exported method MountPoint.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 71: warning: exported method MountPoint.GetNamespacedName should have comment or be unexported (golint)
    • api/v1/rpc_types.go
    • Line 61: warning: exported method RPC.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 65: warning: exported method RPC.GetNamespacedName should have comment or be unexported (golint)
    • api/v1/unlock_types.go
    • Line 64: warning: exported method Unlock.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 68: warning: exported method Unlock.GetNamespacedName should have comment or be unexported (golint)
    • api/v1/createsubscription_types.go
    • Line 65: warning: exported method CreateSubscription.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 69: warning: exported method CreateSubscription.GetNamespacedName should have comment or be unexported (golint)
    • api/v1/common_types.go
    • Line 17: warning: exported method DependsOn.IsNil should have comment or be unexported (golint)
    • Line 21: warning: exported type RPCStatus should have comment or be unexported (golint)
    • Line 37: warning: exported method RPCStatus.GetConditions should have comment or be unexported (golint)
    • Line 41: warning: exported method RPCStatus.SetConditions should have comment or be unexported (golint)
    • api/v1/establishsubscription_types.go
    • Line 61: warning: exported method EstablishSubscription.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 65: warning: exported method EstablishSubscription.GetNamespacedName should have comment or be unexported (golint)
    • api/v1/commit_types.go
    • Line 61: warning: exported method Commit.GetMountPointNamespacedName should have comment or be unexported (golint)
    • Line 65: warning: exported method Commit.GetNamespacedName should have comment or be unexported (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!