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>
(cherry picked from commit e6b6ce1447
)
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user