Preparing report...

Report for github.com/rancher/longhorn-engine

A    Great!    Found 64 issues across 64 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!


gocyclo89%

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.


golint14%

Golint is a linter for Go source code.

    • longhorn-engine/pkg/types/resource.go
    • Line 3: warning: exported type ReplicaInfo should have comment or be unexported (golint)
    • Line 21: warning: exported type DiskInfo should have comment or be unexported (golint)
    • Line 32: warning: exported type PrepareRemoveAction should have comment or be unexported (golint)
    • Line 38: warning: exported type VolumeInfo should have comment or be unexported (golint)
    • Line 50: warning: exported type ControllerReplicaInfo should have comment or be unexported (golint)
    • Line 55: warning: exported type SyncFileInfo should have comment or be unexported (golint)
    • longhorn-engine/pkg/qcow/libqcow.go
    • Line 15: warning: exported type Qcow should have comment or be unexported (golint)
    • Line 28: warning: exported function Open should have comment or be unexported (golint)
    • Line 46: warning: exported method Qcow.WriteAt should have comment or be unexported (golint)
    • Line 50: warning: exported method Qcow.ReadAt should have comment or be unexported (golint)
    • Line 63: warning: exported method Qcow.Close should have comment or be unexported (golint)
    • Line 71: warning: exported method Qcow.Size should have comment or be unexported (golint)
    • Line 80: warning: exported method Qcow.Fd should have comment or be unexported (golint)
    • longhorn-engine/app/cmd/add_replica.go
    • Line 14: warning: exported function AddReplicaCmd should have comment or be unexported (golint)
    • Line 47: warning: exported function StartWithReplicasCmd should have comment or be unexported (golint)
    • Line 70: warning: exported function RebuildStatusCmd should have comment or be unexported (golint)
    • Line 98: warning: exported function VerifyRebuildReplicaCmd should have comment or be unexported (golint)
    • longhorn-engine/app/cmd/snapshot.go
    • Line 19: warning: exported function SnapshotCmd should have comment or be unexported (golint)
    • Line 40: warning: exported function SnapshotCreateCmd should have comment or be unexported (golint)
    • Line 57: warning: exported function SnapshotRevertCmd should have comment or be unexported (golint)
    • Line 68: warning: exported function SnapshotRmCmd should have comment or be unexported (golint)
    • Line 79: warning: exported function SnapshotPurgeCmd should have comment or be unexported (golint)
    • Line 96: warning: exported function SnapshotPurgeStatusCommand should have comment or be unexported (golint)
    • Line 107: warning: exported function SnapshotLsCmd should have comment or be unexported (golint)
    • Line 118: warning: exported function SnapshotInfoCmd should have comment or be unexported (golint)
    • longhorn-engine/pkg/controller/client/controller_client.go
    • Line 18: warning: exported type ControllerClient should have comment or be unexported (golint)
    • Line 23: warning: exported const GRPCServiceTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported function NewControllerClient should have comment or be unexported (golint)
    • Line 32: warning: exported function GetVolumeInfo should have comment or be unexported (golint)
    • Line 46: warning: exported function GetControllerReplicaInfo should have comment or be unexported (golint)
    • Line 53: warning: exported function GetControllerReplica should have comment or be unexported (golint)
    • Line 62: warning: exported function GetSyncFileInfoList should have comment or be unexported (golint)
    • Line 70: warning: exported function GetSyncFileInfo should have comment or be unexported (golint)
    • Line 78: warning: exported method ControllerClient.VolumeGet should have comment or be unexported (golint)
    • Line 97: warning: exported method ControllerClient.VolumeStart should have comment or be unexported (golint)
    • Line 117: warning: exported method ControllerClient.VolumeSnapshot should have comment or be unexported (golint)
    • Line 139: warning: exported method ControllerClient.VolumeRevert should have comment or be unexported (golint)
    • Line 159: warning: exported method ControllerClient.VolumeExpand should have comment or be unexported (golint)
    • Line 179: warning: exported method ControllerClient.VolumeFrontendStart should have comment or be unexported (golint)
    • Line 199: warning: exported method ControllerClient.VolumeFrontendShutdown should have comment or be unexported (golint)
    • Line 217: warning: exported method ControllerClient.ReplicaList should have comment or be unexported (golint)
    • Line 241: warning: exported method ControllerClient.ReplicaGet should have comment or be unexported (golint)
    • Line 262: warning: exported method ControllerClient.ReplicaCreate should have comment or be unexported (golint)
    • Line 285: warning: exported method ControllerClient.ReplicaDelete should have comment or be unexported (golint)
    • Line 305: warning: exported method ControllerClient.ReplicaUpdate should have comment or be unexported (golint)
    • Line 324: warning: exported method ControllerClient.ReplicaPrepareRebuild should have comment or be unexported (golint)
    • Line 345: warning: exported method ControllerClient.ReplicaVerifyRebuild should have comment or be unexported (golint)
    • Line 365: warning: exported method ControllerClient.JournalList should have comment or be unexported (golint)
    • Line 385: warning: exported method ControllerClient.VersionDetailGet should have comment or be unexported (golint)
    • Line 415: warning: exported method ControllerClient.Check should have comment or be unexported (golint)
    • Line 440: warning: exported method ControllerClient.BackupReplicaMappingCreate should have comment or be unexported (golint)
    • Line 461: warning: exported method ControllerClient.BackupReplicaMappingGet should have comment or be unexported (golint)
    • Line 480: warning: exported method ControllerClient.BackupReplicaMappingDelete should have comment or be unexported (golint)
    • longhorn-engine/pkg/frontend/socket/frontend.go
    • Line 19: warning: exported const SocketDirectory should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 27: warning: exported type Socket should have comment or be unexported (golint)
    • Line 37: warning: exported method Socket.FrontendName should have comment or be unexported (golint)
    • Line 41: warning: exported method Socket.Init should have comment or be unexported (golint)
    • Line 49: warning: exported method Socket.Startup should have comment or be unexported (golint)
    • Line 59: warning: exported method Socket.Shutdown should have comment or be unexported (golint)
    • Line 72: warning: exported method Socket.State should have comment or be unexported (golint)
    • Line 79: warning: exported method Socket.Endpoint should have comment or be unexported (golint)
    • Line 86: warning: exported method Socket.GetSocketPath should have comment or be unexported (golint)
    • Line 139: warning: exported type DataProcessorWrapper should have comment or be unexported (golint)
    • Line 143: warning: exported function NewDataProcessorWrapper should have comment or be unexported (golint)
    • Line 149: warning: exported method DataProcessorWrapper.ReadAt should have comment or be unexported (golint)
    • Line 153: warning: exported method DataProcessorWrapper.WriteAt should have comment or be unexported (golint)
    • Line 157: warning: exported method DataProcessorWrapper.PingResponse should have comment or be unexported (golint)
    • Line 161: warning: exported method Socket.Upgrade should have comment or be unexported (golint)
    • Line 165: warning: exported method Socket.Expand should have comment or be unexported (golint)
    • longhorn-engine/pkg/sync/backup.go
    • Line 17: warning: exported type BackupCreateInfo should have comment or be unexported (golint)
    • Line 22: warning: exported type BackupStatusInfo should have comment or be unexported (golint)
    • Line 31: warning: exported type RestoreStatus should have comment or be unexported (golint)
    • Line 42: warning: exported method Task.CreateBackup should have comment or be unexported (golint)
    • Line 116: warning: exported method Task.FetchBackupStatus should have comment or be unexported (golint)
    • Line 142: warning: exported method Task.RestoreBackup should have comment or be unexported (golint)
    • Line 281: warning: exported method Task.Reset should have comment or be unexported (golint)
    • Line 316: warning: exported method Task.RestoreStatus should have comment or be unexported (golint)
    • longhorn-engine/pkg/frontend/rest/model.go
    • Line 10: warning: exported type Volume should have comment or be unexported (golint)
    • Line 15: warning: exported type ReadInput should have comment or be unexported (golint)
    • Line 21: warning: exported type ReadOutput should have comment or be unexported (golint)
    • Line 26: warning: exported type WriteInput should have comment or be unexported (golint)
    • Line 33: warning: exported type WriteOutput should have comment or be unexported (golint)
    • Line 37: warning: exported function NewVolume should have comment or be unexported (golint)
    • Line 52: warning: exported function DecodeID should have comment or be unexported (golint)
    • Line 60: warning: exported function EncodeID should have comment or be unexported (golint)
    • Line 63: warning: exported function DecodeData should have comment or be unexported (golint)
    • Line 71: warning: exported function EncodeData should have comment or be unexported (golint)
    • Line 75: warning: exported function NewSchema should have comment or be unexported (golint)
    • Line 101: warning: exported type Server should have comment or be unexported (golint)
    • Line 105: warning: exported function NewServer should have comment or be unexported (golint)
    • longhorn-engine/pkg/frontend/rest/frontend.go
    • Line 22: warning: exported type Device should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported method Device.FrontendName should have comment or be unexported (golint)
    • Line 39: warning: exported method Device.Init should have comment or be unexported (golint)
    • Line 46: warning: exported method Device.Startup should have comment or be unexported (golint)
    • Line 56: warning: exported method Device.Shutdown should have comment or be unexported (golint)
    • Line 80: warning: exported method Device.State should have comment or be unexported (golint)
    • Line 87: warning: exported method Device.Endpoint should have comment or be unexported (golint)
    • Line 94: warning: exported method Device.Upgrade should have comment or be unexported (golint)
    • Line 98: warning: exported method Device.Expand should have comment or be unexported (golint)
    • longhorn-engine/pkg/replica/revision_counter.go
    • Line 93: warning: exported method Replica.IsRevCounterDisabled should have comment or be unexported (golint)
    • Line 97: warning: exported method Replica.GetRevisionCounter should have comment or be unexported (golint)
    • Line 111: warning: exported method Replica.SetRevisionCounter should have comment or be unexported (golint)
    • longhorn-engine/pkg/util/util.go
    • Line 30: warning: exported var MaximumVolumeNameSize should have comment or be unexported (golint)
    • Line 39: warning: exported const BlockSizeLinux should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported function ParseAddresses should have comment or be unexported (golint)
    • Line 56: warning: exported function GetGRPCAddress should have comment or be unexported (golint)
    • Line 72: warning: exported function GetPortFromAddress should have comment or be unexported (golint)
    • Line 90: warning: exported function UUID should have comment or be unexported (golint)
    • Line 94: warning: exported function Filter should have comment or be unexported (golint)
    • Line 104: warning: exported function Contains should have comment or be unexported (golint)
    • Line 119: warning: exported function FilteredLoggingHandler should have comment or be unexported (golint)
    • Line 138: warning: exported function DuplicateDevice should have comment or be unexported (golint)
    • Line 163: warning: exported function RemoveDevice should have comment or be unexported (golint)
    • Line 191: warning: exported function ValidVolumeName should have comment or be unexported (golint)
    • Line 198: warning: exported function Volume2ISCSIName should have comment or be unexported (golint)
    • Line 202: warning: exported function Now should have comment or be unexported (golint)
    • Line 206: warning: exported function GetFileActualSize should have comment or be unexported (golint)
    • Line 215: warning: exported function GetHeadFileModifyTimeAndSize should have comment or be unexported (golint)
    • Line 226: warning: exported function ParseLabels should have comment or be unexported (golint)
    • Line 248: warning: exported function UnescapeURL should have comment or be unexported (golint)
    • Line 257: warning: exported function CheckBackupType should have comment or be unexported (golint)
    • Line 266: warning: exported function GetBackupCredential should have comment or be unexported (golint)
    • Line 296: warning: exported function ResolveBackingFilepath should have comment or be unexported (golint)
    • Line 325: warning: exported function GetInitiatorNS should have comment or be unexported (golint)
    • Line 329: warning: exported function GetFunctionName should have comment or be unexported (golint)
    • longhorn-engine/pkg/backend/file/file.go
    • Line 12: warning: exported function New should have comment or be unexported (golint)
    • Line 16: warning: exported type Factory should have comment or be unexported (golint)
    • Line 19: warning: exported type Wrapper should have comment or be unexported (golint)
    • Line 23: warning: exported method Wrapper.Close should have comment or be unexported (golint)
    • Line 28: warning: exported method Wrapper.Snapshot should have comment or be unexported (golint)
    • Line 32: warning: exported method Wrapper.Expand should have comment or be unexported (golint)
    • Line 62: warning: exported method Wrapper.Size should have comment or be unexported (golint)
    • Line 70: warning: exported method Wrapper.IsRevisionCounterDisabled should have comment or be unexported (golint)
    • Line 74: warning: exported method Wrapper.GetLastModifyTime should have comment or be unexported (golint)
    • Line 93: warning: exported method Wrapper.SectorSize should have comment or be unexported (golint)
    • Line 97: warning: exported method Wrapper.RemainSnapshots should have comment or be unexported (golint)
    • Line 101: warning: exported method Wrapper.GetRevisionCounter should have comment or be unexported (golint)
    • Line 105: warning: exported method Wrapper.SetRevisionCounter should have comment or be unexported (golint)
    • Line 109: warning: exported method Factory.Create should have comment or be unexported (golint)
    • Line 120: warning: exported method Wrapper.GetMonitorChannel should have comment or be unexported (golint)
    • Line 124: warning: exported method Wrapper.PingResponse should have comment or be unexported (golint)
    • Line 128: warning: exported method Wrapper.StopMonitoring should have comment or be unexported (golint)
    • longhorn-engine/pkg/backup/main.go
    • Line 20: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 24: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • Line 28: warning: exported function ResponseLogAndError should have comment or be unexported (golint)
    • Line 55: warning: exported function RequiredMissingError should have comment or be unexported (golint)
    • Line 59: warning: exported function DoBackupCreate should have comment or be unexported (golint)
    • Line 138: warning: exported function DoBackupRestore should have comment or be unexported (golint)
    • Line 155: warning: exported function DoBackupRestoreIncrementally should have comment or be unexported (golint)
    • Line 174: warning: exported function CreateNewSnapshotMetafile should have comment or be unexported (golint)
    • longhorn-engine/pkg/dataconn/server.go
    • Line 12: warning: exported type Server should have comment or be unexported (golint)
    • Line 19: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 28: warning: exported method Server.Handle should have comment or be unexported (golint)
    • Line 75: warning: exported method Server.Stop should have comment or be unexported (golint)
    • longhorn-engine/pkg/replica/client/client.go
    • Line 19: warning: exported const GRPCServiceCommonTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type ReplicaClient should have comment or be unexported (golint)
    • Line 29: warning: exported function NewReplicaClient should have comment or be unexported (golint)
    • Line 61: warning: exported function GetDiskInfo should have comment or be unexported (golint)
    • Line 80: warning: exported function GetReplicaInfo should have comment or be unexported (golint)
    • Line 122: warning: exported method ReplicaClient.GetReplica should have comment or be unexported (golint)
    • Line 141: warning: exported method ReplicaClient.OpenReplica should have comment or be unexported (golint)
    • Line 159: warning: exported method ReplicaClient.Close should have comment or be unexported (golint)
    • Line 177: warning: exported method ReplicaClient.ReloadReplica should have comment or be unexported (golint)
    • Line 196: warning: exported method ReplicaClient.ExpandReplica should have comment or be unexported (golint)
    • Line 221: warning: exported method ReplicaClient.Revert should have comment or be unexported (golint)
    • Line 242: warning: exported method ReplicaClient.RemoveDisk should have comment or be unexported (golint)
    • Line 263: warning: exported method ReplicaClient.ReplaceDisk should have comment or be unexported (golint)
    • Line 284: warning: exported method ReplicaClient.PrepareRemoveDisk should have comment or be unexported (golint)
    • Line 315: warning: exported method ReplicaClient.MarkDiskAsRemoved should have comment or be unexported (golint)
    • Line 335: warning: exported method ReplicaClient.SetRebuilding should have comment or be unexported (golint)
    • Line 355: warning: exported method ReplicaClient.RemoveFile should have comment or be unexported (golint)
    • Line 375: warning: exported method ReplicaClient.RenameFile should have comment or be unexported (golint)
    • Line 396: warning: exported method ReplicaClient.SendFile should have comment or be unexported (golint)
    • Line 418: warning: exported method ReplicaClient.LaunchReceiver should have comment or be unexported (golint)
    • Line 439: warning: exported method ReplicaClient.SyncFiles should have comment or be unexported (golint)
    • Line 461: warning: exported method ReplicaClient.CreateBackup should have comment or be unexported (golint)
    • Line 488: warning: exported method ReplicaClient.BackupStatus should have comment or be unexported (golint)
    • Line 510: warning: exported method ReplicaClient.RmBackup should have comment or be unexported (golint)
    • Line 530: warning: exported method ReplicaClient.RestoreBackup should have comment or be unexported (golint)
    • Line 552: warning: exported method ReplicaClient.Reset should have comment or be unexported (golint)
    • Line 570: warning: exported method ReplicaClient.RestoreStatus should have comment or be unexported (golint)
    • Line 589: warning: exported method ReplicaClient.SnapshotPurge should have comment or be unexported (golint)
    • Line 607: warning: exported method ReplicaClient.SnapshotPurgeStatus should have comment or be unexported (golint)
    • Line 626: warning: exported method ReplicaClient.ReplicaRebuildStatus should have comment or be unexported (golint)
    • longhorn-engine/pkg/replica/replica.go
    • Line 54: warning: exported type Replica should have comment or be unexported (golint)
    • Line 73: warning: exported type Info should have comment or be unexported (golint)
    • Line 94: warning: exported type BackingFile should have comment or be unexported (golint)
    • Line 101: warning: exported type PrepareRemoveAction should have comment or be unexported (golint)
    • Line 107: warning: exported type DiskInfo should have comment or be unexported (golint)
    • Line 119: warning: exported const OpCoalesce should have comment (or a comment on this block) or be unexported (golint)
    • Line 124: warning: exported function ReadInfo should have comment or be unexported (golint)
    • Line 130: warning: exported function New should have comment or be unexported (golint)
    • Line 134: warning: exported function NewReadOnly should have comment or be unexported (golint)
    • Line 220: warning: exported function GenerateSnapshotDiskName should have comment or be unexported (golint)
    • Line 224: warning: exported function GenerateSnapshotDiskMetaName should have comment or be unexported (golint)
    • Line 228: warning: exported function GenerateSnapTempFileName should have comment or be unexported (golint)
    • Line 232: warning: exported function GetSnapshotNameFromTempFileName should have comment or be unexported (golint)
    • Line 239: warning: exported function GetSnapshotNameFromDiskName should have comment or be unexported (golint)
    • Line 248: warning: exported function GenerateDeltaFileName should have comment or be unexported (golint)
    • Line 252: warning: exported function GenerateExpansionSnapshotName should have comment or be unexported (golint)
    • Line 256: warning: exported function GenerateExpansionSnapshotLabels should have comment or be unexported (golint)
    • Line 262: warning: exported function IsHeadDisk should have comment or be unexported (golint)
    • Line 307: warning: exported method Replica.SetRebuilding should have comment or be unexported (golint)
    • Line 316: warning: exported method Replica.Reload should have comment or be unexported (golint)
    • Line 337: warning: exported method Replica.RemoveDiffDisk should have comment or be unexported (golint)
    • Line 356: warning: exported method Replica.MarkDiskAsRemoved should have comment or be unexported (golint)
    • Line 401: warning: exported method Replica.ReplaceDisk should have comment or be unexported (golint)
    • Line 489: warning: exported method Replica.PrepareRemoveDisk should have comment or be unexported (golint)
    • Line 563: warning: exported method Replica.Info should have comment or be unexported (golint)
    • Line 567: warning: exported method Replica.DisplayChain should have comment or be unexported (golint)
    • Line 588: warning: exported method Replica.Chain should have comment or be unexported (golint)
    • Line 1014: warning: exported method Replica.Close should have comment or be unexported (golint)
    • Line 1021: warning: exported method Replica.Delete should have comment or be unexported (golint)
    • Line 1036: warning: exported method Replica.Snapshot should have comment or be unexported (golint)
    • Line 1043: warning: exported method Replica.Revert should have comment or be unexported (golint)
    • Line 1050: warning: exported method Replica.Expand should have comment or be unexported (golint)
    • Line 1072: warning: exported method Replica.WriteAt should have comment or be unexported (golint)
    • Line 1094: warning: exported method Replica.ReadAt should have comment or be unexported (golint)
    • Line 1101: warning: exported method Replica.ListDisks should have comment or be unexported (golint)
    • Line 1128: warning: exported method Replica.GetRemainSnapshotCounts should have comment or be unexported (golint)
    • Line 1147: warning: exported method Replica.GetReplicaStat should have comment or be unexported (golint)
    • longhorn-engine/pkg/controller/rpc/server.go
    • Line 22: warning: exported const GRPCRetryCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type ControllerServer should have comment or be unexported (golint)
    • Line 29: warning: exported type ControllerHealthCheckServer should have comment or be unexported (golint)
    • Line 33: warning: exported function NewControllerServer should have comment or be unexported (golint)
    • Line 39: warning: exported function NewControllerHealthCheckServer should have comment or be unexported (golint)
    • Line 45: warning: exported function GetControllerGRPCServer should have comment or be unexported (golint)
    • Line 116: warning: exported method ControllerServer.VolumeGet should have comment or be unexported (golint)
    • Line 120: warning: exported method ControllerServer.VolumeStart should have comment or be unexported (golint)
    • Line 127: warning: exported method ControllerServer.VolumeShutdown should have comment or be unexported (golint)
    • Line 134: warning: exported method ControllerServer.VolumeSnapshot should have comment or be unexported (golint)
    • Line 145: warning: exported method ControllerServer.VolumeRevert should have comment or be unexported (golint)
    • Line 153: warning: exported method ControllerServer.VolumeExpand should have comment or be unexported (golint)
    • Line 160: warning: exported method ControllerServer.VolumeFrontendStart should have comment or be unexported (golint)
    • Line 168: warning: exported method ControllerServer.VolumeFrontendShutdown should have comment or be unexported (golint)
    • Line 176: warning: exported method ControllerServer.ReplicaList should have comment or be unexported (golint)
    • Line 182: warning: exported method ControllerServer.ReplicaGet should have comment or be unexported (golint)
    • Line 186: warning: exported method ControllerServer.ControllerReplicaCreate should have comment or be unexported (golint)
    • Line 194: warning: exported method ControllerServer.ReplicaDelete should have comment or be unexported (golint)
    • Line 202: warning: exported method ControllerServer.ReplicaUpdate should have comment or be unexported (golint)
    • Line 210: warning: exported method ControllerServer.ReplicaPrepareRebuild should have comment or be unexported (golint)
    • Line 222: warning: exported method ControllerServer.ReplicaVerifyRebuild should have comment or be unexported (golint)
    • Line 230: warning: exported method ControllerServer.JournalList should have comment or be unexported (golint)
    • Line 236: warning: exported method ControllerServer.VersionDetailGet should have comment or be unexported (golint)
    • Line 253: warning: exported method ControllerServer.MetricGet should have comment or be unexported (golint)
    • Line 287: warning: exported method ControllerHealthCheckServer.Check should have comment or be unexported (golint)
    • Line 299: warning: exported method ControllerHealthCheckServer.Watch should have comment or be unexported (golint)
    • Line 321: warning: exported method ControllerServer.BackupReplicaMappingCreate should have comment or be unexported (golint)
    • Line 330: warning: exported method ControllerServer.BackupReplicaMappingGet should have comment or be unexported (golint)
    • Line 336: warning: exported method ControllerServer.BackupReplicaMappingDelete should have comment or be unexported (golint)
    • longhorn-engine/pkg/replica/extents.go
    • Line 9: warning: exported type UsedGenerator should have comment or be unexported (golint)
    • Line 22: warning: exported method UsedGenerator.Err should have comment or be unexported (golint)
    • Line 26: warning: exported method UsedGenerator.Generate should have comment or be unexported (golint)
    • longhorn-engine/pkg/replica/rest/model.go
    • Line 12: warning: exported type Replica should have comment or be unexported (golint)
    • Line 29: warning: exported function NewReplica should have comment or be unexported (golint)
    • Line 78: warning: exported function NewSchema should have comment or be unexported (golint)
    • Line 92: warning: exported type Server should have comment or be unexported (golint)
    • Line 96: warning: exported function NewServer should have comment or be unexported (golint)
    • longhorn-engine/pkg/controller/control.go
    • Line 22: warning: exported type Controller should have comment or be unexported (golint)
    • Line 62: warning: exported function NewController should have comment or be unexported (golint)
    • Line 82: warning: exported method Controller.StartGRPCServer should have comment or be unexported (golint)
    • Line 118: warning: exported method Controller.WaitForShutdown should have comment or be unexported (golint)
    • Line 123: warning: exported method Controller.AddReplica should have comment or be unexported (golint)
    • Line 219: warning: exported method Controller.Expand should have comment or be unexported (golint)
    • Line 325: warning: exported method Controller.IsExpanding should have comment or be unexported (golint)
    • Line 331: warning: exported method Controller.GetExpansionErrorInfo should have comment or be unexported (golint)
    • Line 385: warning: exported method Controller.RemoveReplica should have comment or be unexported (golint)
    • Line 406: warning: exported method Controller.ListReplicas should have comment or be unexported (golint)
    • Line 410: warning: exported method Controller.SetReplicaMode should have comment or be unexported (golint)
    • Line 464: warning: exported method Controller.StartFrontend should have comment or be unexported (golint)
    • Line 604: warning: exported method Controller.Start should have comment or be unexported (golint)
    • Line 705: warning: exported method Controller.WriteAt should have comment or be unexported (golint)
    • Line 723: warning: exported method Controller.ReadAt should have comment or be unexported (golint)
    • Line 775: warning: exported method Controller.Close should have comment or be unexported (golint)
    • Line 790: warning: exported method Controller.ShutdownFrontend should have comment or be unexported (golint)
    • Line 807: warning: exported method Controller.Shutdown should have comment or be unexported (golint)
    • Line 828: warning: exported method Controller.Size should have comment or be unexported (golint)
    • Line 848: warning: exported method Controller.Endpoint should have comment or be unexported (golint)
    • Line 855: warning: exported method Controller.Frontend should have comment or be unexported (golint)
    • Line 862: warning: exported method Controller.FrontendState should have comment or be unexported (golint)
    • Line 892: warning: exported method Controller.GetLatestMetics should have comment or be unexported (golint)
    • Line 896: warning: exported method Controller.BackupReplicaMappingCreate should have comment or be unexported (golint)
    • Line 903: warning: exported method Controller.BackupReplicaMappingGet should have comment or be unexported (golint)
    • Line 913: warning: exported method Controller.BackupReplicaMappingDelete should have comment or be unexported (golint)
    • longhorn-engine/pkg/replica/rpc/server.go
    • Line 18: warning: exported type ReplicaServer should have comment or be unexported (golint)
    • Line 22: warning: exported type ReplicaHealthCheckServer should have comment or be unexported (golint)
    • Line 26: warning: exported function NewReplicaServer should have comment or be unexported (golint)
    • Line 32: warning: exported function NewReplicaHealthCheckServer should have comment or be unexported (golint)
    • Line 91: warning: exported method ReplicaServer.ReplicaCreate should have comment or be unexported (golint)
    • Line 108: warning: exported method ReplicaServer.ReplicaDelete should have comment or be unexported (golint)
    • Line 112: warning: exported method ReplicaServer.ReplicaGet should have comment or be unexported (golint)
    • Line 116: warning: exported method ReplicaServer.ReplicaOpen should have comment or be unexported (golint)
    • Line 124: warning: exported method ReplicaServer.ReplicaClose should have comment or be unexported (golint)
    • Line 132: warning: exported method ReplicaServer.ReplicaReload should have comment or be unexported (golint)
    • Line 140: warning: exported method ReplicaServer.ReplicaRevert should have comment or be unexported (golint)
    • Line 155: warning: exported method ReplicaServer.ReplicaSnapshot should have comment or be unexported (golint)
    • Line 170: warning: exported method ReplicaServer.ReplicaExpand should have comment or be unexported (golint)
    • Line 183: warning: exported method ReplicaServer.DiskRemove should have comment or be unexported (golint)
    • Line 191: warning: exported method ReplicaServer.DiskReplace should have comment or be unexported (golint)
    • Line 199: warning: exported method ReplicaServer.DiskPrepareRemove should have comment or be unexported (golint)
    • Line 216: warning: exported method ReplicaServer.DiskMarkAsRemoved should have comment or be unexported (golint)
    • Line 224: warning: exported method ReplicaServer.RebuildingSet should have comment or be unexported (golint)
    • Line 232: warning: exported method ReplicaServer.RevisionCounterSet should have comment or be unexported (golint)
    • Line 239: warning: exported method ReplicaHealthCheckServer.Check should have comment or be unexported (golint)
    • Line 251: warning: exported method ReplicaHealthCheckServer.Watch should have comment or be unexported (golint)
    • longhorn-engine/version.go
    • Line 14: warning: exported function VersionCmd should have comment or be unexported (golint)
    • Line 30: warning: exported type VersionOutput should have comment or be unexported (golint)
    • longhorn-engine/app/cmd/backup.go
    • Line 19: warning: exported function BackupCmd should have comment or be unexported (golint)
    • Line 36: warning: exported function BackupCreateCmd should have comment or be unexported (golint)
    • Line 66: warning: exported function BackupStatusCmd should have comment or be unexported (golint)
    • Line 216: warning: exported function BackupRestoreCmd should have comment or be unexported (golint)
    • Line 239: warning: exported function RestoreStatusCmd should have comment or be unexported (golint)
    • longhorn-engine/pkg/types/types.go
    • Line 10: warning: exported const WO should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type ReaderWriterAt should have comment or be unexported (golint)
    • Line 44: warning: exported type DiffDisk should have comment or be unexported (golint)
    • Line 51: warning: exported type MonitorChannel should have comment or be unexported (golint)
    • Line 53: warning: exported type Backend should have comment or be unexported (golint)
    • Line 70: warning: exported type BackendFactory should have comment or be unexported (golint)
    • Line 74: warning: exported type Controller should have comment or be unexported (golint)
    • Line 83: warning: exported type Server should have comment or be unexported (golint)
    • Line 88: warning: exported type Mode should have comment or be unexported (golint)
    • Line 90: warning: exported type ProcessState should have comment or be unexported (golint)
    • Line 92: warning: exported type State should have comment or be unexported (golint)
    • Line 94: warning: exported type Replica should have comment or be unexported (golint)
    • Line 99: warning: exported type ReplicaSalvageInfo should have comment or be unexported (golint)
    • Line 104: warning: exported type Frontend should have comment or be unexported (golint)
    • Line 115: warning: exported type DataProcessor should have comment or be unexported (golint)
    • Line 121: warning: exported const EventTypeVolume should have comment (or a comment on this block) or be unexported (golint)
    • Line 126: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 132: warning: exported type RWMetrics should have comment or be unexported (golint)
    • Line 137: warning: exported function IsAlreadyPurgingError should have comment or be unexported (golint)
    • longhorn-engine/pkg/replica/rpc/dataserver.go
    • Line 12: warning: exported type DataServer should have comment or be unexported (golint)
    • Line 17: warning: exported function NewDataServer should have comment or be unexported (golint)
    • Line 24: warning: exported method DataServer.ListenAndServe should have comment or be unexported (golint)
    • longhorn-engine/pkg/frontend/rest/server.go
    • Line 12: warning: exported method Server.ListVolumes should have comment or be unexported (golint)
    • Line 22: warning: exported method Server.GetVolume should have comment or be unexported (golint)
    • Line 36: warning: exported method Server.ReadAt should have comment or be unexported (golint)
    • Line 69: warning: exported method Server.WriteAt should have comment or be unexported (golint)
    • longhorn-engine/app/cmd/restore_to_file.go
    • Line 23: warning: exported const DefaultOutputFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported var SupportedImageFormats should have comment or be unexported (golint)
    • Line 38: warning: exported function RestoreToFileCmd should have comment or be unexported (golint)
    • Line 181: warning: exported function CheckBackingFileFormat should have comment or be unexported (golint)
    • Line 192: warning: exported function CopyFile should have comment or be unexported (golint)
    • Line 199: warning: exported function CleanupTempFiles should have comment or be unexported (golint)
    • Line 222: warning: exported function ConvertImage should have comment or be unexported (golint)
    • Line 232: warning: exported function MergeSnapshotsToBackingFile should have comment or be unexported (golint)
    • longhorn-engine/pkg/frontend/tgt/frontend.go
    • Line 14: warning: exported const DevPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Tgt should have comment or be unexported (golint)
    • Line 27: warning: exported function New should have comment or be unexported (golint)
    • Line 32: warning: exported method Tgt.FrontendName should have comment or be unexported (golint)
    • Line 36: warning: exported method Tgt.Init should have comment or be unexported (golint)
    • Line 56: warning: exported method Tgt.Startup should have comment or be unexported (golint)
    • Line 70: warning: exported method Tgt.Shutdown should have comment or be unexported (golint)
    • Line 84: warning: exported method Tgt.State should have comment or be unexported (golint)
    • Line 91: warning: exported method Tgt.Endpoint should have comment or be unexported (golint)
    • Line 98: warning: exported method Tgt.Upgrade should have comment or be unexported (golint)
    • Line 126: warning: exported method Tgt.Expand should have comment or be unexported (golint)
    • longhorn-engine/pkg/meta/version.go
    • Line 6: warning: exported const CLIAPIMinVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type VersionOutput should have comment or be unexported (golint)
    • Line 37: warning: exported function GetVersion should have comment or be unexported (golint)
    • longhorn-engine/pkg/backend/remote/remote.go
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 32: warning: exported type RevisionCounter should have comment or be unexported (golint)
    • Line 36: warning: exported type Factory should have comment or be unexported (golint)
    • Line 39: warning: exported type Remote should have comment or be unexported (golint)
    • Line 47: warning: exported method Remote.Close should have comment or be unexported (golint)
    • Line 85: warning: exported method Remote.Snapshot should have comment or be unexported (golint)
    • Line 111: warning: exported method Remote.Expand should have comment or be unexported (golint)
    • Line 136: warning: exported method Remote.SetRevisionCounter should have comment or be unexported (golint)
    • Line 159: warning: exported method Remote.Size should have comment or be unexported (golint)
    • Line 167: warning: exported method Remote.IsRevisionCounterDisabled should have comment or be unexported (golint)
    • Line 176: warning: exported method Remote.GetLastModifyTime should have comment or be unexported (golint)
    • Line 184: warning: exported method Remote.GetHeadFileSize should have comment or be unexported (golint)
    • Line 192: warning: exported method Remote.SectorSize should have comment or be unexported (golint)
    • Line 200: warning: exported method Remote.RemainSnapshots should have comment or be unexported (golint)
    • Line 212: warning: exported method Remote.GetRevisionCounter should have comment or be unexported (golint)
    • Line 243: warning: exported method Factory.Create should have comment or be unexported (golint)
    • Line 305: warning: exported method Remote.GetMonitorChannel should have comment or be unexported (golint)
    • Line 309: warning: exported method Remote.StopMonitoring should have comment or be unexported (golint)
    • longhorn-engine/proto/ptypes/util.go
    • Line 7: warning: exported function ReplicaModeToGRPCReplicaMode should have comment or be unexported (golint)
    • Line 19: warning: exported function GRPCReplicaModeToReplicaMode should have comment or be unexported (golint)
    • longhorn-engine/pkg/sync/rpc/server.go
    • Line 40: warning: exported const MaxBackupSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type SyncAgentServer should have comment or be unexported (golint)
    • Line 69: warning: exported type BackupList should have comment or be unexported (golint)
    • Line 74: warning: exported type BackupInfo should have comment or be unexported (golint)
    • Line 79: warning: exported type PurgeStatus should have comment or be unexported (golint)
    • Line 89: warning: exported method PurgeStatus.UpdateFoldFileProgress should have comment or be unexported (golint)
    • Line 101: warning: exported type RebuildStatus should have comment or be unexported (golint)
    • Line 112: warning: exported method RebuildStatus.UpdateSyncFileProgress should have comment or be unexported (golint)
    • Line 120: warning: exported function GetDiskInfo should have comment or be unexported (golint)
    • Line 139: warning: exported function NewSyncAgentServer should have comment or be unexported (golint)
    • Line 178: warning: exported method SyncAgentServer.IsRestoring should have comment or be unexported (golint)
    • Line 184: warning: exported method SyncAgentServer.StartRestore should have comment or be unexported (golint)
    • Line 263: warning: exported method SyncAgentServer.FinishRestore should have comment or be unexported (golint)
    • Line 292: warning: exported method SyncAgentServer.Reset should have comment or be unexported (golint)
    • Line 307: warning: exported method SyncAgentServer.FileRemove should have comment or be unexported (golint)
    • Line 319: warning: exported method SyncAgentServer.FileRename should have comment or be unexported (golint)
    • Line 331: warning: exported method SyncAgentServer.FileSend should have comment or be unexported (golint)
    • Line 346: warning: exported method SyncAgentServer.ReceiverLaunch should have comment or be unexported (golint)
    • Line 380: warning: exported method SyncAgentServer.FilesSync should have comment or be unexported (golint)
    • Line 429: warning: exported method SyncAgentServer.PrepareRebuild should have comment or be unexported (golint)
    • Line 455: warning: exported method SyncAgentServer.FinishRebuild should have comment or be unexported (golint)
    • Line 467: warning: exported method SyncAgentServer.IsRebuilding should have comment or be unexported (golint)
    • Line 474: warning: exported method SyncAgentServer.ReplicaRebuildStatus should have comment or be unexported (golint)
    • Line 488: warning: exported method SyncAgentServer.BackupCreate should have comment or be unexported (golint)
    • Line 540: warning: exported method SyncAgentServer.BackupStatus should have comment or be unexported (golint)
    • Line 565: warning: exported method SyncAgentServer.BackupRemove should have comment or be unexported (golint)
    • Line 613: warning: exported method SyncAgentServer.BackupRestore should have comment or be unexported (golint)
    • Line 822: warning: exported method SyncAgentServer.RestoreStatus should have comment or be unexported (golint)
    • Line 842: warning: exported method SyncAgentServer.SnapshotPurge should have comment or be unexported (golint)
    • Line 944: warning: exported method SyncAgentServer.SnapshotPurgeStatus should have comment or be unexported (golint)
    • Line 957: warning: exported method SyncAgentServer.PreparePurge should have comment or be unexported (golint)
    • Line 978: warning: exported method SyncAgentServer.FinishPurge should have comment or be unexported (golint)
    • Line 990: warning: exported method SyncAgentServer.IsPurging should have comment or be unexported (golint)
    • longhorn-engine/pkg/replica/backup.go
    • Line 13: warning: exported type ProgressState should have comment or be unexported (golint)
    • Line 18: warning: exported const ProgressStateInProgress should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type RestoreStatus should have comment or be unexported (golint)
    • Line 50: warning: exported function NewRestore should have comment or be unexported (golint)
    • Line 62: warning: exported method RestoreStatus.StartNewRestore should have comment or be unexported (golint)
    • Line 78: warning: exported method RestoreStatus.UpdateRestoreStatus should have comment or be unexported (golint)
    • Line 95: warning: exported method RestoreStatus.FinishRestore should have comment or be unexported (golint)
    • Line 127: warning: exported method RestoreStatus.DeepCopy should have comment or be unexported (golint)
    • Line 142: warning: exported type BackupStatus should have comment or be unexported (golint)
    • Line 155: warning: exported function NewBackup should have comment or be unexported (golint)
    • Line 162: warning: exported method BackupStatus.UpdateBackupStatus should have comment or be unexported (golint)
    • Line 183: warning: exported method BackupStatus.HasSnapshot should have comment or be unexported (golint)
    • Line 198: warning: exported method BackupStatus.OpenSnapshot should have comment or be unexported (golint)
    • Line 233: warning: exported method BackupStatus.ReadSnapshot should have comment or be unexported (golint)
    • Line 245: warning: exported method BackupStatus.CloseSnapshot should have comment or be unexported (golint)
    • Line 271: warning: exported method BackupStatus.CompareSnapshot should have comment or be unexported (golint)
    • longhorn-engine/pkg/dataconn/types.go
    • Line 6: warning: exported const TypeRead should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported const MagicVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type Message should have comment or be unexported (golint)
    • longhorn-engine/app/cmd/volume.go
    • Line 11: warning: exported function InfoCmd should have comment or be unexported (golint)
    • Line 22: warning: exported function ExpandCmd should have comment or be unexported (golint)
    • Line 39: warning: exported function FrontendCmd should have comment or be unexported (golint)
    • Line 49: warning: exported function FrontendStartCmd should have comment or be unexported (golint)
    • Line 61: warning: exported function FrontendShutdownCmd should have comment or be unexported (golint)
    • longhorn-engine/pkg/sync/sync.go
    • Line 19: warning: exported const VolumeHeadName should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Task should have comment or be unexported (golint)
    • Line 26: warning: exported type TaskError should have comment or be unexported (golint)
    • Line 30: warning: exported type ReplicaError should have comment or be unexported (golint)
    • Line 35: warning: exported type SnapshotPurgeStatus should have comment or be unexported (golint)
    • Line 42: warning: exported type ReplicaRebuildStatus should have comment or be unexported (golint)
    • Line 50: warning: exported function NewTaskError should have comment or be unexported (golint)
    • Line 71: warning: exported method TaskError.Append should have comment or be unexported (golint)
    • Line 75: warning: exported method TaskError.HasError should have comment or be unexported (golint)
    • Line 79: warning: exported function NewReplicaError should have comment or be unexported (golint)
    • Line 90: warning: exported function NewTask should have comment or be unexported (golint)
    • Line 96: warning: exported method Task.DeleteSnapshot should have comment or be unexported (golint)
    • Line 121: warning: exported method Task.PurgeSnapshots should have comment or be unexported (golint)
    • Line 188: warning: exported method Task.PurgeSnapshotStatus should have comment or be unexported (golint)
    • Line 305: warning: exported method Task.AddRestoreReplica should have comment or be unexported (golint)
    • Line 351: warning: exported method Task.VerifyRebuildReplica should have comment or be unexported (golint)
    • Line 358: warning: exported method Task.AddReplica should have comment or be unexported (golint)
    • Line 582: warning: exported function GetSnapshotsInfo should have comment or be unexported (golint)
    • Line 650: warning: exported method Task.StartWithReplicas should have comment or be unexported (golint)
    • Line 663: warning: exported method Task.RebuildStatus should have comment or be unexported (golint)
    • longhorn-engine/pkg/replica/server.go
    • Line 12: warning: exported const Initial should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type State should have comment or be unexported (golint)
    • Line 22: warning: exported type Server should have comment or be unexported (golint)
    • Line 31: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 47: warning: exported method Server.Create should have comment or be unexported (golint)
    • Line 67: warning: exported method Server.Open should have comment or be unexported (golint)
    • Line 87: warning: exported method Server.Reload should have comment or be unexported (golint)
    • Line 107: warning: exported method Server.Status should have comment or be unexported (golint)
    • Line 131: warning: exported method Server.SetRebuilding should have comment or be unexported (golint)
    • Line 145: warning: exported method Server.Replica should have comment or be unexported (golint)
    • Line 149: warning: exported method Server.Revert should have comment or be unexported (golint)
    • Line 167: warning: exported method Server.Snapshot should have comment or be unexported (golint)
    • Line 180: warning: exported method Server.Expand should have comment or be unexported (golint)
    • Line 193: warning: exported method Server.RemoveDiffDisk should have comment or be unexported (golint)
    • Line 205: warning: exported method Server.ReplaceDisk should have comment or be unexported (golint)
    • Line 217: warning: exported method Server.MarkDiskAsRemoved should have comment or be unexported (golint)
    • Line 229: warning: exported method Server.PrepareRemoveDisk should have comment or be unexported (golint)
    • Line 241: warning: exported method Server.Delete should have comment or be unexported (golint)
    • Line 259: warning: exported method Server.Close should have comment or be unexported (golint)
    • Line 276: warning: exported method Server.WriteAt should have comment or be unexported (golint)
    • Line 287: warning: exported method Server.ReadAt should have comment or be unexported (golint)
    • Line 298: warning: exported method Server.SetRevisionCounter should have comment or be unexported (golint)
    • Line 308: warning: exported method Server.PingResponse should have comment or be unexported (golint)
    • longhorn-engine/pkg/types/error.go
    • Line 10: warning: exported type ErrorCode should have comment or be unexported (golint)
    • Line 13: warning: exported const ErrorCodeResultUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Error should have comment or be unexported (golint)
    • Line 25: warning: exported function NewError should have comment or be unexported (golint)
    • Line 40: warning: exported method Error.ToJSONString should have comment or be unexported (golint)
    • Line 48: warning: exported function WrapError should have comment or be unexported (golint)
    • Line 63: warning: exported function CombineErrors should have comment or be unexported (golint)
    • Line 76: warning: exported function GenerateFunctionErrorWithRollback should have comment or be unexported (golint)
    • Line 93: warning: exported function UnmarshalGRPCError should have comment or be unexported (golint)
    • longhorn-engine/pkg/dataconn/wire.go
    • Line 11: warning: exported type Wire should have comment or be unexported (golint)
    • Line 17: warning: exported function NewWire should have comment or be unexported (golint)
    • Line 91: warning: exported method Wire.Close should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign68%

IneffAssign detects ineffectual assignments in Go code.

    • longhorn-engine/pkg/replica/client/client.go
    • Line 61: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 80: warning: Replica not declared by package ptypes (ineffassign)
    • Line 106: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 114: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 461: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 570: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 607: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 626: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • Line 107: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 115: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 128: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 147: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 165: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 183: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 206: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 211: warning: ReplicaExpandRequest not declared by package ptypes (ineffassign)
    • Line 227: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 232: warning: ReplicaRevertRequest not declared by package ptypes (ineffassign)
    • Line 248: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 253: warning: DiskRemoveRequest not declared by package ptypes (ineffassign)
    • Line 269: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 274: warning: DiskReplaceRequest not declared by package ptypes (ineffassign)
    • Line 290: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 295: warning: DiskPrepareRemoveRequest not declared by package ptypes (ineffassign)
    • Line 321: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 326: warning: DiskMarkAsRemovedRequest not declared by package ptypes (ineffassign)
    • Line 341: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 346: warning: RebuildingSetRequest not declared by package ptypes (ineffassign)
    • Line 361: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 366: warning: FileRemoveRequest not declared by package ptypes (ineffassign)
    • Line 381: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 386: warning: FileRenameRequest not declared by package ptypes (ineffassign)
    • Line 402: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 407: warning: FileSendRequest not declared by package ptypes (ineffassign)
    • Line 424: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 429: warning: ReceiverLaunchRequest not declared by package ptypes (ineffassign)
    • Line 445: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 450: warning: FilesSyncRequest not declared by package ptypes (ineffassign)
    • Line 467: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 472: warning: BackupCreateRequest not declared by package ptypes (ineffassign)
    • Line 494: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 499: warning: BackupStatusRequest not declared by package ptypes (ineffassign)
    • Line 516: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 521: warning: BackupRemoveRequest not declared by package ptypes (ineffassign)
    • Line 536: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 541: warning: BackupRestoreRequest not declared by package ptypes (ineffassign)
    • Line 558: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 576: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 596: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 614: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 633: warning: NewSyncAgentServiceClient not declared by package ptypes (ineffassign)
    • Line 61: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 80: warning: Replica not declared by package ptypes (ineffassign)
    • Line 106: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 114: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 461: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 570: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 607: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 626: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/rancher/longhorn-engine/pkg/controller/rpc/server.go
    • Line 57: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 66: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 74: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 82: warning: Volume not declared by package ptypes (ineffassign)
    • Line 97: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 107: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 116: warning: Volume not declared by package ptypes (ineffassign)
    • Line 120: warning: VolumeStartRequest not declared by package ptypes (ineffassign)
    • Line 120: warning: Volume not declared by package ptypes (ineffassign)
    • Line 127: warning: Volume not declared by package ptypes (ineffassign)
    • Line 134: warning: VolumeSnapshotRequest not declared by package ptypes (ineffassign)
    • Line 134: warning: VolumeSnapshotReply not declared by package ptypes (ineffassign)
    • Line 145: warning: VolumeRevertRequest not declared by package ptypes (ineffassign)
    • Line 145: warning: Volume not declared by package ptypes (ineffassign)
    • Line 153: warning: VolumeExpandRequest not declared by package ptypes (ineffassign)
    • Line 153: warning: Volume not declared by package ptypes (ineffassign)
    • Line 160: warning: VolumeFrontendStartRequest not declared by package ptypes (ineffassign)
    • Line 160: warning: Volume not declared by package ptypes (ineffassign)
    • Line 168: warning: Volume not declared by package ptypes (ineffassign)
    • Line 176: warning: ReplicaListReply not declared by package ptypes (ineffassign)
    • Line 182: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 182: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 186: warning: ControllerReplicaCreateRequest not declared by package ptypes (ineffassign)
    • Line 186: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 194: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 202: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 202: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 210: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 210: warning: ReplicaPrepareRebuildReply not declared by package ptypes (ineffassign)
    • Line 222: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 222: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 230: warning: JournalListRequest not declared by package ptypes (ineffassign)
    • Line 236: warning: VersionDetailGetReply not declared by package ptypes (ineffassign)
    • Line 253: warning: ControllerService_MetricGetServer not declared by package ptypes (ineffassign)
    • Line 322: warning: BackupReplicaMapping not declared by package ptypes (ineffassign)
    • Line 330: warning: BackupReplicaMap not declared by package ptypes (ineffassign)
    • Line 337: warning: BackupReplicaMappingDeleteRequest not declared by package ptypes (ineffassign)
    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/rancher/longhorn-engine/pkg/replica/rpc/server.go
    • Line 38: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 59: warning: Replica not declared by package ptypes (ineffassign)
    • Line 91: warning: ReplicaCreateRequest not declared by package ptypes (ineffassign)
    • Line 91: warning: ReplicaCreateResponse not declared by package ptypes (ineffassign)
    • Line 112: warning: ReplicaGetResponse not declared by package ptypes (ineffassign)
    • Line 116: warning: ReplicaOpenResponse not declared by package ptypes (ineffassign)
    • Line 124: warning: ReplicaCloseResponse not declared by package ptypes (ineffassign)
    • Line 132: warning: ReplicaReloadResponse not declared by package ptypes (ineffassign)
    • Line 140: warning: ReplicaRevertRequest not declared by package ptypes (ineffassign)
    • Line 140: warning: ReplicaRevertResponse not declared by package ptypes (ineffassign)
    • Line 155: warning: ReplicaSnapshotRequest not declared by package ptypes (ineffassign)
    • Line 155: warning: ReplicaSnapshotResponse not declared by package ptypes (ineffassign)
    • Line 170: warning: ReplicaExpandRequest not declared by package ptypes (ineffassign)
    • Line 170: warning: ReplicaExpandResponse not declared by package ptypes (ineffassign)
    • Line 183: warning: DiskRemoveRequest not declared by package ptypes (ineffassign)
    • Line 183: warning: DiskRemoveResponse not declared by package ptypes (ineffassign)
    • Line 191: warning: DiskReplaceRequest not declared by package ptypes (ineffassign)
    • Line 191: warning: DiskReplaceResponse not declared by package ptypes (ineffassign)
    • Line 199: warning: DiskPrepareRemoveRequest not declared by package ptypes (ineffassign)
    • Line 199: warning: DiskPrepareRemoveResponse not declared by package ptypes (ineffassign)
    • Line 216: warning: DiskMarkAsRemovedRequest not declared by package ptypes (ineffassign)
    • Line 216: warning: DiskMarkAsRemovedResponse not declared by package ptypes (ineffassign)
    • Line 224: warning: RebuildingSetRequest not declared by package ptypes (ineffassign)
    • Line 224: warning: RebuildingSetResponse not declared by package ptypes (ineffassign)
    • Line 232: warning: RevisionCounterSetRequest not declared by package ptypes (ineffassign)
    • Line 232: warning: RevisionCounterSetResponse not declared by package ptypes (ineffassign)
    • longhorn-engine/pkg/sync/rpc/server.go
    • Line 120: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 307: warning: FileRemoveRequest not declared by package ptypes (ineffassign)
    • Line 319: warning: FileRenameRequest not declared by package ptypes (ineffassign)
    • Line 331: warning: FileSendRequest not declared by package ptypes (ineffassign)
    • Line 346: warning: ReceiverLaunchRequest not declared by package ptypes (ineffassign)
    • Line 346: warning: ReceiverLaunchResponse not declared by package ptypes (ineffassign)
    • Line 380: warning: FilesSyncRequest not declared by package ptypes (ineffassign)
    • Line 429: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 474: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupCreateRequest not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 540: warning: BackupStatusRequest not declared by package ptypes (ineffassign)
    • Line 540: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 565: warning: BackupRemoveRequest not declared by package ptypes (ineffassign)
    • Line 613: warning: BackupRestoreRequest not declared by package ptypes (ineffassign)
    • Line 822: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 944: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 120: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 307: warning: FileRemoveRequest not declared by package ptypes (ineffassign)
    • Line 319: warning: FileRenameRequest not declared by package ptypes (ineffassign)
    • Line 331: warning: FileSendRequest not declared by package ptypes (ineffassign)
    • Line 346: warning: ReceiverLaunchRequest not declared by package ptypes (ineffassign)
    • Line 346: warning: ReceiverLaunchResponse not declared by package ptypes (ineffassign)
    • Line 380: warning: FilesSyncRequest not declared by package ptypes (ineffassign)
    • Line 429: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 474: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupCreateRequest not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 540: warning: BackupStatusRequest not declared by package ptypes (ineffassign)
    • Line 540: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 565: warning: BackupRemoveRequest not declared by package ptypes (ineffassign)
    • Line 613: warning: BackupRestoreRequest not declared by package ptypes (ineffassign)
    • Line 822: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 944: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 353: warning: ReceiverLaunchResponse not declared by package ptypes (ineffassign)
    • Line 479: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • Line 527: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 555: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 726: warning: FileRemoveRequest not declared by package ptypes (ineffassign)
    • Line 732: warning: FileRemoveRequest not declared by package ptypes (ineffassign)
    • Line 761: warning: FileRemoveRequest not declared by package ptypes (ineffassign)
    • Line 789: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 807: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 812: warning: ReplicaRevertRequest not declared by package ptypes (ineffassign)
    • Line 823: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 949: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 1004: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 1082: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 1086: warning: DiskMarkAsRemovedRequest not declared by package ptypes (ineffassign)
    • Line 1102: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 1106: warning: DiskPrepareRemoveRequest not declared by package ptypes (ineffassign)
    • Line 1145: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 1149: warning: DiskReplaceRequest not declared by package ptypes (ineffassign)
    • Line 1166: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 1170: warning: DiskRemoveRequest not declared by package ptypes (ineffassign)
    • longhorn-engine/pkg/backend/remote/remote.go
    • Line 54: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 73: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 93: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 98: warning: ReplicaSnapshotRequest not declared by package ptypes (ineffassign)
    • Line 122: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 127: warning: ReplicaExpandRequest not declared by package ptypes (ineffassign)
    • Line 144: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • Line 149: warning: RevisionCounterSetRequest not declared by package ptypes (ineffassign)
    • Line 230: warning: NewReplicaServiceClient not declared by package ptypes (ineffassign)
    • longhorn-engine/pkg/controller/client/controller_client.go
    • Line 32: warning: Volume not declared by package ptypes (ineffassign)
    • Line 46: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 53: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 62: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 70: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 54: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 55: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 84: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 103: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 108: warning: VolumeStartRequest not declared by package ptypes (ineffassign)
    • Line 123: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 128: warning: VolumeSnapshotRequest not declared by package ptypes (ineffassign)
    • Line 145: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 150: warning: VolumeRevertRequest not declared by package ptypes (ineffassign)
    • Line 165: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 170: warning: VolumeExpandRequest not declared by package ptypes (ineffassign)
    • Line 185: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 190: warning: VolumeFrontendStartRequest not declared by package ptypes (ineffassign)
    • Line 205: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 223: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 247: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 252: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 268: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 273: warning: ControllerReplicaCreateRequest not declared by package ptypes (ineffassign)
    • Line 291: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 296: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 311: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 330: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 335: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 351: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 356: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 371: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 376: warning: JournalListRequest not declared by package ptypes (ineffassign)
    • Line 391: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 446: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 451: warning: BackupReplicaMapping not declared by package ptypes (ineffassign)
    • Line 467: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 486: warning: NewControllerServiceClient not declared by package ptypes (ineffassign)
    • Line 491: warning: BackupReplicaMappingDeleteRequest not declared by package ptypes (ineffassign)
    • Line 32: warning: Volume not declared by package ptypes (ineffassign)
    • Line 46: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 53: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 62: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 70: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • longhorn-engine/pkg/replica/rpc/server.go
    • Line 38: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 59: warning: Replica not declared by package ptypes (ineffassign)
    • Line 91: warning: ReplicaCreateRequest not declared by package ptypes (ineffassign)
    • Line 91: warning: ReplicaCreateResponse not declared by package ptypes (ineffassign)
    • Line 112: warning: ReplicaGetResponse not declared by package ptypes (ineffassign)
    • Line 116: warning: ReplicaOpenResponse not declared by package ptypes (ineffassign)
    • Line 124: warning: ReplicaCloseResponse not declared by package ptypes (ineffassign)
    • Line 132: warning: ReplicaReloadResponse not declared by package ptypes (ineffassign)
    • Line 140: warning: ReplicaRevertRequest not declared by package ptypes (ineffassign)
    • Line 140: warning: ReplicaRevertResponse not declared by package ptypes (ineffassign)
    • Line 155: warning: ReplicaSnapshotRequest not declared by package ptypes (ineffassign)
    • Line 155: warning: ReplicaSnapshotResponse not declared by package ptypes (ineffassign)
    • Line 170: warning: ReplicaExpandRequest not declared by package ptypes (ineffassign)
    • Line 170: warning: ReplicaExpandResponse not declared by package ptypes (ineffassign)
    • Line 183: warning: DiskRemoveRequest not declared by package ptypes (ineffassign)
    • Line 183: warning: DiskRemoveResponse not declared by package ptypes (ineffassign)
    • Line 191: warning: DiskReplaceRequest not declared by package ptypes (ineffassign)
    • Line 191: warning: DiskReplaceResponse not declared by package ptypes (ineffassign)
    • Line 199: warning: DiskPrepareRemoveRequest not declared by package ptypes (ineffassign)
    • Line 199: warning: DiskPrepareRemoveResponse not declared by package ptypes (ineffassign)
    • Line 216: warning: DiskMarkAsRemovedRequest not declared by package ptypes (ineffassign)
    • Line 216: warning: DiskMarkAsRemovedResponse not declared by package ptypes (ineffassign)
    • Line 224: warning: RebuildingSetRequest not declared by package ptypes (ineffassign)
    • Line 224: warning: RebuildingSetResponse not declared by package ptypes (ineffassign)
    • Line 232: warning: RevisionCounterSetRequest not declared by package ptypes (ineffassign)
    • Line 232: warning: RevisionCounterSetResponse not declared by package ptypes (ineffassign)
    • Line 39: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 44: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 61: warning: Replica not declared by package ptypes (ineffassign)
    • Line 105: warning: ReplicaCreateResponse not declared by package ptypes (ineffassign)
    • Line 113: warning: ReplicaGetResponse not declared by package ptypes (ineffassign)
    • Line 121: warning: ReplicaOpenResponse not declared by package ptypes (ineffassign)
    • Line 129: warning: ReplicaCloseResponse not declared by package ptypes (ineffassign)
    • Line 137: warning: ReplicaReloadResponse not declared by package ptypes (ineffassign)
    • Line 152: warning: ReplicaRevertResponse not declared by package ptypes (ineffassign)
    • Line 167: warning: ReplicaSnapshotResponse not declared by package ptypes (ineffassign)
    • Line 180: warning: ReplicaExpandResponse not declared by package ptypes (ineffassign)
    • Line 188: warning: DiskRemoveResponse not declared by package ptypes (ineffassign)
    • Line 196: warning: DiskReplaceResponse not declared by package ptypes (ineffassign)
    • Line 205: warning: DiskPrepareRemoveResponse not declared by package ptypes (ineffassign)
    • Line 206: warning: op declared but not used (ineffassign)
    • Line 221: warning: DiskMarkAsRemovedResponse not declared by package ptypes (ineffassign)
    • Line 229: warning: RebuildingSetResponse not declared by package ptypes (ineffassign)
    • Line 236: warning: RevisionCounterSetResponse not declared by package ptypes (ineffassign)
    • Line 38: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 59: warning: Replica not declared by package ptypes (ineffassign)
    • Line 91: warning: ReplicaCreateRequest not declared by package ptypes (ineffassign)
    • Line 91: warning: ReplicaCreateResponse not declared by package ptypes (ineffassign)
    • Line 112: warning: ReplicaGetResponse not declared by package ptypes (ineffassign)
    • Line 116: warning: ReplicaOpenResponse not declared by package ptypes (ineffassign)
    • Line 124: warning: ReplicaCloseResponse not declared by package ptypes (ineffassign)
    • Line 132: warning: ReplicaReloadResponse not declared by package ptypes (ineffassign)
    • Line 140: warning: ReplicaRevertRequest not declared by package ptypes (ineffassign)
    • Line 140: warning: ReplicaRevertResponse not declared by package ptypes (ineffassign)
    • Line 155: warning: ReplicaSnapshotRequest not declared by package ptypes (ineffassign)
    • Line 155: warning: ReplicaSnapshotResponse not declared by package ptypes (ineffassign)
    • Line 170: warning: ReplicaExpandRequest not declared by package ptypes (ineffassign)
    • Line 170: warning: ReplicaExpandResponse not declared by package ptypes (ineffassign)
    • Line 183: warning: DiskRemoveRequest not declared by package ptypes (ineffassign)
    • Line 183: warning: DiskRemoveResponse not declared by package ptypes (ineffassign)
    • Line 191: warning: DiskReplaceRequest not declared by package ptypes (ineffassign)
    • Line 191: warning: DiskReplaceResponse not declared by package ptypes (ineffassign)
    • Line 199: warning: DiskPrepareRemoveRequest not declared by package ptypes (ineffassign)
    • Line 199: warning: DiskPrepareRemoveResponse not declared by package ptypes (ineffassign)
    • Line 216: warning: DiskMarkAsRemovedRequest not declared by package ptypes (ineffassign)
    • Line 216: warning: DiskMarkAsRemovedResponse not declared by package ptypes (ineffassign)
    • Line 224: warning: RebuildingSetRequest not declared by package ptypes (ineffassign)
    • Line 224: warning: RebuildingSetResponse not declared by package ptypes (ineffassign)
    • Line 232: warning: RevisionCounterSetRequest not declared by package ptypes (ineffassign)
    • Line 232: warning: RevisionCounterSetResponse not declared by package ptypes (ineffassign)
    • longhorn-engine/pkg/controller/rpc/server.go
    • Line 57: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 66: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 74: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 82: warning: Volume not declared by package ptypes (ineffassign)
    • Line 97: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 107: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 116: warning: Volume not declared by package ptypes (ineffassign)
    • Line 120: warning: VolumeStartRequest not declared by package ptypes (ineffassign)
    • Line 120: warning: Volume not declared by package ptypes (ineffassign)
    • Line 127: warning: Volume not declared by package ptypes (ineffassign)
    • Line 134: warning: VolumeSnapshotRequest not declared by package ptypes (ineffassign)
    • Line 134: warning: VolumeSnapshotReply not declared by package ptypes (ineffassign)
    • Line 145: warning: VolumeRevertRequest not declared by package ptypes (ineffassign)
    • Line 145: warning: Volume not declared by package ptypes (ineffassign)
    • Line 153: warning: VolumeExpandRequest not declared by package ptypes (ineffassign)
    • Line 153: warning: Volume not declared by package ptypes (ineffassign)
    • Line 160: warning: VolumeFrontendStartRequest not declared by package ptypes (ineffassign)
    • Line 160: warning: Volume not declared by package ptypes (ineffassign)
    • Line 168: warning: Volume not declared by package ptypes (ineffassign)
    • Line 176: warning: ReplicaListReply not declared by package ptypes (ineffassign)
    • Line 182: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 182: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 186: warning: ControllerReplicaCreateRequest not declared by package ptypes (ineffassign)
    • Line 186: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 194: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 202: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 202: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 210: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 210: warning: ReplicaPrepareRebuildReply not declared by package ptypes (ineffassign)
    • Line 222: warning: ReplicaAddress not declared by package ptypes (ineffassign)
    • Line 222: warning: ControllerReplica not declared by package ptypes (ineffassign)
    • Line 230: warning: JournalListRequest not declared by package ptypes (ineffassign)
    • Line 236: warning: VersionDetailGetReply not declared by package ptypes (ineffassign)
    • Line 253: warning: ControllerService_MetricGetServer not declared by package ptypes (ineffassign)
    • Line 322: warning: BackupReplicaMapping not declared by package ptypes (ineffassign)
    • Line 330: warning: BackupReplicaMap not declared by package ptypes (ineffassign)
    • Line 337: warning: BackupReplicaMappingDeleteRequest not declared by package ptypes (ineffassign)
    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/rancher/longhorn-engine/pkg/replica/client/client.go
    • Line 61: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 80: warning: Replica not declared by package ptypes (ineffassign)
    • Line 106: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 114: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 461: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 570: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 607: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 626: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • Line 61: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 80: warning: Replica not declared by package ptypes (ineffassign)
    • Line 106: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 114: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 461: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 570: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 607: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 626: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • Line 61: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 80: warning: Replica not declared by package ptypes (ineffassign)
    • Line 106: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 114: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 461: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 570: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 607: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 626: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • Line 61: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 80: warning: Replica not declared by package ptypes (ineffassign)
    • Line 106: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 114: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 461: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 570: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 607: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 626: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • Line 61: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 80: warning: Replica not declared by package ptypes (ineffassign)
    • Line 106: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 114: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 461: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 570: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 607: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)
    • Line 626: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/rancher/longhorn-engine/pkg/sync/rpc/server.go
    • Line 120: warning: DiskInfo not declared by package ptypes (ineffassign)
    • Line 307: warning: FileRemoveRequest not declared by package ptypes (ineffassign)
    • Line 319: warning: FileRenameRequest not declared by package ptypes (ineffassign)
    • Line 331: warning: FileSendRequest not declared by package ptypes (ineffassign)
    • Line 346: warning: ReceiverLaunchRequest not declared by package ptypes (ineffassign)
    • Line 346: warning: ReceiverLaunchResponse not declared by package ptypes (ineffassign)
    • Line 380: warning: FilesSyncRequest not declared by package ptypes (ineffassign)
    • Line 429: warning: SyncFileInfo not declared by package ptypes (ineffassign)
    • Line 474: warning: ReplicaRebuildStatusResponse not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupCreateRequest not declared by package ptypes (ineffassign)
    • Line 488: warning: BackupCreateResponse not declared by package ptypes (ineffassign)
    • Line 540: warning: BackupStatusRequest not declared by package ptypes (ineffassign)
    • Line 540: warning: BackupStatusResponse not declared by package ptypes (ineffassign)
    • Line 565: warning: BackupRemoveRequest not declared by package ptypes (ineffassign)
    • Line 613: warning: BackupRestoreRequest not declared by package ptypes (ineffassign)
    • Line 822: warning: RestoreStatusResponse not declared by package ptypes (ineffassign)
    • Line 944: warning: SnapshotPurgeStatusResponse not declared by package ptypes (ineffassign)

misspell98%

Misspell Finds commonly misspelled English words