Open fdegier opened 4 years ago
Whether it's on a line-by-line basis or just documenting how to use checkmake.ini
to disable rules, this would allow me to use checkmake on justfiles which are syntactically close enough to Makefiles that the main problem is the minphony
and phonydeclared
checks.
PHONY
construct because, being developed for adding build automation to a language which tracks rebuilds already (Rust), all tasks are have PHONY
behaviour and there's no other option.minphony
failures because test +args="":
and clean +args="":
don't match test:
and clean:
. (And a legitimate but unwanted complaint about a missing all
because, if just is already breaking from make to fix warts, I might as well fix something I don't like... that name.)
Most linters have an option to ignore rules in line as in some cases the rules are too strict. E.g. in the Makefile from this repo there is a rule, which IMHO is fine for reading purposes, but it does not follow the rules.
Adding the comment would seem logical to prevent checkmake to complain about rule violation:
To prevent this output, which contains a bug as described in #29 :