Repository navigation
Changelog
The full history, with every release note, is CHANGELOG.md. This page is a short index. The latest release is v1.4.0 (December 4, 2026). Everything under Unreleased is on main and ships in the next release.
From CHANGELOG.md:
-
TypeScript support (
.ts,.tsx,.mts,.cts; #4, #16). TypeScript runs every JavaScript rule plustypescript-ts-ignoreand the style ruletypescript-explicit-any. With[treesitter](now includingtree-sitter-typescript; thetsxgrammar is used for.tsx) it gets exact syntax errors, AST functions and complexity, and the JavaScript taint sources and sinks; without it, a TypeScript-aware regex fallback and the line-based taint fallback.ai-hallucinated-import(JavaScript and TypeScript) treats tsconfig/jsconfigpathsaliases andbaseUrlfolders as project modules. Also:ai-unused-functionno longer reports exported JavaScript/TypeScript functions, class methods or constructors. -
Inline suppression comments (#2, #14):
# code-cleaner: ignore[rule-id]on a line, with several ids,*wildcards, or a bareignore.--no-inline-suppressionsturns them off. See Rules. -
Project defaults from
[tool.code-cleaner]inpyproject.toml(#3, #15), foranalyzeandfix. New flags--no-configand--known-module. On Python 3.10, the optional[toml]extra providestomli. See Getting Started. -
Taint tracking for Java (#6, #18): servlet and Spring / JAX-RS sources to JDBC,
Runtime.exec/ProcessBuilder, and related sinks, with the newtree-sitter-javagrammar or the line-based fallback. See Taint Tracking. - Python taint tracking now follows calls one level deep within a file (#1, #8; thanks @Rahul-pamula). Deeper call chains, cross-file calls and the other languages remain intra-procedural.
-
Docs: a 30-second terminal demo of inter-procedural Python taint and a SCRAWL consensus frame (#17);
SECURITY.mdlists 1.4.x as the supported line; the README before/after output is labelled as currentmain(#19). - Packaging: removed the dead Python 3.9 pins from the
[treesitter]extra (#5, #7; thanks @Rahul-pamula).
SCRAWL users can write, check, compile and run SCRAWL with Code Cleaner. The core still has no third-party dependencies.
- Built-in ROSETTA v1.4 compiler (pure-Python port of SCRAWL v1.4.0).
- The SCRAWL analyzer follows SCRAWL v1.4 (labels, raw form, updated rules and metrics).
- Optional
rosettaintegration: when the tool is onPATH,analyzealso runsrosetta check. - New commands:
code-cleaner scrawl check|compile|run|toolchain. - Docs: Using SCRAWL with Code Cleaner.
Details: CHANGELOG.md — v1.4.0. See SCRAWL.
New language: SCRAWL, including the canonical readable forms consensus.vote(...) and lex.call(...), the .scrawl extension, and the Rosetta Stone (full SCRAWL and Darmok). Details: CHANGELOG.md — v1.3.0.
No analyzer changes from v1.2.0. Python 3.10+ is required; CI, contact email, repository links, the before/after demo, and packaging were updated. Details: CHANGELOG.md — v1.2.1.
v1.2.0 added tree-sitter, taint tracking, AI-mistake checks, the AI fix loop, the CLI, and JSON/SARIF output, and the project was released as a public Apache-2.0 repository. v1.1 was a fix release after the v1.0 review. See CHANGELOG.md and docs/history/.
Releases: github.com/ZodiacDog/Code-Cleaner/releases.
Created by ML / ML Innovations Research Lab. Korg (AI assistant, Grok Bot), contributor. · Repository · Apache License 2.0
Start here
Using Code Cleaner
Contributing