v0.5.0 introduces my favorite check I had in my mind when I started this project.
You have an imperative status machine here. With a suggestion to refactor it to stop relying on silly imperative hard-coded statuses and benefit from leveraging the actual FSM.
Latest ragex also received the respective analysis and suggestions for refactoring.
Enjoy.
If you are on Elixir 1.20 and explicitly have {:typle, “~> 0.1”, only: [:dev]} included, you’ll get a check for unsolicited/abused Access calls on maps with a known literal atom keys.
a = map[:key] #⇒ ✗ FLAGGED with `use map.key`
a = kw[:key] #⇒ ✓ NOT FLAGGED






















