checkmake
checkmake copied to clipboard
experimental linter/analyzer for Makefiles
Support: ```makefile VAR:=value ``` It currently treats VAR as a target: ``` Target "VAR" should be declared PHONY ```
Support: ```makefile PHONY += all all: true .PHONY: ${PHONY} ``` It currently gives the error: `Target "all" should be declared PHONY`
### Expected behaviour Instead of warning a missing .PHONY test, check if a check target exists instead. ### Actual behaviour With GNU Makefiles it warns about a missing make test...
### Expected behaviour Shell code is expected to be linted. ### Actual behaviour Now no errors are thrown for incorrect shell commands. ### Output of `checkmake --version` ### Output of...
Please don't enforce a PHONY declaration for tasks that are not declared in our Makefiles. That is, if `clean` isn't even implemented, then it should not be marked PHONY. Same...
I tried several variations of a configuration file like this, but none of them have any effect on the behavior of checkmake. checkmake.ini: ```ini [minphony] required=all clean ``` checkmake insists...
In order to more quickly distinguish between bmake and gmake files, we could create a new linter rule that warns on ambiguous files. Basically, `Makefile` is ambiguous. This can lead...
Can we please expand the number of precompiled ports of checkmake for the various Go friendly platform pairs? We could easily do ARM ports, FreeBSD ports, and more by asking...
Fixed the minphony implementation to actually support overriding from checkmake.ini file. Long term, there is some refactoring to do in the data models and overriding logic, such as for maxbodylength...
It seems that default `checkmake` does not follow `include` directives; it would be nice if it did to get a comprehensive review of distributed Makefile setups; for example: ```Makefile ##...