Closed Kreyren closed 4 years ago
If I run it on the Makefile from the docker branch it also seems to report the incorrect line number, it gives the line number from the next command instead of the one that had a bug.
RULE DESCRIPTION LINE NUMBER
phonydeclared Target "binaries" should be 58
declared PHONY.
maxbodylength Target body for "coverage" 72
exceeds allowed length of 5
(8).
Expected behaviour
Suggest correct line
155
for conflicting minphonyActual behaviour
Conflicting line is
155
where line number0
is suggested:Output of
checkmake --version
Using commit https://github.com/mrtazz/checkmake/commit/03dd76b964dd2cf535a7e1f0efe5731c183a3071
Output of
checkmake --debug <your makefile>
https://gist.githubusercontent.com/Kreyren/03329ef4dd8c6b35152ca49cb93a27f7/raw/66f97f8c0acc21798a81b98f68f0e3a8e37ca4b2/gistfile1.txt
Output of
make --version
Sample Makefile to reproduce issue
https://gist.githubusercontent.com/Kreyren/788b99fc6a926fe1f7503b034c2b40f8/raw/3f8ebccd9557b348600a0987e8dc86292167157d/gistfile1.txt