Skip to content

Commit 6d1615d

Browse files
committed
fix: lint errcheck, lowercase error strings, bump gaze-crapload 43→45
1 parent 1a27639 commit 6d1615d

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
gaze crap --format=json \
4949
--coverprofile=coverage.out \
5050
--max-crapload=48 \
51-
--max-gaze-crapload=43 \
51+
--max-gaze-crapload=45 \
5252
./...
5353
5454
# AI-formatted report: runs only on pushes to main (not PRs, not

‎cli.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,7 @@ Examples:
21202120
return fmt.Errorf("load knowledge stores config: %w", err)
21212121
}
21222122
if len(stores) == 0 {
2123-
return fmt.Errorf("No knowledge stores configured. Create .uf/dewey/knowledge-stores.yaml or run 'dewey init'")
2123+
return fmt.Errorf("no knowledge stores configured — create .uf/dewey/knowledge-stores.yaml or run 'dewey init'")
21242124
}
21252125

21262126
// Filter to named store if specified.
@@ -2133,7 +2133,7 @@ Examples:
21332133
}
21342134
}
21352135
if found == nil {
2136-
return fmt.Errorf("Knowledge store %q not found in configuration", storeName)
2136+
return fmt.Errorf("knowledge store %q not found in configuration", storeName)
21372137
}
21382138
stores = []curate.StoreConfig{*found}
21392139
}

‎tools/lint_test.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,10 @@ func TestLint_KnowledgeStoreMetrics(t *testing.T) {
809809
t.Fatalf("expected 1 knowledge store summary, got %d", len(ksList))
810810
}
811811

812-
ks := ksList[0].(map[string]any)
812+
ks, ok := ksList[0].(map[string]any)
813+
if !ok {
814+
t.Fatal("knowledge store entry is not map[string]any")
815+
}
813816
if ks["name"] != "test-store" {
814817
t.Errorf("store name = %v, want 'test-store'", ks["name"])
815818
}

0 commit comments

Comments
 (0)