File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments