mirror of
https://github.com/FabricMC/fabric.git
synced 2025-09-04 16:59:11 +00:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user