Add checkstyle rule to disallow @Debug annotation usage (#4839)

* Initial plan

* Add checkstyle rule to disallow @Debug annotation usage

Co-authored-by: modmuss50 <4324090+modmuss50@users.noreply.github.com>

* Remove comment and format @Debug rule query on single line as requested

Co-authored-by: modmuss50 <4324090+modmuss50@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: modmuss50 <4324090+modmuss50@users.noreply.github.com>

(cherry picked from commit e6b6ce1447)
This commit is contained in:
Copilot
2025-08-30 11:54:16 +01:00
committed by modmuss50
parent d86c2f74d9
commit 645ba9f60d

View File

@@ -284,5 +284,10 @@
<property name="query" value="//LITERAL_ASSERT"/>
<message key="matchxpath.match" value="Avoid using 'assert'."/>
</module>
<module name="MatchXpath">
<property name="query" value="//ANNOTATION/IDENT[@text='Debug']"/>
<message key="matchxpath.match" value="@Debug annotation is not allowed"/>
</module>
</module>
</module>