Preparing report...

Report for github.com/keycloak/keycloak-operator

A+    Excellent!    Found 64 issues across 108 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!


golint41%

Golint is a linter for Go source code.

    • keycloak-operator/pkg/controller/keycloak/keycloak_reconciler.go
    • Line 13: warning: exported type Reconciler should have comment or be unexported (golint)
    • Line 17: warning: exported type KeycloakReconciler should have comment or be unexported (golint)
    • Line 20: warning: exported function NewKeycloakReconciler should have comment or be unexported (golint)
    • Line 24: warning: exported method KeycloakReconciler.Reconcile should have comment or be unexported (golint)
    • Line 91: warning: exported method KeycloakReconciler.GetKeycloakAdminSecretDesiredState should have comment or be unexported (golint)
    • Line 106: warning: exported method KeycloakReconciler.GetKeycloakProbesDesiredState should have comment or be unexported (golint)
    • Line 217: warning: exported method KeycloakReconciler.GetKeycloakPrometheusRuleDesiredState should have comment or be unexported (golint)
    • Line 241: warning: exported method KeycloakReconciler.GetKeycloakServiceMonitorDesiredState should have comment or be unexported (golint)
    • Line 265: warning: exported method KeycloakReconciler.GetKeycloakGrafanaDashboardDesiredState should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/image_manager.go
    • Line 9: warning: exported const KeycloakImage should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported var Images should have comment or be unexported (golint)
    • Line 29: warning: exported type ImageManager should have comment or be unexported (golint)
    • Line 33: warning: exported function NewImageManager should have comment or be unexported (golint)
    • keycloak-operator/pkg/apis/keycloak/v1alpha1/keycloakuser_types.go
    • Line 8: warning: exported const UserFinalizer should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported var UserPhaseReconciled should have comment or be unexported (golint)
    • Line 49: warning: exported type KeycloakAPIUser should have comment or be unexported (golint)
    • Line 94: warning: exported type KeycloakCredential should have comment or be unexported (golint)
    • Line 106: warning: exported type FederatedIdentity should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/profile_manager.go
    • Line 11: warning: exported const RHSSOProfile should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported var Profiles should have comment or be unexported (golint)
    • Line 17: warning: exported type ProfileManager should have comment or be unexported (golint)
    • Line 21: warning: exported function NewProfileManager should have comment or be unexported (golint)
    • Line 27: warning: exported method ProfileManager.IsRHSSO should have comment or be unexported (golint)
    • Line 39: warning: exported method ProfileManager.GetKeycloakOrRHSSOImage should have comment or be unexported (golint)
    • Line 46: warning: exported method ProfileManager.GetInitContainerImage should have comment or be unexported (golint)
    • keycloak-operator/pkg/common/client.go
    • Line 30: warning: exported type Requester should have comment or be unexported (golint)
    • Line 34: warning: exported type Client should have comment or be unexported (golint)
    • Line 85: warning: exported method Client.Endpoint should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.CreateRealm should have comment or be unexported (golint)
    • Line 93: warning: exported method Client.CreateClient should have comment or be unexported (golint)
    • Line 97: warning: exported method Client.CreateClientRole should have comment or be unexported (golint)
    • Line 101: warning: exported method Client.CreateClientRealmScopeMappings should have comment or be unexported (golint)
    • Line 106: warning: exported method Client.CreateClientClientScopeMappings should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.CreateUser should have comment or be unexported (golint)
    • Line 115: warning: exported method Client.CreateFederatedIdentity should have comment or be unexported (golint)
    • Line 119: warning: exported method Client.RemoveFederatedIdentity should have comment or be unexported (golint)
    • Line 123: warning: exported method Client.GetUserFederatedIdentities should have comment or be unexported (golint)
    • Line 135: warning: exported method Client.CreateUserClientRole should have comment or be unexported (golint)
    • Line 142: warning: exported method Client.CreateUserRealmRole should have comment or be unexported (golint)
    • Line 150: warning: exported method Client.CreateAuthenticatorConfig should have comment or be unexported (golint)
    • Line 154: warning: exported method Client.DeleteUserClientRole should have comment or be unexported (golint)
    • Line 163: warning: exported method Client.DeleteUserRealmRole should have comment or be unexported (golint)
    • Line 172: warning: exported method Client.UpdatePassword should have comment or be unexported (golint)
    • Line 184: warning: exported method Client.FindUserByEmail should have comment or be unexported (golint)
    • Line 204: warning: exported method Client.FindUserByUsername should have comment or be unexported (golint)
    • Line 227: warning: exported method Client.CreateIdentityProvider should have comment or be unexported (golint)
    • Line 275: warning: exported method Client.GetRealm should have comment or be unexported (golint)
    • Line 292: warning: exported method Client.GetClient should have comment or be unexported (golint)
    • Line 308: warning: exported method Client.GetClientSecret should have comment or be unexported (golint)
    • Line 326: warning: exported method Client.GetClientInstall should have comment or be unexported (golint)
    • Line 337: warning: exported method Client.GetUser should have comment or be unexported (golint)
    • Line 353: warning: exported method Client.GetIdentityProvider should have comment or be unexported (golint)
    • Line 368: warning: exported method Client.GetAuthenticatorConfig should have comment or be unexported (golint)
    • Line 416: warning: exported method Client.UpdateRealm should have comment or be unexported (golint)
    • Line 420: warning: exported method Client.UpdateClient should have comment or be unexported (golint)
    • Line 424: warning: exported method Client.UpdateClientRole should have comment or be unexported (golint)
    • Line 428: warning: exported method Client.UpdateUser should have comment or be unexported (golint)
    • Line 432: warning: exported method Client.UpdateIdentityProvider should have comment or be unexported (golint)
    • Line 436: warning: exported method Client.UpdateAuthenticatorConfig should have comment or be unexported (golint)
    • Line 440: warning: exported method Client.UpdateClientDefaultClientScope should have comment or be unexported (golint)
    • Line 444: warning: exported method Client.UpdateClientOptionalClientScope should have comment or be unexported (golint)
    • Line 494: warning: exported method Client.DeleteRealm should have comment or be unexported (golint)
    • Line 499: warning: exported method Client.DeleteClient should have comment or be unexported (golint)
    • Line 504: warning: exported method Client.DeleteClientRole should have comment or be unexported (golint)
    • Line 509: warning: exported method Client.DeleteClientRealmScopeMappings should have comment or be unexported (golint)
    • Line 513: warning: exported method Client.DeleteClientClientScopeMappings should have comment or be unexported (golint)
    • Line 517: warning: exported method Client.DeleteClientDefaultClientScope should have comment or be unexported (golint)
    • Line 521: warning: exported method Client.DeleteClientOptionalClientScope should have comment or be unexported (golint)
    • Line 525: warning: exported method Client.DeleteUser should have comment or be unexported (golint)
    • Line 530: warning: exported method Client.DeleteIdentityProvider should have comment or be unexported (golint)
    • Line 535: warning: exported method Client.DeleteAuthenticatorConfig should have comment or be unexported (golint)
    • Line 578: warning: exported method Client.ListRealms should have comment or be unexported (golint)
    • Line 591: warning: exported method Client.ListClients should have comment or be unexported (golint)
    • Line 611: warning: exported method Client.ListClientRoles should have comment or be unexported (golint)
    • Line 631: warning: exported method Client.ListScopeMappings should have comment or be unexported (golint)
    • Line 671: warning: exported method Client.ListAvailableClientScopes should have comment or be unexported (golint)
    • Line 675: warning: exported method Client.ListDefaultClientScopes should have comment or be unexported (golint)
    • Line 679: warning: exported method Client.ListOptionalClientScopes should have comment or be unexported (golint)
    • Line 683: warning: exported method Client.ListUsers should have comment or be unexported (golint)
    • Line 695: warning: exported method Client.ListIdentityProviders should have comment or be unexported (golint)
    • Line 707: warning: exported method Client.ListUserClientRoles should have comment or be unexported (golint)
    • Line 722: warning: exported method Client.ListAvailableUserClientRoles should have comment or be unexported (golint)
    • Line 737: warning: exported method Client.ListUserRealmRoles should have comment or be unexported (golint)
    • Line 752: warning: exported method Client.ListAvailableUserRealmRoles should have comment or be unexported (golint)
    • Line 767: warning: exported method Client.ListAuthenticationExecutionsForFlow should have comment or be unexported (golint)
    • Line 779: warning: exported method Client.Ping should have comment or be unexported (golint)
    • Line 878: warning: exported type KeycloakInterface should have comment or be unexported (golint)
    • Line 956: warning: exported type LocalConfigKeycloakFactory should have comment or be unexported (golint)
    • keycloak-operator/pkg/common/controller_utils.go
    • Line 31: warning: exported function WatchSecondaryResource should have comment or be unexported (golint)
    • Line 60: warning: exported function GetStateFieldName should have comment or be unexported (golint)
    • Line 64: warning: comment on exported function GetMatchingKeycloaks should be of the form "GetMatchingKeycloaks ..." (golint)
    • Line 75: warning: comment on exported function GetMatchingRealms should be of the form "GetMatchingRealms ..." (golint)
    • keycloak-operator/pkg/apis/keycloak/v1alpha1/keycloakclient_types.go
    • Line 27: warning: comment on exported type MappingsRepresentation should be of the form "MappingsRepresentation ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported type ClientMappingsRepresentation should be of the form "ClientMappingsRepresentation ..." (with optional leading article) (golint)
    • Line 53: warning: exported type KeycloakAPIClient should have comment or be unexported (golint)
    • Line 169: warning: exported type KeycloakProtocolMapper should have comment or be unexported (golint)
    • Line 193: warning: comment on exported type KeycloakResourceServer should be of the form "KeycloakResourceServer ..." (with optional leading article) (golint)
    • Line 231: warning: comment on exported type KeycloakPolicy should be of the form "KeycloakPolicy ..." (with optional leading article) (golint)
    • Line 284: warning: comment on exported type KeycloakResource should be of the form "KeycloakResource ..." (with optional leading article) (golint)
    • Line 320: warning: comment on exported type KeycloakScope should be of the form "KeycloakScope ..." (with optional leading article) (golint)
    • Line 382: warning: exported method KeycloakClient.UpdateStatusSecondaryResources should have comment or be unexported (golint)
    • keycloak-operator/pkg/controller/keycloak/keycloak_controller.go
    • Line 43: warning: exported const RequeueDelay should have comment (or a comment on this block) or be unexported (golint)
    • Line 144: warning: exported method ReconcileKeycloak.Reconcile should have comment or be unexported (golint)
    • Line 209: warning: exported method ReconcileKeycloak.ManageError should have comment or be unexported (golint)
    • Line 229: warning: exported method ReconcileKeycloak.ManageSuccess should have comment or be unexported (golint)
    • keycloak-operator/pkg/common/user_state.go
    • Line 13: warning: exported type UserState should have comment or be unexported (golint)
    • Line 25: warning: exported function NewUserState should have comment or be unexported (golint)
    • Line 130: warning: comment on exported method UserState.GetAvailableRealmRole should be of the form "GetAvailableRealmRole ..." (golint)
    • Line 141: warning: comment on exported method UserState.GetAvailableClientRole should be of the form "GetAvailableClientRole ..." (golint)
    • Line 152: warning: comment on exported method UserState.GetClientByID should be of the form "GetClientByID ..." (golint)
    • keycloak-operator/pkg/apis/keycloak/v1alpha1/keycloak_types.go
    • Line 8: warning: exported type TLSTerminationType should have comment or be unexported (golint)
    • Line 11: warning: exported var DefaultTLSTermintation should have comment or be unexported (golint)
    • Line 87: warning: exported type DeploymentSpec should have comment or be unexported (golint)
    • Line 93: warning: exported type KeycloakDeploymentSpec should have comment or be unexported (golint)
    • Line 102: warning: exported type PostgresqlDeploymentSpec should have comment or be unexported (golint)
    • Line 106: warning: exported type ExperimentalSpec should have comment or be unexported (golint)
    • Line 126: warning: exported type VolumesSpec should have comment or be unexported (golint)
    • Line 133: warning: exported type VolumeSpec should have comment or be unexported (golint)
    • Line 149: warning: exported type KeycloakExternal should have comment or be unexported (golint)
    • Line 158: warning: exported type KeycloakExternalAccess should have comment or be unexported (golint)
    • Line 178: warning: exported type KeycloakExternalDatabase should have comment or be unexported (golint)
    • Line 184: warning: exported type PodDisruptionBudgetConfig should have comment or be unexported (golint)
    • Line 189: warning: exported type MultiAvailablityZonesConfig should have comment or be unexported (golint)
    • Line 194: warning: exported type MigrateConfig should have comment or be unexported (golint)
    • Line 203: warning: exported type MigrationStrategy should have comment or be unexported (golint)
    • Line 206: warning: exported var NoStrategy should have comment or be unexported (golint)
    • Line 211: warning: exported type BackupConfig should have comment or be unexported (golint)
    • Line 237: warning: exported type StatusPhase should have comment or be unexported (golint)
    • Line 240: warning: exported var NoPhase should have comment or be unexported (golint)
    • Line 271: warning: exported method Keycloak.UpdateStatusSecondaryResources should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/postgresql_aws_periodic_backup.go
    • Line 12: warning: exported function PostgresqlAWSPeriodicBackup should have comment or be unexported (golint)
    • Line 47: warning: exported function PostgresqlAWSPeriodicBackupSelector should have comment or be unexported (golint)
    • Line 54: warning: exported function PostgresqlAWSPeriodicBackupReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/controller/keycloak/keycloak_migrations.go
    • Line 18: warning: exported type Migrator should have comment or be unexported (golint)
    • Line 22: warning: exported type RecreateMigrator should have comment or be unexported (golint)
    • Line 25: warning: exported type RollingMigrator should have comment or be unexported (golint)
    • Line 28: warning: exported function GetMigrator should have comment or be unexported (golint)
    • Line 39: warning: exported method RecreateMigrator.Migrate should have comment or be unexported (golint)
    • Line 72: warning: exported method RollingMigrator.Migrate should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/postgresql_deployment.go
    • Line 39: warning: exported function PostgresqlDeployment should have comment or be unexported (golint)
    • Line 182: warning: exported function PostgresqlDeploymentSelector should have comment or be unexported (golint)
    • Line 189: warning: exported function PostgresqlDeploymentReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/client_secret.go
    • Line 10: warning: exported function ClientSecret should have comment or be unexported (golint)
    • Line 26: warning: exported function ClientSecretSelector should have comment or be unexported (golint)
    • Line 33: warning: exported function ClientSecretReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/keycloak_route.go
    • Line 11: warning: exported function KeycloakRoute should have comment or be unexported (golint)
    • Line 38: warning: exported function KeycloakRouteReconciled should have comment or be unexported (golint)
    • Line 63: warning: exported function KeycloakRouteSelector should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/util.go
    • Line 41: warning: exported function GetRealmUserSecretName should have comment or be unexported (golint)
    • Line 48: warning: exported function SanitizeNumberOfReplicas should have comment or be unexported (golint)
    • Line 56: warning: exported function SanitizeResourceName should have comment or be unexported (golint)
    • Line 101: warning: exported function IsIP should have comment or be unexported (golint)
    • Line 105: warning: exported function GetExternalDatabaseHost should have comment or be unexported (golint)
    • Line 110: warning: exported function GetExternalDatabaseName should have comment or be unexported (golint)
    • Line 119: warning: exported function GetExternalDatabasePort should have comment or be unexported (golint)
    • Line 132: warning: comment on exported function MergeEnvs should be of the form "MergeEnvs ..." (golint)
    • Line 150: warning: comment on exported function RoleDifferenceIntersection should be of the form "RoleDifferenceIntersection ..." (golint)
    • Line 178: warning: comment on exported function ClientScopeDifferenceIntersection should be of the form "ClientScopeDifferenceIntersection ..." (golint)
    • Line 207: warning: exported function FilterClientScopesByNames should have comment or be unexported (golint)
    • keycloak-operator/pkg/common/cluster_state.go
    • Line 32: warning: comment on exported type DesiredClusterState should be of the form "DesiredClusterState ..." (with optional leading article) (golint)
    • Line 36: warning: exported method DesiredClusterState.AddAction should have comment or be unexported (golint)
    • Line 43: warning: exported method DesiredClusterState.AddActions should have comment or be unexported (golint)
    • Line 50: warning: exported type ClusterState should have comment or be unexported (golint)
    • Line 514: warning: exported method ClusterState.IsResourcesReady should have comment or be unexported (golint)
    • keycloak-operator/pkg/controller/keycloakbackup/keycloakbackup_reconciler.go
    • Line 9: warning: exported type Reconciler should have comment or be unexported (golint)
    • Line 13: warning: exported type KeycloakBackupReconciler should have comment or be unexported (golint)
    • Line 17: warning: exported function NewKeycloakBackupReconciler should have comment or be unexported (golint)
    • Line 23: warning: exported method KeycloakBackupReconciler.Reconcile should have comment or be unexported (golint)
    • Line 40: warning: exported method KeycloakBackupReconciler.GetAwsPeriodicBackupDesiredState should have comment or be unexported (golint)
    • Line 54: warning: exported method KeycloakBackupReconciler.GetAwsBackupDesiredState should have comment or be unexported (golint)
    • Line 68: warning: exported method KeycloakBackupReconciler.GetLocalBackupDesiredState should have comment or be unexported (golint)
    • Line 82: warning: exported method KeycloakBackupReconciler.GetLocalBackupPersistentVolumeDesiredState should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/keycloak_admin_secret.go
    • Line 10: warning: exported function KeycloakAdminSecret should have comment or be unexported (golint)
    • Line 28: warning: exported function KeycloakAdminSecretSelector should have comment or be unexported (golint)
    • Line 35: warning: exported function KeycloakAdminSecretReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/apis/keycloak/v1alpha1/keycloakrealm_types.go
    • Line 25: warning: exported type KeycloakAPIRealm should have comment or be unexported (golint)
    • Line 193: warning: exported type RoleRepresentationArray should have comment or be unexported (golint)
    • Line 195: warning: comment on exported type RolesRepresentation should be of the form "RolesRepresentation ..." (with optional leading article) (golint)
    • Line 206: warning: comment on exported type RoleRepresentation should be of the form "RoleRepresentation ..." (with optional leading article) (golint)
    • Line 240: warning: exported type ScopeMappingRepresentationArray should have comment or be unexported (golint)
    • Line 242: warning: comment on exported type ScopeMappingRepresentation should be of the form "ScopeMappingRepresentation ..." (with optional leading article) (golint)
    • Line 261: warning: comment on exported type RoleRepresentationComposites should be of the form "RoleRepresentationComposites ..." (with optional leading article) (golint)
    • Line 272: warning: comment on exported type KeycloakAPIUserFederationProvider should be of the form "KeycloakAPIUserFederationProvider ..." (with optional leading article) (golint)
    • Line 301: warning: comment on exported type KeycloakAPIUserFederationMapper should be of the form "KeycloakAPIUserFederationMapper ..." (with optional leading article) (golint)
    • Line 322: warning: exported type KeycloakAPIAuthenticationFlow should have comment or be unexported (golint)
    • Line 350: warning: exported type KeycloakAPIAuthenticationExecution should have comment or be unexported (golint)
    • Line 378: warning: exported type KeycloakAPIAuthenticatorConfig should have comment or be unexported (golint)
    • Line 391: warning: exported type RedirectorIdentityProviderOverride should have comment or be unexported (golint)
    • Line 399: warning: exported type KeycloakClientScope should have comment or be unexported (golint)
    • Line 415: warning: exported type KeycloakIdentityProvider should have comment or be unexported (golint)
    • Line 454: warning: exported type KeycloakUserRole should have comment or be unexported (golint)
    • Line 463: warning: exported type AuthenticatorConfig should have comment or be unexported (golint)
    • Line 475: warning: exported type KeycloakAPIPasswordReset should have comment or be unexported (golint)
    • Line 487: warning: exported type AuthenticationExecutionInfo should have comment or be unexported (golint)
    • Line 526: warning: exported type TokenResponse should have comment or be unexported (golint)
    • Line 596: warning: exported method KeycloakRealm.UpdateStatusSecondaryResources should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/keycloak_metrics_route.go
    • Line 10: warning: exported function KeycloakMetricsRoute should have comment or be unexported (golint)
    • Line 34: warning: exported function KeycloakMetricsRouteReconciled should have comment or be unexported (golint)
    • Line 51: warning: exported function KeycloakMetricsRouteSelector should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/grafana_dashboard.go
    • Line 10: warning: exported function GrafanaDashboard should have comment or be unexported (golint)
    • Line 37: warning: exported function GrafanaDashboardReconciled should have comment or be unexported (golint)
    • Line 55: warning: exported function GrafanaDashboardSelector should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/keycloak_discovery_service.go
    • Line 11: warning: exported function KeycloakDiscoveryService should have comment or be unexported (golint)
    • Line 36: warning: exported function KeycloakDiscoveryServiceSelector should have comment or be unexported (golint)
    • Line 43: warning: exported function KeycloakDiscoveryServiceReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/keycloak_service.go
    • Line 11: warning: exported function KeycloakService should have comment or be unexported (golint)
    • Line 41: warning: exported function KeycloakServiceSelector should have comment or be unexported (golint)
    • Line 48: warning: exported function KeycloakServiceReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/pod_disruption_budget.go
    • Line 11: warning: exported function PodDisruptionBudget should have comment or be unexported (golint)
    • Line 29: warning: exported function PodDisruptionBudgetReconciled should have comment or be unexported (golint)
    • Line 38: warning: exported function PodDisruptionBudgetSelector should have comment or be unexported (golint)
    • keycloak-operator/pkg/common/readiness_checks.go
    • Line 11: warning: exported const ConditionStatusSuccess should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported function IsRouteReady should have comment or be unexported (golint)
    • Line 30: warning: exported function IsStatefulSetReady should have comment or be unexported (golint)
    • Line 42: warning: exported function IsDeploymentReady should have comment or be unexported (golint)
    • Line 59: warning: exported function IsJobReady should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/postgresql_backup.go
    • Line 11: warning: exported function PostgresqlBackup should have comment or be unexported (golint)
    • Line 99: warning: exported function PostgresqlBackupSelector should have comment or be unexported (golint)
    • Line 106: warning: exported function PostgresqlBackupReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/rhsso_deployment.go
    • Line 127: warning: exported function RHSSODeployment should have comment or be unexported (golint)
    • Line 203: warning: exported function RHSSODeploymentSelector should have comment or be unexported (golint)
    • Line 210: warning: exported function RHSSODeploymentReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/controller/keycloakclient/keycloakclient_reconciler.go
    • Line 15: warning: exported type Reconciler should have comment or be unexported (golint)
    • Line 19: warning: exported type KeycloakClientReconciler should have comment or be unexported (golint)
    • Line 23: warning: exported function NewKeycloakClientReconciler should have comment or be unexported (golint)
    • Line 29: warning: exported method KeycloakClientReconciler.Reconcile should have comment or be unexported (golint)
    • Line 59: warning: exported method KeycloakClientReconciler.ReconcileRoles should have comment or be unexported (golint)
    • Line 112: warning: exported method KeycloakClientReconciler.ReconcileScopeMappings should have comment or be unexported (golint)
    • Line 137: warning: exported method KeycloakClientReconciler.ReconcileClientScopes should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/keycloak_deployment.go
    • Line 17: warning: exported const LivenessProbeInitialDelay should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: comment on exported const ProbeTimeoutSeconds should be of the form "ProbeTimeoutSeconds ..." (golint)
    • Line 25: warning: exported function GetServiceEnvVar should have comment or be unexported (golint)
    • Line 180: warning: exported function KeycloakDeployment should have comment or be unexported (golint)
    • Line 250: warning: exported function KeycloakDeploymentSelector should have comment or be unexported (golint)
    • Line 257: warning: exported function KeycloakDeploymentReconciled should have comment or be unexported (golint)
    • Line 297: warning: exported function KeycloakVolumeMounts should have comment or be unexported (golint)
    • Line 332: warning: exported function KeycloakVolumes should have comment or be unexported (golint)
    • Line 447: warning: exported function KeycloakPodAffinity should have comment or be unexported (golint)
    • keycloak-operator/pkg/common/backup_state.go
    • Line 15: warning: exported type BackupState should have comment or be unexported (golint)
    • Line 23: warning: exported function NewBackupState should have comment or be unexported (golint)
    • Line 29: warning: exported function NewClusterState should have comment or be unexported (golint)
    • Line 130: warning: exported method BackupState.IsResourcesReady should have comment or be unexported (golint)
    • keycloak-operator/pkg/controller/keycloakrealm/keycloakrealm_reconciler.go
    • Line 11: warning: exported type Reconciler should have comment or be unexported (golint)
    • Line 15: warning: exported type KeycloakRealmReconciler should have comment or be unexported (golint)
    • Line 19: warning: exported function NewKeycloakRealmReconciler should have comment or be unexported (golint)
    • Line 25: warning: exported method KeycloakRealmReconciler.Reconcile should have comment or be unexported (golint)
    • Line 32: warning: exported method KeycloakRealmReconciler.ReconcileRealmCreate should have comment or be unexported (golint)
    • Line 47: warning: exported method KeycloakRealmReconciler.ReconcileRealmDelete should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/postgresql_aws_backup.go
    • Line 11: warning: exported function PostgresqlAWSBackup should have comment or be unexported (golint)
    • Line 33: warning: exported function PostgresqlAWSBackupSelector should have comment or be unexported (golint)
    • Line 40: warning: exported function PostgresqlAWSBackupReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/common/cluster_actions.go
    • Line 23: warning: exported type ActionRunner should have comment or be unexported (golint)
    • Line 54: warning: exported type ClusterAction should have comment or be unexported (golint)
    • Line 58: warning: exported type ClusterActionRunner should have comment or be unexported (golint)
    • Line 66: warning: comment on exported function NewClusterActionRunner should be of the form "NewClusterActionRunner ..." (golint)
    • Line 76: warning: comment on exported function NewClusterAndKeycloakActionRunner should be of the form "NewClusterAndKeycloakActionRunner ..." (golint)
    • Line 87: warning: exported method ClusterActionRunner.RunAll should have comment or be unexported (golint)
    • Line 100: warning: exported method ClusterActionRunner.Create should have comment or be unexported (golint)
    • Line 114: warning: exported method ClusterActionRunner.Update should have comment or be unexported (golint)
    • Line 123: warning: comment on exported method ClusterActionRunner.CreateRealm should be of the form "CreateRealm ..." (golint)
    • Line 133: warning: exported method ClusterActionRunner.CreateClient should have comment or be unexported (golint)
    • Line 149: warning: exported method ClusterActionRunner.UpdateClient should have comment or be unexported (golint)
    • Line 156: warning: exported method ClusterActionRunner.CreateClientRole should have comment or be unexported (golint)
    • Line 164: warning: exported method ClusterActionRunner.UpdateClientRole should have comment or be unexported (golint)
    • Line 171: warning: exported method ClusterActionRunner.DeleteClientRole should have comment or be unexported (golint)
    • Line 178: warning: exported method ClusterActionRunner.CreateClientRealmScopeMappings should have comment or be unexported (golint)
    • Line 185: warning: exported method ClusterActionRunner.DeleteClientRealmScopeMappings should have comment or be unexported (golint)
    • Line 192: warning: exported method ClusterActionRunner.CreateClientClientScopeMappings should have comment or be unexported (golint)
    • Line 199: warning: exported method ClusterActionRunner.DeleteClientDefaultClientScope should have comment or be unexported (golint)
    • Line 206: warning: exported method ClusterActionRunner.UpdateClientDefaultClientScope should have comment or be unexported (golint)
    • Line 213: warning: exported method ClusterActionRunner.DeleteClientOptionalClientScope should have comment or be unexported (golint)
    • Line 220: warning: exported method ClusterActionRunner.UpdateClientOptionalClientScope should have comment or be unexported (golint)
    • Line 227: warning: exported method ClusterActionRunner.DeleteClientClientScopeMappings should have comment or be unexported (golint)
    • Line 234: warning: comment on exported method ClusterActionRunner.DeleteRealm should be of the form "DeleteRealm ..." (golint)
    • Line 242: warning: exported method ClusterActionRunner.DeleteClient should have comment or be unexported (golint)
    • Line 249: warning: exported method ClusterActionRunner.CreateUser should have comment or be unexported (golint)
    • Line 265: warning: exported method ClusterActionRunner.UpdateUser should have comment or be unexported (golint)
    • Line 278: warning: exported method ClusterActionRunner.DeleteUser should have comment or be unexported (golint)
    • Line 285: warning: comment on exported method ClusterActionRunner.Ping should be of the form "Ping ..." (golint)
    • Line 293: warning: exported method ClusterActionRunner.AssignRealmRole should have comment or be unexported (golint)
    • Line 302: warning: exported method ClusterActionRunner.RemoveRealmRole should have comment or be unexported (golint)
    • Line 309: warning: exported method ClusterActionRunner.AssignClientRole should have comment or be unexported (golint)
    • Line 318: warning: exported method ClusterActionRunner.RemoveClientRole should have comment or be unexported (golint)
    • Line 325: warning: comment on exported method ClusterActionRunner.ApplyOverrides should be of the form "ApplyOverrides ..." (golint)
    • Line 383: warning: comment on exported type GenericCreateAction should be of the form "GenericCreateAction ..." (with optional leading article) (golint)
    • Line 390: warning: comment on exported type GenericUpdateAction should be of the form "GenericUpdateAction ..." (with optional leading article) (golint)
    • Line 397: warning: exported type CreateRealmAction should have comment or be unexported (golint)
    • Line 402: warning: exported type CreateClientAction should have comment or be unexported (golint)
    • Line 408: warning: exported type UpdateClientAction should have comment or be unexported (golint)
    • Line 414: warning: exported type DeleteRealmAction should have comment or be unexported (golint)
    • Line 419: warning: exported type DeleteClientAction should have comment or be unexported (golint)
    • Line 425: warning: exported type CreateClientRoleAction should have comment or be unexported (golint)
    • Line 432: warning: exported type UpdateClientRoleAction should have comment or be unexported (golint)
    • Line 440: warning: exported type DeleteClientRoleAction should have comment or be unexported (golint)
    • Line 447: warning: exported type CreateClientRealmScopeMappingsAction should have comment or be unexported (golint)
    • Line 454: warning: exported type DeleteClientRealmScopeMappingsAction should have comment or be unexported (golint)
    • Line 461: warning: exported type CreateClientClientScopeMappingsAction should have comment or be unexported (golint)
    • Line 468: warning: exported type DeleteClientClientScopeMappingsAction should have comment or be unexported (golint)
    • Line 475: warning: exported type UpdateClientDefaultClientScopeAction should have comment or be unexported (golint)
    • Line 482: warning: exported type DeleteClientDefaultClientScopeAction should have comment or be unexported (golint)
    • Line 489: warning: exported type UpdateClientOptionalClientScopeAction should have comment or be unexported (golint)
    • Line 496: warning: exported type DeleteClientOptionalClientScopeAction should have comment or be unexported (golint)
    • Line 503: warning: exported type ConfigureRealmAction should have comment or be unexported (golint)
    • Line 508: warning: exported type PingAction should have comment or be unexported (golint)
    • Line 512: warning: exported type CreateUserAction should have comment or be unexported (golint)
    • Line 518: warning: exported type UpdateUserAction should have comment or be unexported (golint)
    • Line 524: warning: exported type DeleteUserAction should have comment or be unexported (golint)
    • Line 530: warning: exported type AssignRealmRoleAction should have comment or be unexported (golint)
    • Line 537: warning: exported type RemoveRealmRoleAction should have comment or be unexported (golint)
    • Line 544: warning: exported type AssignClientRoleAction should have comment or be unexported (golint)
    • Line 552: warning: exported type RemoveClientRoleAction should have comment or be unexported (golint)
    • Line 560: warning: exported method GenericCreateAction.Run should have comment or be unexported (golint)
    • Line 564: warning: exported method GenericUpdateAction.Run should have comment or be unexported (golint)
    • Line 568: warning: exported method CreateRealmAction.Run should have comment or be unexported (golint)
    • Line 572: warning: exported method CreateClientAction.Run should have comment or be unexported (golint)
    • Line 576: warning: exported method UpdateClientAction.Run should have comment or be unexported (golint)
    • Line 580: warning: exported method CreateClientRoleAction.Run should have comment or be unexported (golint)
    • Line 584: warning: exported method UpdateClientRoleAction.Run should have comment or be unexported (golint)
    • Line 588: warning: exported method DeleteClientRoleAction.Run should have comment or be unexported (golint)
    • Line 592: warning: exported method CreateClientRealmScopeMappingsAction.Run should have comment or be unexported (golint)
    • Line 596: warning: exported method DeleteClientRealmScopeMappingsAction.Run should have comment or be unexported (golint)
    • Line 600: warning: exported method CreateClientClientScopeMappingsAction.Run should have comment or be unexported (golint)
    • Line 604: warning: exported method DeleteClientClientScopeMappingsAction.Run should have comment or be unexported (golint)
    • Line 608: warning: exported method UpdateClientDefaultClientScopeAction.Run should have comment or be unexported (golint)
    • Line 612: warning: exported method DeleteClientDefaultClientScopeAction.Run should have comment or be unexported (golint)
    • Line 616: warning: exported method UpdateClientOptionalClientScopeAction.Run should have comment or be unexported (golint)
    • Line 620: warning: exported method DeleteClientOptionalClientScopeAction.Run should have comment or be unexported (golint)
    • Line 624: warning: exported method DeleteRealmAction.Run should have comment or be unexported (golint)
    • Line 628: warning: exported method DeleteClientAction.Run should have comment or be unexported (golint)
    • Line 632: warning: exported method PingAction.Run should have comment or be unexported (golint)
    • Line 636: warning: exported method ConfigureRealmAction.Run should have comment or be unexported (golint)
    • Line 640: warning: exported method CreateUserAction.Run should have comment or be unexported (golint)
    • Line 644: warning: exported method UpdateUserAction.Run should have comment or be unexported (golint)
    • Line 648: warning: exported method DeleteUserAction.Run should have comment or be unexported (golint)
    • Line 652: warning: exported method AssignRealmRoleAction.Run should have comment or be unexported (golint)
    • Line 656: warning: exported method RemoveRealmRoleAction.Run should have comment or be unexported (golint)
    • Line 660: warning: exported method AssignClientRoleAction.Run should have comment or be unexported (golint)
    • Line 664: warning: exported method RemoveClientRoleAction.Run should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/keycloak_monitoring_service.go
    • Line 11: warning: exported function KeycloakMonitoringService should have comment or be unexported (golint)
    • Line 40: warning: exported function KeycloakMonitoringServiceSelector should have comment or be unexported (golint)
    • Line 47: warning: exported function KeycloakMonitoringServiceReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/keycloak_probes.go
    • Line 11: warning: exported const LivenessProbeImplementation should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported function KeycloakProbes should have comment or be unexported (golint)
    • Line 64: warning: exported function KeycloakProbesSelector should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/postgresql_service_endpoints.go
    • Line 12: warning: exported function PostgresqlServiceEndpoints should have comment or be unexported (golint)
    • Line 28: warning: exported function PostgresqlServiceEndpointsSelector should have comment or be unexported (golint)
    • Line 35: warning: exported function PostgresqlServiceEndpointsReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/database_secret.go
    • Line 10: warning: exported function DatabaseSecret should have comment or be unexported (golint)
    • Line 30: warning: exported function DatabaseSecretSelector should have comment or be unexported (golint)
    • Line 37: warning: exported function DatabaseSecretReconciled should have comment or be unexported (golint)
    • keycloak-operator/test/e2e/utils.go
    • Line 27: warning: exported type Condition should have comment or be unexported (golint)
    • Line 29: warning: exported type ResponseCondition should have comment or be unexported (golint)
    • Line 31: warning: exported type ClientCondition should have comment or be unexported (golint)
    • Line 33: warning: exported function WaitForCondition should have comment or be unexported (golint)
    • Line 45: warning: exported function WaitForConditionWithClient should have comment or be unexported (golint)
    • Line 55: warning: exported function MakeAuthenticatedClient should have comment or be unexported (golint)
    • Line 60: warning: comment on exported function WaitForStatefulSetReplicasReady should be of the form "WaitForStatefulSetReplicasReady ..." (golint)
    • Line 77: warning: exported function WaitForPersistentVolumeClaimCreated should have comment or be unexported (golint)
    • Line 92: warning: exported function WaitForKeycloakToBeReady should have comment or be unexported (golint)
    • Line 114: warning: exported function WaitForRealmToBeReady should have comment or be unexported (golint)
    • Line 136: warning: exported function WaitForClientToBeReady should have comment or be unexported (golint)
    • Line 158: warning: exported function WaitForClientToBeFailing should have comment or be unexported (golint)
    • Line 180: warning: exported function WaitForUserToBeReady should have comment or be unexported (golint)
    • Line 202: warning: exported function WaitForResponse should have comment or be unexported (golint)
    • Line 219: warning: exported function WaitForSuccessResponseToContain should have comment or be unexported (golint)
    • Line 237: warning: exported function WaitForSuccessResponse should have comment or be unexported (golint)
    • Line 246: warning: exported function Create should have comment or be unexported (golint)
    • Line 250: warning: exported function Get should have comment or be unexported (golint)
    • Line 254: warning: exported function GetNamespacedObject should have comment or be unexported (golint)
    • Line 263: warning: exported function Update should have comment or be unexported (golint)
    • Line 267: warning: exported function Delete should have comment or be unexported (golint)
    • Line 271: warning: exported function CreateLabel should have comment or be unexported (golint)
    • Line 275: warning: exported function CreateExternalLabel should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/keycloak_ingress.go
    • Line 11: warning: exported function KeycloakIngress should have comment or be unexported (golint)
    • Line 55: warning: exported function KeycloakIngressReconciled should have comment or be unexported (golint)
    • Line 84: warning: exported function KeycloakIngressSelector should have comment or be unexported (golint)
    • keycloak-operator/pkg/model/postgresql_service.go
    • Line 38: warning: exported function PostgresqlService should have comment or be unexported (golint)
    • Line 51: warning: exported function PostgresqlServiceSelector should have comment or be unexported (golint)
    • Line 58: warning: exported function PostgresqlServiceReconciled should have comment or be unexported (golint)
    • keycloak-operator/pkg/common/state_manager.go
    • Line 5: warning: exported type StateManager should have comment or be unexported (golint)
    • Line 13: warning: exported function GetStateManager should have comment or be unexported (golint)
    • Line 21: warning: exported method StateManager.GetState should have comment or be unexported (golint)
    • Line 27: warning: exported method StateManager.SetState should have comment or be unexported (golint)
    • Line 33: warning: exported method StateManager.Clear should have comment or be unexported (golint)

gocyclo98%

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.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!