-
Notifications
You must be signed in to change notification settings - Fork 1
loq baseline should escape brackets in paths #46
Copy link
Copy link
Closed
Description
problem
When using loq baseline on a codebase with SvelteKit-style dynamic routes (e.g., [id], [handle], [slug]), the generated rules don't match the files.
reproduction
-
Have files like:
frontend/src/routes/track/[id]/+page.sveltefrontend/src/routes/u/[handle]/+page.svelte
-
Run
loq baseline -
Generated rules look like:
[[rules]] path = "frontend/src/routes/track/[id]/+page.svelte" max_lines = 1667
-
Run
loq check- these files still show as violations
workaround
Manually escape brackets:
[[rules]]
path = "frontend/src/routes/track/\\[id\\]/+page.svelte"
max_lines = 1667This pattern is common in SvelteKit, Next.js, and other frameworks that use bracket syntax for dynamic routes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels