rules(minphony): allow overriding required phony targets in config#114
rules(minphony): allow overriding required phony targets in config#114obnoxxx merged 2 commits intocheckmake:mainfrom
Conversation
be2d51d to
d906f20
Compare
|
@mrtazz the CI fails on |
Well, I was not quite right:
./checkmake Makefile
RULE DESCRIPTION FILE NAME LINE NUMBER
maxbodylength Target body for "coverage" Makefile 75
exceeds allowed length of 5
lines (8).
maxbodylength Target body for "pizza" Makefile 159
exceeds allowed length of 5
lines (6). This confuses me since this PR does not have any diff that would explain this to me. |
d906f20 to
7b60e74
Compare
I missed the fact that I accidentally committed the removal of the Restoring the file has fixed the CI. |
|
added manpage update. |
|
I am currently trying to complete this PR by adding some unit test for the new behavior but still struggling with failures that I need to get rid of before updating. |
0ebb243 to
d635ea6
Compare
added the test to the PR even though I know it is currently failing. |
|
while there is still a failure of $ cat test.ini
[maxbodylength]
maxBodyLength = 3
[minphony]
required = foo, bar
$ cat test.mk
.PHONY: long
long:
@echo 1
@echo 2
@echo 3
@echo 4
@echo 5
@echo 6
@echo 7
@echo 8
@echo 9
$ make clean checkmake
...
$ ./checkmake --config=./test.ini ./test.mk
RULE DESCRIPTION FILE NAME LINE NUMBER
minphony Missing required phony target ./test.mk 3
"foo"
minphony Missing required phony target ./test.mk 3
"bar"
maxbodylength Target body for "long" exceeds ./test.mk 4
allowed length of 3 lines (9).
$ echo $?
3
$ |
d635ea6 to
aed5b1c
Compare
|
test fixed 😄 |
aed5b1c to
cf04577
Compare
|
updated once more to undo accidentally committed changes to |
This changes the minphony rule to allow the required phony targets to be overridden in the config file. Fixes: checkmake#113 Signed-off-by: Michael Adam <[email protected]>
This enhances the manpage by adding a description of how to override the configuration of the maxbodylength and minphony rules from thre config file. Signed-off-by: Michael Adam <[email protected]>
cf04577 to
c6181dd
Compare
|
@mrtazz any thoughts about this one? 😉 |
Description of changes
This changes the minphony rule to
allow the required phony targets to be overridden by the config file.
Resolves: #113
Checklist
Not all of these might apply to your change but the more you are able to check
the easier it will be to get your contribution merged.