chore(LINT-0001) fix lint errors

This commit is contained in:
Giancarmine Salucci
2026-03-27 03:01:37 +01:00
parent 7f7d806172
commit da661efc91
24 changed files with 114 additions and 69 deletions

View File

@@ -153,7 +153,7 @@ function makeNoopProvider(): EmbeddingProvider {
name: 'noop',
dimensions: 0,
model: 'none',
async embed(_texts: string[]): Promise<EmbeddingVector[]> {
async embed(): Promise<EmbeddingVector[]> {
return [];
},
async isAvailable(): Promise<boolean> {
@@ -738,7 +738,7 @@ describe('HybridSearchService', () => {
const repoId = seedRepo(client);
const docId = seedDocument(client, repoId);
const snippetId = seedSnippet(client, {
seedSnippet(client, {
repositoryId: repoId,
documentId: docId,
content: 'keyword only test'
@@ -860,7 +860,7 @@ describe('HybridSearchService', () => {
it('searchMode=semantic returns empty array for blank query', async () => {
const client = createTestDb();
const repoId = seedRepo(client);
const docId = seedDocument(client, repoId);
seedDocument(client, repoId);
const mockProvider = makeMockProvider([[1, 0, 0, 0]]);
@@ -879,7 +879,7 @@ describe('HybridSearchService', () => {
it('searchMode=semantic falls back to empty when provider fails', async () => {
const client = createTestDb();
const repoId = seedRepo(client);
const docId = seedDocument(client, repoId);
seedDocument(client, repoId);
const noopProvider = makeNoopProvider();
const searchService = new SearchService(client);