Commit 824d9d6a authored by Chris Lamb's avatar Chris Lamb 💬

Avoid false-positives in source-contains-prebuilt-doxygen-documentation...

Avoid false-positives in source-contains-prebuilt-doxygen-documentation against Doxygen templates. (Closes: #930109)
parent eff39b84
Pipeline #50294 failed with stages
in 90 minutes and 21 seconds
......@@ -1025,8 +1025,15 @@ sub _check_html_cruft {
if($blocknumber == 0) {
if(index($block,'<meta name="generator"') > -1) {
if($block =~ m,<meta \s+ name="generator" \s+ content="doxygen,smx)
{
if(
$block =~ m,<meta \s+ name="generator" \s+
content="doxygen,smx
# Identify and ignore documentation templates by looking
# for the use of various interpolated variables.
# <http://www.doxygen.nl/manual/config.html#cfg_html_header>
&& $block
!~ m,\$(doxygenversion|projectname|projectnumber|projectlogo)\b,
){
tag 'source-contains-prebuilt-doxygen-documentation', $entry;
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment