Why three commands
What pun format, pun lint, and pun analyse each do, and the order pun check runs them in.
Each command does one job. pun check runs all three.
pun formatchanges layout, casing, and spelling only. It never changes what the code does, so you can run it on save. Risky fixers that change behaviour, such as rewriting==to===, are lint rules liketypes/no-loose-comparison.pun lintreports problems in a file, and--fixfixes many of them. Upgrades, such as newer PHP syntax, come as lint sets likemodernize.pun analysechecks types across files, like PHPStan, and never edits files. Each finding has an identifier such asargument.type.
pun check --fix applies lint fixes, formats the result, and then analyses the final code. It reports only what is left.