-
Notifications
You must be signed in to change notification settings - Fork 52
rules(minphony): allow overriding required phony targets in config #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <obnox@samba.org>
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 <obnox@samba.org>
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.