<p>I'd really like to see this addressed.</p>
<p>I recently started getting such warnings from a package spec I maintain. It has several levels of nested <code>%if</code>s and cases where the <code>%if</code> and corresponding <code>%else</code>/<code>%endif</code> are separated by many lines. It's really helpful to be able to match up the conditionals with a simple connected comment. Even the C source code for the spec parser that is reporting this warning makes use of a <a href="https://github.com/rpm-software-management/rpm/blob/0488fdc927e6d31a0af55646fe51effe9592cb26/build/parseSpec.c#L813">comment on an <code>#endif</code> line</a>!</p>
<p>Also, note that the above referenced Fedora documentation describing spec file comments goes on to mention "inline comments"--so somebody was thinking about comments that didn't start at the beginning of a line.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/829?email_source=notifications&email_token=ADLPZU5YTQ2Z6K6DSJB5B2TQIKLULA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6DTVFI#issuecomment-528956053">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYG2AG7FR5FTSZ6JYLQIKLULANCNFSM4ITPUL2Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUZMH3TI66FPTY6YVU3QIKLULA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6DTVFI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/829?email_source=notifications\u0026email_token=ADLPZU5YTQ2Z6K6DSJB5B2TQIKLULA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6DTVFI#issuecomment-528956053",
"url": "https://github.com/rpm-software-management/rpm/issues/829?email_source=notifications\u0026email_token=ADLPZU5YTQ2Z6K6DSJB5B2TQIKLULA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6DTVFI#issuecomment-528956053",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>