Skip to content

Commit d326d78

Browse files
PatrickSysclaude
andcommitted
style: fix prettier formatting for CI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6b89778 commit d326d78

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

src/analyzers/angular/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -940,15 +940,17 @@ export class AngularAnalyzer implements FrameworkAnalyzer {
940940
const inputs = metadata.decorator?.inputs?.length || 0;
941941
const outputs = metadata.decorator?.outputs?.length || 0;
942942
const lifecycle = this.extractLifecycleMethods(content);
943-
return `Angular component '${className}' (selector: ${selector})${lifecycle ? ` with ${lifecycle}` : ''
944-
}${inputs ? `, ${inputs} inputs` : ''}${outputs ? `, ${outputs} outputs` : ''}.`;
943+
return `Angular component '${className}' (selector: ${selector})${
944+
lifecycle ? ` with ${lifecycle}` : ''
945+
}${inputs ? `, ${inputs} inputs` : ''}${outputs ? `, ${outputs} outputs` : ''}.`;
945946
}
946947

947948
case 'service': {
948949
const providedIn = metadata.decorator?.providedIn || 'unknown';
949950
const methods = this.extractPublicMethods(content);
950-
return `Angular service '${className}' (providedIn: ${providedIn})${methods ? ` providing ${methods}` : ''
951-
}.`;
951+
return `Angular service '${className}' (providedIn: ${providedIn})${
952+
methods ? ` providing ${methods}` : ''
953+
}.`;
952954
}
953955

954956
case 'guard': {

src/index.ts

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -559,13 +559,17 @@ async function generateCodebaseContext(): Promise<string> {
559559
lines.push(` -> Your team strongly prefers ${primary.name}`);
560560
if (alternatives.length) {
561561
const alt = alternatives[0];
562-
lines.push(` -> Minority pattern: ${alt.name} (${alt.frequency}) - avoid for new code`);
562+
lines.push(
563+
` -> Minority pattern: ${alt.name} (${alt.frequency}) - avoid for new code`
564+
);
563565
}
564566
} else if (percentage >= 60) {
565567
lines.push(`### ${categoryName}: **${primary.name}** (${primary.frequency} - majority)`);
566568
lines.push(` -> Most code uses ${primary.name}, but not unanimous`);
567569
if (alternatives.length) {
568-
lines.push(` -> Also detected: ${alternatives[0].name} (${alternatives[0].frequency})`);
570+
lines.push(
571+
` -> Also detected: ${alternatives[0].name} (${alternatives[0].frequency})`
572+
);
569573
}
570574
} else {
571575
// Split decision
@@ -818,8 +822,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
818822
text: JSON.stringify(
819823
{
820824
status: 'error',
821-
message: `Auto-heal retry failed: ${retryError instanceof Error ? retryError.message : String(retryError)
822-
}`
825+
message: `Auto-heal retry failed: ${
826+
retryError instanceof Error ? retryError.message : String(retryError)
827+
}`
823828
},
824829
null,
825830
2
@@ -1205,20 +1210,20 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
12051210
lastIndexed: indexState.lastIndexed?.toISOString(),
12061211
stats: indexState.stats
12071212
? {
1208-
totalFiles: indexState.stats.totalFiles,
1209-
indexedFiles: indexState.stats.indexedFiles,
1210-
totalChunks: indexState.stats.totalChunks,
1211-
duration: `${(indexState.stats.duration / 1000).toFixed(2)}s`,
1212-
incremental: indexState.stats.incremental
1213-
}
1213+
totalFiles: indexState.stats.totalFiles,
1214+
indexedFiles: indexState.stats.indexedFiles,
1215+
totalChunks: indexState.stats.totalChunks,
1216+
duration: `${(indexState.stats.duration / 1000).toFixed(2)}s`,
1217+
incremental: indexState.stats.incremental
1218+
}
12141219
: undefined,
12151220
progress: progress
12161221
? {
1217-
phase: progress.phase,
1218-
percentage: progress.percentage,
1219-
filesProcessed: progress.filesProcessed,
1220-
totalFiles: progress.totalFiles
1221-
}
1222+
phase: progress.phase,
1223+
percentage: progress.percentage,
1224+
filesProcessed: progress.filesProcessed,
1225+
totalFiles: progress.totalFiles
1226+
}
12221227
: undefined,
12231228
error: indexState.error,
12241229
hint: 'Use refresh_index to manually trigger re-indexing when needed.'

0 commit comments

Comments
 (0)