Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Update Checkstyle

  • Loading branch information...
ComputerBaer committed Aug 7, 2016
1 parent fbd9b57 commit 622b08221738bd65da4015a1e710f53b240bc405
@@ -18,13 +18,12 @@
*/
package tv.rewinside.rewimod.forge.gui;

import java.awt.Color;
import java.text.SimpleDateFormat;
import net.minecraft.client.gui.GuiScreen;
import tv.rewinside.rewimod.core.util.Chatlog;
import tv.rewinside.rewimod.forge.RewiForgeMod;

import java.awt.Color;
import java.text.SimpleDateFormat;

public class GuiRewiReportScreen extends GuiScreen {

private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("[HH:mm]");
@@ -22,8 +22,8 @@
import net.minecraft.client.gui.GuiMainMenu;
import net.minecraftforge.client.event.GuiOpenEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import tv.rewinside.rewimod.forge.gui.GuiRewiMainMenu;
import tv.rewinside.rewimod.forge.gui.GuiRewiIngameMenu;
import tv.rewinside.rewimod.forge.gui.GuiRewiMainMenu;

public class GuiListener {

@@ -32,7 +32,6 @@
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import org.lwjgl.opengl.Display;
import tv.rewinside.rewimod.core.RewiMod;
import static tv.rewinside.rewimod.core.RewiMod.LOGGER;
import tv.rewinside.rewimod.core.gui.ButtonFactory;
import tv.rewinside.rewimod.forge.handlers.GlStateManagerHandler;
import tv.rewinside.rewimod.forge.handlers.GuiHandler;
@@ -1,43 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">

<module name="Checker">

<!-- Check for new Line at EOF -->
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf"/>
</module>

<!--Check for trailing spaces -->
<module name="RegexpSingleline">
<property name="format" value="(^\s+$)|(\s+$)"/>
<property name="minimum" value="0"/>
<property name="maximum" value="0"/>
<property name="message" value="Line has trailing spaces."/>
</module>
<property name="format" value="(^\s+$)|(\s+$)"/>
<property name="minimum" value="0"/>
<property name="maximum" value="0"/>
<property name="message" value="Line has trailing spaces."/>
</module>

<module name="TreeWalker">

<!-- Check if Methods hava Javadoc Comments -->
<module name="JavadocMethod"/>

<!-- Check if Constants are written in Capital Letters -->
<module name="ConstantName"/>

<!-- Check if Package Name is correct -->
<module name="PackageName"/>

<!-- Check if non static fields begin lower case -->
<module name="MemberName"/>

<!-- Check if method identifiers begin lower case -->
<module name="MethodName"/>

<!-- Check for unused imports -->
<!-- Check imports -->
<module name="AvoidStarImport"/>
<module name="ImportOrder"/>
<module name="UnusedImports"/>


<!-- Check empty line separators -->
<module name="EmptyLineSeparator">
<property name="tokens" value="IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF"/>
</module>

<!-- Check different whitespaces -->
<module name="EmptyForIteratorPad"/>
<module name="GenericWhitespace"/>
@@ -55,7 +62,7 @@
<module name="NeedBraces">
<property name="allowSingleLineStatement" value="true"/>
</module>

<!-- Check Code -->
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
@@ -65,11 +72,11 @@
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="HideUtilityClassConstructor"/>

<!-- Check Misc -->
<module name="ArrayTypeStyle"/>
</module>

<!-- Check Classes for License Header -->
<module name="Header">
<property name="headerFile" value="${basedir}/config/checkstyle/header.txt" />
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">

<module name="Checker">

@@ -17,24 +17,31 @@
<property name="maximum" value="0"/>
<property name="message" value="Line has trailing spaces."/>
</module>

<module name="TreeWalker">

<!-- Check if Constants are written in Capital Letters -->
<module name="ConstantName"/>

<!-- Check if Package Name is correct -->
<module name="PackageName"/>

<!-- Check if non static fields begin lower case -->
<module name="MemberName"/>

<!-- Check if method identifiers begin lower case -->
<module name="MethodName"/>

<!-- Check for unused imports -->
<!-- Check imports -->
<module name="AvoidStarImport"/>
<module name="ImportOrder"/>
<module name="UnusedImports"/>


<!-- Check empty line separators -->
<module name="EmptyLineSeparator">
<property name="tokens" value="IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF"/>
</module>

<!-- Check different whitespaces -->
<module name="EmptyForIteratorPad"/>
<module name="GenericWhitespace"/>
@@ -52,7 +59,7 @@
<module name="NeedBraces">
<property name="allowSingleLineStatement" value="true"/>
</module>

<!-- Check Code -->
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
@@ -62,11 +69,11 @@
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="HideUtilityClassConstructor"/>

<!-- Check Misc -->
<module name="ArrayTypeStyle"/>
</module>

<!-- Check Classes for License Header -->
<module name="Header">
<property name="headerFile" value="${basedir}/config/checkstyle/header.txt" />

0 comments on commit 622b082

Please sign in to comment.
You can’t perform that action at this time.