Open Integralist opened 4 months ago
Thanks for opening an issue. You can absolutely specify the location of a config file when executing checkmake
(see https://github.com/mrtazz/checkmake?tab=readme-ov-file#usage).
For the automatic lookup I'll have to think about it. I've often found it confusing when tools do this because it's a set of implicit assumptions that aren't necessarily clear and make debugging harder. Maybe if there is a way to ask which config file is used that would make it better. I'll think about.
See PR #104 for a ~/checkmake.ini
fallback
Expected behaviour
I was hoping the checkmake tool would recursively check for checkmake.ini
e.g. if the current directory (containing a Makefile) has a checkmake.ini then that is used, but if not, move to the parent directory and check for checkmake.ini there, and so on until you reach the user's home directory where most people have configuration files.
Also, the ability to specify a location like
~/.config/checkmate.ini
would be coolActual behaviour
It only checks the current directory.
Output of
checkmake --version
Output of
checkmake --debug <your makefile>
N/A
Output of
make --version
N/A
Sample Makefile to reproduce issue
N/A