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>
This commit is contained in:
Copilot
2025-08-30 11:54:16 +01:00
committed by GitHub
parent e96ab00631
commit e6b6ce1447

View File

@@ -279,5 +279,10 @@
"/>
<message key="matchxpath.match" value="Inject local capture is not allowed, use @Local instead"/>
</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>