-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
tools/doccheck: add simple exclude to doccheck #19240
Conversation
dist/tools/doccheck/exclude_simple
Outdated
drivers/ir_nec/include/ir_nec_params.h:35: warning: Member IR_NEC_PARAM_PIN (macro definition) of file ir_nec_params.h is not documented. | ||
drivers/ir_nec/include/ir_nec_params.h:39: warning: Member IR_NEC_PARAMS (macro definition) of file ir_nec_params.h is not documented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two actually need a regex to match the line numbers, otherwise anyone adding or deleting a line above the definition of the macros would need to touch this file again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right (they where like this in the exclude_patterns before)
! there are no regex in exclude_simple
that is the reason it requires less memory !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops :(
Care to piggy-back a fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i made that a exclude simple line
warning: Member IR_NEC_PARAM_PIN (macro definition) of file ir_nec_params.h is not documented.
warning: Member IR_NEC_PARAMS (macro definition) of file ir_nec_params.h is not documented.
see the fixup
bed6e5b
to
6cb774e
Compare
uniq and sorted simple excludes removes no longer needed exclude patterns
6cb774e
to
ce6a42e
Compare
bors merge |
Build succeeded: |
while doccheck runs for #19228 and #19220, i saw some spikes in memory consumption, turned out that was
grep -Evf dist/tools/doccheck/exclude_patterns
using about 2GB RAM. This PR changes that.Contribution description
add
exclude_simple
todoccheck
drived fromexclude patterns
sort
ed anduniq
ued the simple excludesremoves no longer needed patterns from
exclude patterns
simple excludes are string rules (no patterns just strings)
how to apply these:
in this PR:
*remove the path and line number from the rule
another possible solution would be to have the excludes line number specific.
Testing procedure
run
dist/tools/doccheck/check.sh
compare memory consumption of
master:
grep -Evf dist/tools/doccheck/exclude_patterns
to
this PR:
grep -Fvf dist/tools/doccheck/exclude_simple
Issues/PRs references