feat: replace testdata with generated mini-project - #3
Merged
Conversation
Replace the two real-project report files with a self-contained test fixture that exercises all extension features: Source files (testdata/src/): auth/auth.ts — hardcoded secret, weak crypto, var/any/== issues api/router.ts — SQL injection, credential logging, unused vars core/utils.c — strcpy/memcpy overflows, null check, div-by-zero core/parser.h — fixed arrays, raw pointer, global instance Reports (testdata/reports/): eslint-report.json — 12 TypeScript/style issues (minor→major) codeparser-report.json — 12 C/C++ issues (info→blocker, incl. other_locations) semgrep-report.json — 11 cross-language security issues (major→blocker) Config: two custom columns outil — extracted from report filename via regex package — extracted from location.path via fromField/fieldRegex Sidebar: fix applyFilters() to resolve fromField/fieldRegex columns via getSidebarCustomValue(), mirroring the webview.js logic. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/auth/auth.ts,src/api/router.ts,src/core/utils.c,src/core/parser.h)other_locations, richcontent.body)outil(from filename regex) andpackage(fromlocation.pathviafromField/fieldRegex)applyFilters()to resolvefromField/fieldRegexcolumns correctly viagetSidebarCustomValue()Test plan
testdata/as a VS Code workspace — reports load automatically viareportPatternsoutilcolumn showseslint/codeparser/semgrepper issuepackagecolumn showsauth/api/coreper issuesrc/filepackagefilters correctly (was broken forfromFieldcolumns)other_locationsvisible on codeparser use-after-free issue🤖 Generated with Claude Code