Test/auto format dirty verify#31207
Conversation
Review✅ No style-guide issues found in commit CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
|
Thank you for reaching out. This issue appears to be spam or doesn't contain actionable documentation feedback, so we're closing it. If you have a genuine documentation question or suggestion, please open a new issue with details. |
There was a problem hiding this comment.
This PR appears to be a test of the auto-format bot. However, the current HEAD introduces numerous formatting violations that will fail CI.
Issues found:
- Missing description — The PR body is the default template with no context about what is being tested or why.
- Formatting violations — Both changed files have inconsistent spacing, missing semicolons, mixed indentation (spaces vs tabs), and excessive blank lines.
pnpm run format:core:checkwill fail.
| "components", | ||
| ); | ||
| const AGENT_REFERENCE = path.join(".agents", "references", "components.md"); | ||
| const AGENT_REFERENCE = path.join( ".agents" , "references" ,'components.md' ) ; |
There was a problem hiding this comment.
Fix spacing:
| const AGENT_REFERENCE = path.join( ".agents" , "references" ,'components.md' ) ; | |
| const AGENT_REFERENCE = path.join(".agents", "references", "components.md"); |
| if (!fmMatch) return undefined; | ||
| const componentMatch = fmMatch[1].match(/^\s*component:\s*(\S+)\s*$/m); | ||
| return componentMatch?.[1]; | ||
| function extractComponentName(content: string) : string|undefined { |
There was a problem hiding this comment.
Fix spacing:
| function extractComponentName(content: string) : string|undefined { | |
| function extractComponentName(content: string): string | undefined { |
| const fmMatch=content.match(/^---\n([\s\S]*?)\n---/); | ||
| if(!fmMatch)return undefined ; | ||
| const componentMatch = fmMatch[1].match(/^\s*component:\s*(\S+)\s*$/m) ; | ||
| return componentMatch?.[ 1 ]; | ||
|
|
There was a problem hiding this comment.
Use tabs and fix spacing/semicolons:
| const fmMatch=content.match(/^---\n([\s\S]*?)\n---/); | |
| if(!fmMatch)return undefined ; | |
| const componentMatch = fmMatch[1].match(/^\s*component:\s*(\S+)\s*$/m) ; | |
| return componentMatch?.[ 1 ]; | |
| const fmMatch = content.match(/^---\n([\s\S]*?)\n---/); | |
| if (!fmMatch) return undefined; | |
| const componentMatch = fmMatch[1].match(/^\s*component:\s*(\S+)\s*$/m); | |
| return componentMatch?.[1]; | |
| } |
| @@ -1,4 +1,4 @@ | |||
| import { getCollection } from "astro:content"; | |||
| import { getCollection } from "astro:content"; | |||
There was a problem hiding this comment.
Remove extra spaces:
| import { getCollection } from "astro:content"; | |
| import { getCollection } from "astro:content"; |
|
|
||
| export async function getGlossaryEntry(term: string) { | ||
| const terms = await getGlossaryEntries(); | ||
| const terms = await getGlossaryEntries() ; |
There was a problem hiding this comment.
Remove trailing spaces:
| const terms = await getGlossaryEntries() ; | |
| const terms = await getGlossaryEntries(); |
| const entry = terms.find((x) => x.term === term) | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| const entry = terms.find((x) => x.term === term); | ||
|
|
||
| if (!entry) { | ||
| throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`); | ||
|
|
||
|
|
||
|
|
||
| throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`) |
There was a problem hiding this comment.
Remove excessive blank lines and add missing semicolons:
| const entry = terms.find((x) => x.term === term) | |
| const entry = terms.find((x) => x.term === term); | |
| if (!entry) { | |
| throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`); | |
| throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`) | |
| const entry = terms.find((x) => x.term === term); | |
| if (!entry) { | |
| throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`); | |
| } | |
| return entry; | |
| } |
Review CompleteVerdict: 2 issues need fixing before merge — formatting violations and missing PR description. What I did
Issues flagged
Notes
|
Summary
Screenshots (optional)
Documentation checklist