style: 为 checkstyle 添加了 RegexpSingleline 规则 (#7156)

This commit is contained in:
快乐凤爪王 authored and GitHub committed 2026-11-01 21:25:13 +08:00
1 parent 2f17995955
commit fdc3500cc4
5 files changed
+11 -4

No files matched your search

@@ -324,7 +324,7 @@ public class AddonUpdatesPage extends BorderPane implements DecoratorPage {
LOG.warning("Failed to load addon icons", e);
}
}
if (data.localAddonFile() instanceof ResourcePackFile resourcePackFile) {
Image image = resourcePackFile.loadIcon();
@@ -315,7 +315,7 @@ public final class JavaManagementPage extends ListPageBase<JavaRuntime> {
if (oldItem != item) {
content.getTags().clear();
content.addTag(item.getArchitecture().getDisplayName());
content.addTag(item.getArchitecture().getDisplayName());
}
SVG newRemoveIcon = item.isManaged() ? SVG.DELETE_FOREVER : SVG.DELETE;
@@ -25,7 +25,7 @@ import static org.jackhuang.hmcl.util.logging.Logger.LOG;
* @author huangyuhui
*/
public final class GameAssetDownloadTask extends Task<Void> {
private final AbstractDependencyManager dependencyManager;
private final GameInstanceManifest manifest;
private final AssetIndexInfo assetIndexInfo;
@@ -10,7 +10,7 @@ import java.util.concurrent.Callable;
*/
public interface ExceptionalSupplier<R, E extends Exception> {
R get() throws E;
default Callable<R> toCallable() {
return this::get;
}
+7
View File
@@ -14,6 +14,13 @@
<property name="max" value="2000"/>
</module>
<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
<property name="minimum" value="0"/>
<property name="maximum" value="0"/>
<property name="message" value="Line has trailing whitespace."/>
</module>
<module name="TreeWalker">
<module name="SuppressionCommentFilter"/> <!-- use //CHECKSTYLE:OFF (...) //CHECKSTYLE:ON to disable checkstyle: http://checkstyle.sourceforge.net/config_filters.html#SuppressionCommentFilter -->
<module name="SuppressionXpathSingleFilter">