Preparing report...

Report for stash.appscode.dev/apimachinery

A+    Excellent!    Found 71 issues across 173 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!


gocyclo97%

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.


golint59%

Golint is a linter for Go source code.

    • /stash.appscode.dev/apimachinery/apis/constants.go
    • Line 22: warning: exported const StashDockerRegistry should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: comment on exported const EnableCache should be of the form "EnableCache ..." (golint)
    • Line 90: warning: comment on exported const HookType should be of the form "HookType ..." (golint)
    • Line 99: warning: comment on exported const LicenseApiService should be of the form "LicenseApiService ..." (golint)
    • Line 105: warning: exported const PrefixStashBackup should have comment (or a comment on this block) or be unexported (golint)
    • Line 154: warning: exported const CallerWebhook should have comment (or a comment on this block) or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_session_types.go
    • Line 25: warning: exported const ResourceKindBackupSession should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported type BackupSession should be of the form "BackupSession ..." (with optional leading article) (golint)
    • Line 48: warning: exported type BackupSessionSpec should have comment or be unexported (golint)
    • Line 54: warning: comment on exported type BackupSessionPhase should be of the form "BackupSessionPhase ..." (with optional leading article) (golint)
    • Line 58: warning: exported const BackupSessionPending should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: comment on exported type HostBackupPhase should be of the form "HostBackupPhase ..." (with optional leading article) (golint)
    • Line 70: warning: exported const HostBackupSucceeded should have comment (or a comment on this block) or be unexported (golint)
    • Line 74: warning: comment on exported type TargetPhase should be of the form "TargetPhase ..." (with optional leading article) (golint)
    • Line 78: warning: exported const TargetBackupPending should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: exported type BackupSessionStatus should have comment or be unexported (golint)
    • Line 100: warning: exported type BackupTargetStatus should have comment or be unexported (golint)
    • Line 121: warning: exported type HostBackupStats should have comment or be unexported (golint)
    • Line 139: warning: exported type SnapshotStats should have comment or be unexported (golint)
    • Line 154: warning: exported type FileStats should have comment or be unexported (golint)
    • Line 167: warning: exported type BackupSessionList should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/util/restoresession.go
    • Line 35: warning: exported function CreateOrPatchRestoreSession should have comment or be unexported (golint)
    • Line 56: warning: exported function PatchRestoreSession should have comment or be unexported (golint)
    • Line 60: warning: exported function PatchRestoreSessionObject should have comment or be unexported (golint)
    • Line 83: warning: exported function TryUpdateRestoreSession should have comment or be unexported (golint)
    • Line 104: warning: exported function UpdateRestoreSessionStatus should have comment or be unexported (golint)
    • Line 158: warning: exported function UpdateRestoreSessionStatusForHost should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go
    • Line 25: warning: exported method Repository.CustomResourceDefinition should have comment or be unexported (golint)
    • Line 25: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 29: warning: exported method Repository.LocalNetworkVolume should have comment or be unexported (golint)
    • Line 37: warning: exported method Repository.LocalNetworkVolumePath should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/conditions/repository.go
    • Line 36: warning: exported function SetBackendRepositoryInitializedConditionToFalse should have comment or be unexported (golint)
    • Line 55: warning: exported function SetBackendRepositoryInitializedConditionToTrue should have comment or be unexported (golint)
    • Line 73: warning: exported function SetRepositoryFoundConditionToUnknown should have comment or be unexported (golint)
    • Line 102: warning: exported function SetRepositoryFoundConditionToFalse should have comment or be unexported (golint)
    • Line 129: warning: exported function SetRepositoryFoundConditionToTrue should have comment or be unexported (golint)
    • Line 156: warning: exported function SetBackendSecretFoundConditionToUnknown should have comment or be unexported (golint)
    • Line 185: warning: exported function SetBackendSecretFoundConditionToFalse should have comment or be unexported (golint)
    • Line 212: warning: exported function SetBackendSecretFoundConditionToTrue should have comment or be unexported (golint)
    • Line 239: warning: exported function SetRetentionPolicyAppliedConditionToFalse should have comment or be unexported (golint)
    • Line 258: warning: exported function SetRetentionPolicyAppliedConditionToTrue should have comment or be unexported (golint)
    • Line 277: warning: exported function SetRepositoryIntegrityVerifiedConditionToFalse should have comment or be unexported (golint)
    • Line 296: warning: exported function SetRepositoryIntegrityVerifiedConditionToTrue should have comment or be unexported (golint)
    • Line 315: warning: exported function SetRepositoryMetricsPushedConditionToFalse should have comment or be unexported (golint)
    • Line 334: warning: exported function SetRepositoryMetricsPushedConditionToTrue should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_batch_types.go
    • Line 26: warning: exported const ResourceKindRestoreBatch should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported type RestoreBatch should be of the form "RestoreBatch ..." (with optional leading article) (golint)
    • Line 48: warning: exported type RestoreBatchSpec should have comment or be unexported (golint)
    • Line 72: warning: exported type RestoreBatchStatus should have comment or be unexported (golint)
    • Line 88: warning: comment on exported type RestoreTargetPhase should be of the form "RestoreTargetPhase ..." (with optional leading article) (golint)
    • Line 92: warning: exported const TargetRestorePending should have comment (or a comment on this block) or be unexported (golint)
    • Line 99: warning: exported type RestoreMemberStatus should have comment or be unexported (golint)
    • Line 118: warning: exported type RestoreBatchList should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/restic/output.go
    • Line 33: warning: exported const FileModeRWXAll should have comment or be unexported (golint)
    • Line 35: warning: exported type BackupOutput should have comment or be unexported (golint)
    • Line 40: warning: exported type RepositoryStats should have comment or be unexported (golint)
    • Line 51: warning: exported type RestoreOutput should have comment or be unexported (golint)
    • Line 82: warning: exported method RestoreOutput.WriteOutput should have comment or be unexported (golint)
    • Line 106: warning: exported function ReadBackupOutput should have comment or be unexported (golint)
    • Line 121: warning: exported function ReadRestoreOutput should have comment or be unexported (golint)
    • Line 225: warning: exported type BackupSummary should have comment or be unexported (golint)
    • Line 237: warning: exported type ForgetGroup should have comment or be unexported (golint)
    • Line 242: warning: exported type StatsContainer should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/util.go
    • Line 20: warning: exported const StashKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported const KindDeployment should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported const ResourcePluralDeployment should have comment (or a comment on this block) or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_blueprint_types.go
    • Line 27: warning: exported const ResourceKindBackupBlueprint should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: comment on exported type BackupBlueprint should be of the form "BackupBlueprint ..." (with optional leading article) (golint)
    • Line 48: warning: exported type BackupBlueprintSpec should have comment or be unexported (golint)
    • Line 78: warning: exported type BackupBlueprintList should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/util/backupsession.go
    • Line 35: warning: exported function CreateOrPatchBackupSession should have comment or be unexported (golint)
    • Line 56: warning: exported function PatchBackupSession should have comment or be unexported (golint)
    • Line 60: warning: exported function PatchBackupSessionObject should have comment or be unexported (golint)
    • Line 83: warning: exported function TryUpdateBackupSession should have comment or be unexported (golint)
    • Line 104: warning: exported function UpdateBackupSessionStatus should have comment or be unexported (golint)
    • Line 158: warning: exported function UpdateBackupSessionStatusForHost should have comment or be unexported (golint)
    • Line 172: warning: exported function UpsertHostForTarget should have comment or be unexported (golint)
    • Line 182: warning: exported function UpsertHost should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/restic/config.go
    • Line 33: warning: exported const DefaultOutputFileName should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type ResticWrapper should have comment or be unexported (golint)
    • Line 43: warning: exported type Command should have comment or be unexported (golint)
    • Line 70: warning: exported type DumpOptions should have comment or be unexported (golint)
    • Line 79: warning: exported type SetupOptions should have comment or be unexported (golint)
    • Line 94: warning: exported type MetricsOptions should have comment or be unexported (golint)
    • Line 102: warning: exported function NewResticWrapper should have comment or be unexported (golint)
    • Line 120: warning: exported method ResticWrapper.SetEnv should have comment or be unexported (golint)
    • Line 126: warning: exported method ResticWrapper.DumpEnv should have comment or be unexported (golint)
    • Line 149: warning: exported method ResticWrapper.HideCMD should have comment or be unexported (golint)
    • Line 155: warning: exported method ResticWrapper.GetRepo should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1beta1/function_types.go
    • Line 26: warning: exported const ResourceKindFunction should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: comment on exported type Function should be of the form "Function ..." (with optional leading article) (golint)
    • Line 45: warning: exported type FunctionSpec should have comment or be unexported (golint)
    • Line 111: warning: exported type FunctionList should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1alpha1/util/recovery.go
    • Line 36: warning: exported function CreateOrPatchRecovery should have comment or be unexported (golint)
    • Line 57: warning: exported function PatchRecovery should have comment or be unexported (golint)
    • Line 61: warning: exported function PatchRecoveryObject should have comment or be unexported (golint)
    • Line 84: warning: exported function TryUpdateRecovery should have comment or be unexported (golint)
    • Line 105: warning: exported function UpdateRecoveryStatus should have comment or be unexported (golint)
    • Line 159: warning: exported function SetRecoveryStats should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/restic/backup.go
    • Line 194: warning: exported method ResticWrapper.RepositoryAlreadyExist should have comment or be unexported (golint)
    • Line 198: warning: exported method ResticWrapper.InitializeRepository should have comment or be unexported (golint)
    • Line 202: warning: exported method ResticWrapper.ApplyRetentionPolicies should have comment or be unexported (golint)
    • Line 216: warning: exported method ResticWrapper.VerifyRepositoryIntegrity should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1alpha1/restic_types.go
    • Line 26: warning: exported const ResourceKindRestic should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported type Restic should be of the form "Restic ..." (with optional leading article) (golint)
    • Line 49: warning: exported type ResticSpec should have comment or be unexported (golint)
    • Line 74: warning: exported type ResticList should have comment or be unexported (golint)
    • Line 80: warning: exported type FileGroup should have comment or be unexported (golint)
    • Line 89: warning: comment on exported type BackupType should be of the form "BackupType ..." (with optional leading article) (golint)
    • Line 93: warning: exported const BackupOnline should have comment (or a comment on this block) or be unexported (golint)
    • Line 97: warning: comment on exported type RetentionStrategy should be of the form "RetentionStrategy ..." (with optional leading article) (golint)
    • Line 101: warning: exported const KeepLast should have comment (or a comment on this block) or be unexported (golint)
    • Line 110: warning: exported type RetentionPolicy should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_configuration_types.go
    • Line 31: warning: exported const ResourceKindBackupConfiguration should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported type BackupConfiguration should be of the form "BackupConfiguration ..." (with optional leading article) (golint)
    • Line 54: warning: exported type BackupConfigurationTemplateSpec should have comment or be unexported (golint)
    • Line 78: warning: exported type BackupConfigurationSpec should have comment or be unexported (golint)
    • Line 104: warning: comment on exported type BackupHooks should be of the form "BackupHooks ..." (with optional leading article) (golint)
    • Line 117: warning: exported type EmptyDirSettings should have comment or be unexported (golint)
    • Line 124: warning: comment on exported type Snapshotter should be of the form "Snapshotter ..." (with optional leading article) (golint)
    • Line 128: warning: exported const ResticSnapshotter should have comment (or a comment on this block) or be unexported (golint)
    • Line 132: warning: exported type BackupConfigurationStatus should have comment or be unexported (golint)
    • Line 144: warning: exported type BackupConfigurationList should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/invoker/restore_invoker.go
    • Line 45: warning: exported const EventSourceRestoreBatchController should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type RestoreTargetInfo should have comment or be unexported (golint)
    • Line 58: warning: exported type RestoreInvokerStatus should have comment or be unexported (golint)
    • Line 65: warning: exported type RestoreInvoker should have comment or be unexported (golint)
    • Line 92: warning: exported function ExtractRestoreInvokerInfo should have comment or be unexported (golint)
    • Line 617: warning: exported function TargetRestoreCompleted should have comment or be unexported (golint)
    • Line 640: warning: exported function TargetOfGroupKind should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/restic/metrics.go
    • Line 43: warning: exported const MetricsLabelDriver should have comment (or a comment on this block) or be unexported (golint)
    • Line 504: warning: comment on exported method MetricsOptions.SendBackupTargetMetrics should be of the form "SendBackupTargetMetrics ..." (golint)
    • Line 558: warning: comment on exported method MetricsOptions.SendBackupHostMetrics should be of the form "SendBackupHostMetrics ..." (golint)
    • /stash.appscode.dev/apimachinery/pkg/conditions/restore.go
    • Line 31: warning: exported function SetRestoreTargetFoundConditionToTrue should have comment or be unexported (golint)
    • Line 45: warning: exported function SetRestoreTargetFoundConditionToFalse should have comment or be unexported (golint)
    • Line 59: warning: exported function SetRestoreTargetFoundConditionToUnknown should have comment or be unexported (golint)
    • Line 74: warning: exported function SetRestoreJobCreatedConditionToTrue should have comment or be unexported (golint)
    • Line 83: warning: exported function SetRestoreJobCreatedConditionToFalse should have comment or be unexported (golint)
    • Line 92: warning: exported function SetInitContainerInjectedConditionToTrue should have comment or be unexported (golint)
    • Line 101: warning: exported function SetInitContainerInjectedConditionToFalse should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1beta1/types.go
    • Line 41: warning: exported type TaskRef should have comment or be unexported (golint)
    • Line 51: warning: exported type BackupTarget should have comment or be unexported (golint)
    • Line 80: warning: exported type RestoreTarget should have comment or be unexported (golint)
    • Line 105: warning: exported type Rule should have comment or be unexported (golint)
    • Line 133: warning: exported type TargetRef should have comment or be unexported (golint)
    • Line 139: warning: exported type ExecutionOrder should have comment or be unexported (golint)
    • Line 142: warning: exported const Parallel should have comment (or a comment on this block) or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/conditions/backup.go
    • Line 31: warning: exported function SetBackupTargetFoundConditionToUnknown should have comment or be unexported (golint)
    • Line 45: warning: exported function SetBackupTargetFoundConditionToFalse should have comment or be unexported (golint)
    • Line 59: warning: exported function SetBackupTargetFoundConditionToTrue should have comment or be unexported (golint)
    • Line 72: warning: exported function SetCronJobCreatedConditionToFalse should have comment or be unexported (golint)
    • Line 81: warning: exported function SetCronJobCreatedConditionToTrue should have comment or be unexported (golint)
    • Line 90: warning: exported function SetSidecarInjectedConditionToTrue should have comment or be unexported (golint)
    • Line 103: warning: exported function SetSidecarInjectedConditionToFalse should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/conditions/hooks.go
    • Line 35: warning: exported function SetGlobalPreBackupHookSucceededConditionToFalse should have comment or be unexported (golint)
    • Line 54: warning: exported function SetGlobalPreBackupHookSucceededConditionToTrue should have comment or be unexported (golint)
    • Line 73: warning: exported function SetGlobalPostBackupHookSucceededConditionToFalse should have comment or be unexported (golint)
    • Line 92: warning: exported function SetGlobalPostBackupHookSucceededConditionToTrue should have comment or be unexported (golint)
    • Line 111: warning: exported function SetGlobalPreRestoreHookSucceededConditionToFalse should have comment or be unexported (golint)
    • Line 120: warning: exported function SetGlobalPreRestoreHookSucceededConditionToTrue should have comment or be unexported (golint)
    • Line 129: warning: exported function SetGlobalPostRestoreHookSucceededConditionToFalse should have comment or be unexported (golint)
    • Line 138: warning: exported function SetGlobalPostRestoreHookSucceededConditionToTrue should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1beta1/backup_batch_types.go
    • Line 29: warning: exported const ResourceKindBackupBatch should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: comment on exported type BackupBatch should be of the form "BackupBatch ..." (with optional leading article) (golint)
    • Line 51: warning: exported type BackupBatchSpec should have comment or be unexported (golint)
    • Line 92: warning: exported type BackupBatchStatus should have comment or be unexported (golint)
    • Line 105: warning: exported type MemberConditions should have comment or be unexported (golint)
    • Line 115: warning: exported type BackupBatchList should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/invoker/backup_invoker.go
    • Line 39: warning: exported type BackupTargetInfo should have comment or be unexported (golint)
    • Line 48: warning: exported type BackupInvoker should have comment or be unexported (golint)
    • Line 75: warning: exported function ExtractBackupInvokerInfo should have comment or be unexported (golint)
    • Line 317: warning: exported function TargetMatched should have comment or be unexported (golint)
    • Line 348: warning: exported function TargetBackupInitiated should have comment or be unexported (golint)
    • Line 359: warning: exported function TargetBackupCompleted should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/pkg/restic/setup.go
    • Line 30: warning: exported const RESTIC_REPOSITORY should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: comment on exported const ST_AUTH should be of the form "ST_AUTH ..." (golint)
    • Line 55: warning: comment on exported const OS_AUTH_URL should be of the form "OS_AUTH_URL ..." (golint)
    • Line 62: warning: comment on exported const OS_USER_DOMAIN_NAME should be of the form "OS_USER_DOMAIN_NAME ..." (golint)
    • Line 66: warning: comment on exported const OS_APPLICATION_CREDENTIAL_ID should be of the form "OS_APPLICATION_CREDENTIAL_ID ..." (golint)
    • Line 69: warning: comment on exported const OS_APPLICATION_CREDENTIAL_NAME should be of the form "OS_APPLICATION_CREDENTIAL_NAME ..." (golint)
    • Line 71: warning: comment on exported const OS_STORAGE_URL should be of the form "OS_STORAGE_URL ..." (golint)
    • Line 75: warning: comment on exported const CA_CERT_DATA should be of the form "CA_CERT_DATA ..." (golint)
    • Line 87: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • /stash.appscode.dev/apimachinery/apis/repositories/v1alpha1/types.go
    • Line 24: warning: exported const ResourceKindSnapshot should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: comment on exported type Snapshot should be of the form "Snapshot ..." (with optional leading article) (golint)
    • Line 41: warning: exported type SnapshotStatus should have comment or be unexported (golint)
    • Line 54: warning: exported type SnapshotList should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1alpha1/workload.go
    • Line 25: warning: exported const KindDeployment should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported method LocalTypedReference.Canonicalize should have comment or be unexported (golint)
    • Line 73: warning: exported method LocalTypedReference.GetRepositoryCRDName should have comment or be unexported (golint)
    • Line 86: warning: exported method LocalTypedReference.HostnamePrefix should have comment or be unexported (golint)
    • Line 112: warning: exported function StatefulSetPodName should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1alpha1/recovery_types.go
    • Line 26: warning: exported const ResourceKindRecovery should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported type Recovery should be of the form "Recovery ..." (with optional leading article) (golint)
    • Line 50: warning: exported type RecoverySpec should have comment or be unexported (golint)
    • Line 67: warning: exported type RecoveryList should have comment or be unexported (golint)
    • Line 73: warning: comment on exported type RecoveryPhase should be of the form "RecoveryPhase ..." (with optional leading article) (golint)
    • Line 77: warning: exported const RecoveryPending should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: exported type RecoveryStatus should have comment or be unexported (golint)
    • Line 93: warning: exported type RestoreStats should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_types.go
    • Line 25: warning: exported const ResourceKindRepository should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported type Repository should be of the form "Repository ..." (with optional leading article) (golint)
    • Line 49: warning: exported type RepositorySpec should have comment or be unexported (golint)
    • Line 57: warning: exported type RepositoryStatus should have comment or be unexported (golint)
    • Line 85: warning: exported type RepositoryList should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1beta1/task_types.go
    • Line 25: warning: exported const ResourceKindTask should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported type Task should be of the form "Task ..." (with optional leading article) (golint)
    • Line 44: warning: exported type TaskSpec should have comment or be unexported (golint)
    • Line 51: warning: exported type FunctionRef should have comment or be unexported (golint)
    • Line 61: warning: exported type TaskList should have comment or be unexported (golint)
    • /stash.appscode.dev/apimachinery/apis/stash/v1beta1/restore_session_types.go
    • Line 28: warning: exported const ResourceKindRestoreSession should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: comment on exported type RestoreSession should be of the form "RestoreSession ..." (with optional leading article) (golint)
    • Line 50: warning: exported type RestoreSessionSpec should have comment or be unexported (golint)
    • Line 67: warning: exported type RestoreTargetSpec should have comment or be unexported (golint)
    • Line 91: warning: comment on exported type RestoreHooks should be of the form "RestoreHooks ..." (with optional leading article) (golint)
    • Line 106: warning: exported type RestoreSessionList should have comment or be unexported (golint)
    • Line 112: warning: comment on exported type RestorePhase should be of the form "RestorePhase ..." (with optional leading article) (golint)
    • Line 116: warning: exported const RestorePending should have comment (or a comment on this block) or be unexported (golint)
    • Line 123: warning: comment on exported type HostRestorePhase should be of the form "HostRestorePhase ..." (with optional leading article) (golint)
    • Line 127: warning: exported const HostRestoreSucceeded should have comment (or a comment on this block) or be unexported (golint)
    • Line 132: warning: exported type RestoreSessionStatus should have comment or be unexported (golint)
    • Line 151: warning: exported type HostRestoreStats should have comment or be unexported (golint)

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!


misspell99%

Misspell Finds commonly misspelled English words