This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
forked from minecraft-cursed-legacy/Cursed-Legacy-API
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckstyle.xml
60 lines (50 loc) · 2.47 KB
/
checkstyle.xml
1
<?xml version="1.0"?><!-- like 95% of the file is the parts I like from fabric's checkstyle --><!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"><module name="Checker"> <property name="localeLanguage" value="en"/> <property name="localeCountry" value="GB"/> <!-- Header --> <module name="Header"> <property name="headerFile" value="config/java.header"/> <property name="fileExtensions" value="java"/> </module> <!-- Stolen from fabric. I approve. --> <!-- disallow blank after { --> <module name="RegexpMultiline"> <property name="format" value="\{[\t ]*\r?\n[\t ]*\r?\n"/> <property name="message" value="blank line after '{'"/> </module> <!-- disallow blank before } --> <module name="RegexpMultiline"> <property name="format" value="\n[\t ]*\r?\n[\t ]*\}"/> <property name="message" value="blank line before '}'"/> </module> <!-- Fabric uses this - I stole this style from fabric and it's manifested in my normal code style. --> <module name="RegexpMultiline"> <property name="format" value="(?<=\n)([\t]+)\}\r?\n\1(?:[^\r\n\}cd]|c[^\r\na]|ca[^\r\ns]|d[^\r\ne]|de[^\r\nf])"/> <property name="message" value="missing blank line after block at same indentation level"/> </module> <module name="TreeWalker"> <module name="MissingOverride"/> <module name="StringLiteralEquality"/> <module name="UnusedImports"/> <module name="EqualsHashCode"/> <!-- spaces bad --> <module name="RegexpSinglelineJava"> <property name="format" value="^\t* ([^*]|\*[^ /])"/> <property name="message" value="non-tab indentation"/> </module> <module name="OuterTypeFilename"/> <module name="PackageName"> <property name="format" value="^com\.halotroop\.fabric\.(api(?!\.common\.)(\.client|\.server|)(\.(?!client\.|server\.)[a-z]+([a-rt-z]|ss))+\.v[1-9][0-9]*|(impl|mixin|test)(?!\.common\.)(\.client|\.server|)(\.(?!client\.|server\.)[a-z]+[a-rt-z])+|api\.(event|util|biomes\.v1|registry|client\.screen|container|block|entity|client\.itemgroup|client\.keybinding|tag|tools|client\.model|network|server|client\.render|resource|client\.texture))(|\.[a-z]+(\.[a-z0-9]+)*)$"/> <property name="message" value="package name doesn't fit the standard."/> </module> <!-- javadoc --> <module name="JavadocParagraph"/> <module name="JavadocStyle"/> <module name="AtclauseOrder"> <property name="tagOrder" value="@param,@return,@throws,@apiNote,@implNote"/> </module> </module></module>