Skip to content

Commit

Permalink
No public API records
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Dec 5, 2024
1 parent f906699 commit ba59d5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,10 @@
<module name="MatchXpath">
<property name="query" value="//VARIABLE_DEF[./TYPE/IDENT[@text='var'] and not(./ASSIGN/EXPR/LITERAL_NEW)]"/>
</module>

<!-- Prevent public records in API packages -->
<module name="MatchXpath">
<property name="query" value="//RECORD_DEF[./MODIFIERS/LITERAL_PUBLIC][//PACKAGE_DEF//DOT/IDENT[@text='api']]"/>
</module>
</module>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package net.fabricmc.fabric.api.transfer.v1.storage.base;

//CHECKSTYLE.OFF: MatchXpath

/**
* An immutable object storing both a resource and an amount, provided for convenience.
* @param <T> The type of the stored resource.
Expand Down

0 comments on commit ba59d5e

Please sign in to comment.