Repository navigation
Conversation
Each was assigned without let/var, creating a global, but is only used within the function (or loop) that assigns it, and is not used by any other script on the page, so let does not change behaviour.
rows, cols, cellSelector and inputElement were implicit globals shared by setMatrixA, setMatrixB, setH0 and setH1. Each function assigns them before reading them and none calls another, so declaring them locally does not change behaviour.
Previous review (2026-11-09)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head This PR, which declares SysID's implicit globals as locals and prunes the matching ESLint suppressions, looks correct. Base and head behave the same in browser harnesses, and the suppression counts match a fresh ESLint run. Minor
|
temp_data in the two compensation loops was an implicit global that nothing read; declaring it only made it an unused local. Drop it and prune its suppressions.
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head This PR, which turns SysID's implicit globals into locals and prunes the matching ESLint suppressions, looks good to merge. Base and head behave the same in harness tests, and the suppression counts match a fresh ESLint run. Since the last review the only change is the reworded body of commit 8d22e3a, which no longer has the copied dbl/triple text. The code is identical. Minor (2)
|
Fixes ESLint problems in SysID and removes the fixed entries from
eslint-suppressions.json. None of the changes alter behaviour.temp_datain the compensation loops was an implicit global that nothing read; declaring it would only make it an unused local, so it is removed.One commit per kind of fix;
npm run lintpasses.