Skip to content

benchmarks(errors): 13 mistakes from other frameworks' checks (part 3) - #224

Merged
JuroOravec merged 13 commits into
mainfrom
benchmarks/errors-part3
Oct 21, 2026
Merged

JuroOravec merged 13 commits into
mainfrom
benchmarks/errors-part3

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

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

  • Ref H, a Projects: 3 line: each framework writes the count its usual way, for example |length in Django and .length in 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

Citry Django Rusty Jinja django-unicorn django-components FastHTML ReactPy Nuxt Next.js
m51 list without key R n/a n/a n/a M n/a n/a Rw C C
m52 div inside p R M M M M M M M C R
m53 missing alt M C C C C C M M M E
m54 misspelled aria name M M M M C M M M E Cw
m55 invalid aria value E M M M M M M M E E
m56 duplicate attribute E C C C C C E C E E
m57 duplicate id M C C C C C M M M M
m58 loop over a non-list E R R R R R E E E E
m59 unknown helper E R R R R R E E E E
m60 handler arguments M n/a n/a n/a E° n/a M E° E° E
m61 route parameter R R R R R R R M M M
m62 disabled="false" M M M M M M M M M E
m63 binding on a form R M M M M M M M E M

Not applicable:

  • m51: in the server-rendered stacks, the browser never updates the list in place, so there is no key to leave out.
  • m60: in the Alpine stacks, each card hides itself inline, so there is no handler with parameters.

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.

Framework Before the app runs
Next.js 44 of 56
Nuxt 39 of 57
Citry 29 of 60
ReactPy 23 of 55
FastHTML 20 of 48
django-unicorn 12 of 54
Django 6 of 51
django-components 6 of 53
Rusty 6 of 49
Jinja 5 of 50

The new Citry gaps are recorded on #207.

🤖 Generated with Claude Code

JuroOravec and others added 11 commits October 21, 2026 09:37
…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
JuroOravec force-pushed the benchmarks/errors-part3 branch from 02d2b82 to 2448aba Compare October 21, 2026 07:37
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]>
Base automatically changed from benchmarks/errors-stricter to main October 21, 2026 07:42
main differs from this branch's base only in the stricter-settings run's
results files, which this branch's own run replaces.
@JuroOravec
JuroOravec merged commit b51fe94 into main Oct 21, 2026
4 checks passed
@JuroOravec
JuroOravec deleted the benchmarks/errors-part3 branch October 21, 2026 07:49
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant