Commit Graph

6 Commits

Author SHA1 Message Date
XeroOl
ea826576e3 clean up some documentation and code 2025-07-17 14:43:53 -05:00
XeroOl
c5f36ac813 clean up documentation strings 2025-07-14 01:14:31 -05:00
XeroOl
d219cfffcb clean up some lint documentation 2025-07-12 16:02:21 -05:00
Phil Hagelberg
aaf30a99be Update TODOs and other associated docs. 2025-02-27 19:53:33 -08:00
Phil Hagelberg
a27f42bfa4 Add match-should-case lint and fix action.
When a `match` call's patterns do not contain any symbols that reference
the outer scope, then there is no reason to use `match`; that call
should be replaced with `case`.

This allocates diagnostic code 308 to match-should-case.

In order to detect this, I had to add a loop over file.lexicals. This
is often a very large table, so it could adverse performance impact. I
believe it is necessary in order to distinguish between case vs match
since other means seem to only be applied after macroexpansion by
which time neither one exists.

I've updated docs/linting.md to mention the new loop and cleaned up a
few things in that file that were outdated.

I've added tests for the new lint to ensure it doesn't trigger when it
shouldn't.
2024-10-10 19:46:59 -05:00
XeroOl
e493b0e21f Reorganize the readme files 2024-07-07 23:29:46 -05:00