Repository navigation
benchmarks(errors): 13 mistakes from other frameworks' checks (part 3) - #224
Merged
Merged
Conversation
12 tasks
…or benchmark Applies the 2026-10-20 decision on stricter settings to every framework: when a framework has a setting that turns on a stricter check, and other frameworks here have the same kind of check, the clean app turns it on. - Jinja: `undefined=StrictUndefined`, through Starlette's `env=` argument. - Nuxt: `vueCompilerOptions.strictTemplates` (unknown components, elements, attributes, directives and component events in vue-tsc) and `experimental.typedPages`. - Next.js: `typedRoutes`. - django-components: `extra='forbid'` on its Pydantic models, so unknown names stay rejected as django-components' default named tuples reject them. - Citry, Django, Django Rusty Templates and FastHTML have no such setting; their notes say what was considered. No clean app needed a change. Each framework's notes name the settings changed and those considered and left off, with the reason. The django-components notes no longer say that Citry checks input types when a component renders: Citry 0.6.0 checks them before the app runs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Next.js also turns on `noUncheckedIndexedAccess` and `noImplicitOverride`, which the tsconfig Nuxt generates turns on; no case depends on either. - Every framework's notes list the settings considered and left off, with the reason: Citry's ty rules (Citry keeps ty's findings only in template expressions, where its own check already reports an unknown name), TypeScript `strict` in Citry's check, Pydantic `Kwargs` and `mode`; Django's template logging and `checkJs`; @nuxt/eslint's type-aware rules (most report kinds of mistake no other framework here checks); Next.js's `typedEnv`, `strictRouteTypes`, `taint`, `verbatimModuleSyntax` and unset jsx-a11y rules. - The design doc states when a setting is left off, how an option that turns on many checks is judged, and that each linter keeps its framework's preset. The README lists the settings that are on and why pyright and ruff keep their modes; the plan marks the stricter-settings item done; the docs page's "How we measured" lists them. The README notes on m36 and m45 and the docs page describe the run that the publish commit adds; its counts and data file land with that run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ngo-unicorn apps ReactPy's notes give the rule's reason for its debug mode: `next dev` and `nuxt dev` run React's and Vue's development checks of the same kind. django-unicorn's notes say why it changes nothing: none of its settings turns on a check, and its HTML check follows Django's DEBUG, which is on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Next.js also turns on `verbatimModuleSyntax`, the third TypeScript option beyond `strict` that the tsconfig Nuxt generates turns on. The clean app type-checks and builds unchanged, and no case depends on it. - The notes and README say which names Citry checks where they compare it with vue-tsc's strict template check, list django-unicorn among the apps that check links when the page renders, and give the reason pyright keeps its standard mode. - The docs page names Nuxt's component events and says Citry, Django, Rusty, FastHTML and django-unicorn keep their defaults because none of their settings adds a kind of check the others make. - Paragraphs merged during the rebase are rewrapped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ettings Replaces results/2026-10-20/ with results/2026-10-21/, a full run of the 49 mistakes in the ten frameworks (490 cases, `--no-cache`, about 24 minutes) taken at commit abb4f5e with no uncommitted benchmark changes. No clean app reported a problem in any stage or journey. Nine cells changed from the published run, each as predicted before the run, and each from a setting turned on in this PR: - Jinja m04, m08, m36: missed -> runtime error (StrictUndefined: a macro called without `title`, `owner.nmae` and a misspelled slot-data name now raise when the page renders). - Nuxt m01, m11, m21: runtime error -> editor; m10, m29: missed -> editor (vue-tsc `strictTemplates`: unknown component, element, directive, attribute and component event). - Next.js m45: runtime error -> editor (`typedRoutes`). Before the app runs: Next.js 35 of 43, Nuxt 30 of 44, Citry 25 of 47. The docs data file follows the run; the docs page and README already describe it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he error catalogue Adds 13 mistakes to catalogue.toml before any case is written, so the wording is fixed before a result is seen: m51 to m63, the part 3 mistakes from the plan's survey of what other frameworks' tools check (list keys, invalid nesting, alt text, ARIA names and values, duplicate attributes and ids, a loop over a number, an unknown length filter or helper, handler arguments, a route parameter of the wrong type, a boolean attribute given "false", and a two-way binding on the form). All 13 are neutral, which leaves 50 of 62 neutral. m50 still waits for the shared value (Ref G). The entries are the plan's drafts with these changes: - m51 speaks of updating the list in place, and the key is made from the project, since the apps key their cards by slug or by title. - m52 gives an example of the nesting. - m56 says the second `class` is added in front of the first, and that where the last one wins, as in JSX, the page keeps its class. - m57 keeps the draft, which presumes that the board wrapper has the id `board`; the next commit gives it that id, together with Ref H. - m58 gives an example of which count. - m59 names `length(projects)` as the wrong helper for Python's `len`. - m60 speaks of one more argument than the event sends, since some cards send no value, says the handler uses it, and says where the mistake does not apply. - m61 names the slug as the wrong value and says the route declares the parameter as a number only where the router can. - m63 names `x-model` and `unicorn:model` and the `<form>`, the element that holds the search field in every app. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… benchmark's reference apps Adds reference-page part H from the plan to all ten baselines: a line `Projects: 3` under the owner line, counted in the template with the template language's own length filter or helper. Django, Rusty, django-components, Jinja and django-unicorn use `|length` (django-unicorn in its card list's template, which holds the cards); Next.js and Nuxt read the list's `.length`; FastHTML and ReactPy call `len()`. Citry templates have no Python builtins, so the board page passes `len` from `template_data()`, as Citry's expressions docs show. The board wrapper also gets `id="board"` in every app. m57's catalogue entry gives the heading the id the wrapper already has, so the clean page needs it. The id changes the wrapper's opening tag, so m10, m11 and m16 (26 cases) get the new tag in their edits' `old` and `new` text, with the same mistake as before. The README's reference-page table describes the two additions and names the part 3 mistakes that use each part. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…to all ten frameworks Adds a case for m51 to m63 in each of the ten frameworks (130 cases). Twelve do not apply: - m51 (no list key) in Django, Rusty, django-components, Jinja and FastHTML: the server renders the cards and the browser never updates the list in place, so there is no key to leave out. - m60 (a handler that takes more arguments than the event sends) in Django, Rusty, django-components and Jinja: each card's Alpine wrapper hides itself with the inline statement `@hide="shown = false"`, so there is no handler with parameters. Three m60 cases carry an `indirect` note, because the type checker reports the extra parameter where the handler is called or returned, not at its signature: Nuxt (vue-tsc TS2554 at the template's `hide(card.title)`), ReactPy (pyright reportReturnType where `make_hide` returns `hide`) and django-unicorn (pyright reportCallIssue at the card's `self.parent.hide(...)`, as for m29). The notes were added after the first run showed the findings unconfirmed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Applies a review finding. m61's catalogue entry says the project route
declares its id as a number where the router can. Nuxt's file-based
route cannot declare a type, but Nuxt's routing docs check a parameter
with `definePageMeta({ validate })`, the counterpart of the Django,
Jinja, FastHTML and ReactPy routes' `int` converters and Citry's
`\d+` path pattern. The Nuxt project page now checks that the id is
digits, so a link to `/projects/alpha` shows Nuxt's 404 page instead of
`Project alpha`. Neither shows an error, so m61 stays missed in Nuxt.
The check narrows the route's params with `'id' in route.params`,
because typed pages type them for every page.
Next.js has no counterpart: its route segments carry no type and no
router-level check, so its project page stays as it was.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ther frameworks' tools catch Replaces the report in results/2026-10-21/ with a full run of the 62 mistakes in the ten frameworks (620 cases, `--no-cache`, about 31 minutes) taken at commit be0ce45 with no uncommitted benchmark changes. No clean app reported a problem in any stage or journey, and no cell of m01 to m49 changed from the published run. Before the app runs: Next.js 44 of 56, Nuxt 39 of 57, Citry 29 of 60. Citry catches m55, m56, m58 and m59 in the editor, reports m51, m52, m61 and m63 only when the page renders or the link is followed, and misses m53, m54, m57, m60 and m62. The README gains notes on the new cells and on django-unicorn's and ReactPy's differences, and the run time; the docs page, its data file, the design doc's cost and the plan (PR 5 done, what the run found in Citry) follow the run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…blish Applies an independent prose review and an independent check of every claim against the run: - The plan's PR 5 row counts 9 cases that do not apply, not 12. The message of commit c494548 says "Twelve do not apply" in error; its own list (m51 in five frameworks, m60 in four) adds up to nine. - The docs page's description says 62 mistakes. Its missed bullet for alt text, ARIA names and repeated ids names what the reader would notice, and two runtime bullets name the link and the loop plainly. - README: the m60 note says which framework reports the extra argument on the handler itself; the m61 note names ReactPy's and Nuxt's not-found pages separately; the m63 note covers ReactPy; the djLint note also covers m56 (H037) and says which apps are the Alpine apps; the m51 notes name what the page shows; and the ReactPy and django-unicorn run times are marked as measured before m51 to m63. Co-Authored-By: Claude Opus 5.5 <[email protected]>
JuroOravec
force-pushed
the
benchmarks/errors-part3
branch
from
October 21, 2026 07:37
02d2b82 to
2448aba
Compare
GitHub rebased this branch when #222 merged. The run used be0ce45, whose files are identical to 607089a on this branch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
JuroOravec
added a commit
that referenced
this pull request
Oct 21, 2026
Run 20261021T005054Z covers eleven frameworks and 682 cases from commit db9db45, with nothing stored (about 35 minutes, --jobs 5). No cell of the other ten frameworks changed from #224's published run: the esbuild parser reads only Tetra's build stage, and running setup again when its command changes re-prepared every environment without changing a cell. Tetra: 8 static errors, 1 static warning, 16 runtime errors, 31 missed, 5 not applicable, 1 prevented. The docs page's "Catching errors" section, its data file, the README, the design doc and the plan now include Tetra. The Tetra notes apply the review of the part 3 cases: the stricter-settings paragraph names every Tetra setting, corrects what esbuild's log options do, says why Pydantic's strict types stay off, and the notes describe m59 and m60; the m51 case and the card list's key comment say what the key does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
main differs from this branch's base only in the stricter-settings run's results files, which this branch's own run replaces.
JuroOravec
added a commit
that referenced
this pull request
Oct 21, 2026
main matches the merged #224, which this branch already contains, so the files are unchanged.
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.
Part 3 of the error-prevention benchmark (#158, plan PR 5). It adds 13 mistakes taken from what other frameworks' tools check, so the benchmark also shows where those tools are ahead of Citry. Stacked on #223; merge that first.
The first commit adds only the catalogue entries, so their wording was fixed before any result was seen.
Clean app additions
Projects: 3line: each framework writes the count its usual way, for example|lengthin Django and.lengthin Next.js.id="board"on the board wrapper, which m57 (repeated id) needs. 26 existing cases changed only the surrounding text their edits search for, and each still makes the same mistake.The 13 new mistakes
E = editor, C = check, Cw = check warning, R = runtime error, Rw = runtime warning, M = missed, ° = reported away from the mistake line, with a note saying why it counts
disabled="false"Not applicable:
Totals, 62 mistakes
run --no-cache: 620 cases, about 31 minutes. Every clean app passed every stage and journey, and no cell of m01–m49 changed.The new Citry gaps are recorded on #207.
🤖 Generated with Claude Code