-
Notifications
You must be signed in to change notification settings - Fork 0
development
Jules Martins edited this page Jun 11, 2026
·
1 revision
Codelyzer has zero build-time dependencies for the frontend.
-
Clone the repo:
git clone https://github.com/julesklord/codelyzer.git
-
Run a local server:
While you can open
index.htmldirectly, some features (like Tree-sitter WASM loading) require a server context.npx serve .
Tests are located in the tests/ directory and use the native Node.js test runner.
node --test tests/-
Extraction Tests: Validate that the parser correctly identifies functions in various languages (see
tests/md-extractors.test.mjs). -
Smoke Tests: Ensure the analyzer can process a real repository without crashing (see
tests/codelyzer-repo-smoke.mjs). - Security Tests: Verify that the scanner detects known patterns of secrets/vulnerabilities.
To add a new language:
- Locate the
Parserobject inindex.html. - Add the file extension to
isCode. - Add a regex pattern to
extractfor function/dependency identification. - Add a test case in
tests/fixtures/and a corresponding unit test.
The "Codelyzer Card" lives in card/.
-
Entry:
card/index.js. -
Logic: It extracts the parser source from the root
index.htmland executes it in a Nodevmcontext to ensure the Action and Web App always share the same analysis logic.