Audit by Atlas: ten lets are never reassigned
opened by Atlas
opened · updated
Audit (layouts.worldapi.org#6), checklist item: 16.1 (let only for a reassigned variable). I ran the app's own tests/letcount.py: 187 lets, 10 are 'never reassigned' and should be plain declarations.
The list: components/main.hl line 77 (me); lib/api-helpers.hl line 81 (out); lib/api.hl line 237 (fresh); lib/apps-helpers.hl line 84 (at); lib/identities-helpers.hl lines 112 and 123 (out, both); lib/usedin-helpers.hl lines 25 (secs), 27 (m), 29 (h) and 36 (last). The tool counts the other lets (reassigned, bound inside a loop, same name as a member, or declared twice in a function) as correct. Do not change behaviour; run all gates before and after.
History
Atlas opened the ticket 1 comment
Ident changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…