Commit Graph
6 Commits
Author SHA1 Message Date
bjandClaude Sonnet 5.5 f48bd0c60f Read JavaScript as TypeScript without the types
Why: gtd-inbox-pull's Plan 6 runs the dryer over the swipe page's
JavaScript, and the dryer skipped .js files. This is for BJ's mirror only.

What changed: .js, .jsx, .mjs and .cjs are discovered as "javascript";
their .test and .spec forms are test files. extract.py gains a
"javascript" picker that parses with the JavaScript grammar and reuses
_typescript_nodes, since the tree is TypeScript's without type nodes.
No other code is keyed on the language name. README, pyproject, the CLI
help and the package docstring name JavaScript.

Proof: four tests written first and seen to fail on their own
assertions (language detection, test-file names, the language-set
tests with a JS pair, and the method and nested-function rule), then
the full suite passed (81 tests).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015GF1LYr5V3zY3815Nt6KwR
2026-11-15 16:45:46 +02:00
Robert C. Martin 66ff6d21a4 Bring every CRAP score under 10 except the option parser.
The reader, the normalizer, the TypeScript picker, and the fingerprint printer are each a small function. parse_args stays the option switch.
2026-10-03 18:03:53 -05:00
Robert C. Martin 2be6acadf5 Fail closed on git status and walk deep forms without recursion.
Status records are NUL-terminated, and a git failure returns git's status. .test.cts and .spec.cts are tests. Help lists every skipped directory.
2026-10-03 17:48:35 -05:00
Robert C. Martin c726bf0158 Add the Zero-Clause BSD license. 2026-10-03 08:48:27 -05:00
Robert C. Martin 6892667b34 Extract helpers and test the behavior mutation testing was missing.
The switches stay intact. The new tests pin option parsing, file selection, normalization, and which forms each language compares, so the survivors that remain are equivalent mutants.
2026-09-30 17:25:34 -05:00
Robert C. Martin fcf865759d Add a multi-language duplicate finder that writes .metrics/dry.edn. 2026-09-30 14:37:25 -05:00