Class HazardScan
bin/hazard-scan src --report hazards.md
Options: --report <path> writes the Markdown report to a file instead of stdout;
--list prints the effective hazard table and exits; --table <tsv> adds a table, for
running against a working copy.
A finder, not a gate. Many hits are expected and benign — a SimpleDateFormat is
fixed by the import swap alone — so the exit status is 0 whenever the scan ran, matching
ImportSwap's doctrine. A non-zero status means the tool itself could not run. Nothing here
decides anything: the sections are an input to the guide's triage, and the two ⚠silent hazards keep
the ArchUnit backstop a source scan cannot replace.
The patterns live in META-INF/emul/hazards.tsv rather than in this class, so they are
inspectable (--list), joinable against spec.md §7 by a test, and extensible by an add-on jar
— see Hazards.
-
Method Summary
-
Method Details
-
main
-