Refactor: break up oversized methods (>100-150 lines) #40
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/vaultik#40
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Per sneak's feedback on PR #37: methods are too long. Break them into descriptively named methods of max 100-150 lines each.
Oversized methods found
Files touched by PR #37
internal/vaultik/snapshot.go:115—createNamedSnapshot(214 lines)internal/vaultik/snapshot.go:331—ListSnapshots(159 lines)internal/vaultik/snapshot.go:492—PurgeSnapshots(101 lines)internal/vaultik/snapshot.go:604—VerifySnapshotWithOptions(114 lines)internal/vaultik/snapshot.go:909—RemoveAllSnapshots(102 lines)internal/vaultik/prune.go:27—PruneBlobs(170 lines)Other files
internal/snapshot/scanner.go:160—Scan(121 lines)internal/snapshot/scanner.go:423—flushCompletedPendingFiles(123 lines)internal/snapshot/scanner.go:557—scanPhase(140 lines)internal/snapshot/scanner.go:811—processPhase(117 lines)internal/snapshot/scanner.go:930—handleBlobReady(173 lines)internal/snapshot/scanner.go:1105—processFileStreaming(146 lines)internal/snapshot/snapshot.go:214—ExportSnapshotMetadata(105 lines)internal/vaultik/restore.go:48—Restore(141 lines)internal/vaultik/info.go:151—RemoteInfo(187 lines)internal/vaultik/verify.go:39—RunDeepVerify(182 lines)internal/vaultik/verify.go:288—verifyBlob(121 lines)internal/cli/restore.go:32—NewRestoreCommand(105 lines)internal/blob/packer.go:359—finalizeCurrentBlob(167 lines)