Fallback drops combined and namespace import symbols
|
|
| Severity |
medium |
| Kind |
logic-bug |
| Location |
src/parsers/vue/vue-parser.ts → fallbackParse |
| Module |
src/parsers/vue |
| Finding ID |
f-87694e |
Failure scenario
The regex on line 173 routes import Foo, { bar } from './x' and import * as ns from './x' through its catch-all alternative. Both capture groups are empty, so the resulting import has no symbols and reports both isDefault and isNamespace as false.
Suggested test
Force TypeScriptParser.parseContent to throw, then parse imports using combined default/named and namespace syntax; assert symbols and import flags are preserved.
How to work this issue
Open a Claude Code session in this repo and say
"work the dev-cli finding f-87694e in src/parsers/vue/vue-parser.ts".
If this is not a real defect, close the issue with the false-positive label — dev-cli
records the fingerprint and will never raise it again. Closing it without that label marks the
finding fixed instead.
Raised by dev-cli · repo codemap-cli · scan 2026-08-15T06-35-41 · fingerprint 87694e04700d
Fallback drops combined and namespace import symbols
mediumlogic-bugsrc/parsers/vue/vue-parser.ts→fallbackParsesrc/parsers/vuef-87694eFailure scenario
The regex on line 173 routes
import Foo, { bar } from './x'andimport * as ns from './x'through its catch-all alternative. Both capture groups are empty, so the resulting import has no symbols and reports bothisDefaultandisNamespaceas false.Suggested test
Force TypeScriptParser.parseContent to throw, then parse imports using combined default/named and namespace syntax; assert symbols and import flags are preserved.
How to work this issue
Open a Claude Code session in this repo and say
"work the dev-cli finding
f-87694einsrc/parsers/vue/vue-parser.ts".If this is not a real defect, close the issue with the
false-positivelabel — dev-clirecords the fingerprint and will never raise it again. Closing it without that label marks the
finding fixed instead.
Raised by dev-cli · repo
codemap-cli· scan2026-08-15T06-35-41· fingerprint87694e04700d