Skip to content

Commit 05eb3d6

Browse files
kevinelliottclaude
andcommitted
Fix staticcheck U1000 warnings for deprecated functions
Added `//lint:ignore U1000` directives to deprecated functions: - extractPartitionData() - extractRowsWithProgress() These functions are intentionally kept for potential rollback to the non-streaming architecture if needed. The staticcheck directive suppresses the "unused code" warning (U1000). Note: Local staticcheck may fail on Go 1.24.10 (dev version), but CI uses stable Go 1.21-1.23 where this will work correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 07352e8 commit 05eb3d6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/archiver.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,7 @@ func (a *Archiver) checkCachedMetadata(partition PartitionInfo, objectKey string
13861386
// Deprecated: Replaced by extractPartitionDataStreaming. Kept for potential rollback.
13871387
//
13881388
//nolint:unused // Kept for rollback capability
1389+
//lint:ignore U1000 Kept for potential rollback to non-streaming architecture
13891390
func (a *Archiver) extractPartitionData(partition PartitionInfo, program *tea.Program, cache *PartitionCache, updateTaskStage func(string)) ([]byte, int64, error) {
13901391
extractStart := time.Now()
13911392
updateTaskStage("Extracting data...")
@@ -1683,6 +1684,7 @@ func (a *Archiver) printSummary(results []ProcessResult) {
16831684
// Deprecated: Replaced by extractPartitionDataStreaming. Kept for potential rollback.
16841685
//
16851686
//nolint:gocognit,unused // complex row extraction with progress tracking, kept for rollback capability
1687+
//lint:ignore U1000 Kept for potential rollback to non-streaming architecture
16861688
func (a *Archiver) extractRowsWithProgress(partition PartitionInfo, program *tea.Program) ([]map[string]interface{}, error) {
16871689
quotedTable := pq.QuoteIdentifier(partition.TableName)
16881690
query := fmt.Sprintf("SELECT row_to_json(t) FROM %s t", quotedTable)

0 commit comments

Comments
 (0)