Satura: каркас мода, ядро, селекция, план, рендер, стратегии постановки и движок
Фазы 0-5: сборка Gradle/Loom, core (события, команды, конфиг), selection/plan/scan, рендер (перенесён из Atheryx, см. NOTICE.md), стратегии ColumnDrop/BandStack, HotbarRefill/ClickScheduler, BuildEngine и команды .build.
This commit is contained in:
commit
b26dfbbade
169 changed files with 7825 additions and 0 deletions
43
config/checkstyle/checkstyle.xml
Normal file
43
config/checkstyle/checkstyle.xml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
||||
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
||||
|
||||
<!-- Правила проекта satura: FileLength 200 — единственный жёсткий (error) гейт,
|
||||
остальное — предупреждения. -->
|
||||
<module name="Checker">
|
||||
<property name="charset" value="UTF-8"/>
|
||||
<property name="severity" value="warning"/>
|
||||
|
||||
<module name="FileLength">
|
||||
<property name="max" value="200"/>
|
||||
<property name="severity" value="error"/>
|
||||
<property name="fileExtensions" value="java"/>
|
||||
</module>
|
||||
|
||||
<module name="FileTabCharacter">
|
||||
<property name="eachLine" value="true"/>
|
||||
</module>
|
||||
|
||||
<module name="NewlineAtEndOfFile"/>
|
||||
|
||||
<module name="LineLength">
|
||||
<property name="max" value="120"/>
|
||||
</module>
|
||||
|
||||
<module name="TreeWalker">
|
||||
<module name="UnusedImports"/>
|
||||
<module name="RedundantImport"/>
|
||||
<module name="OneTopLevelClass"/>
|
||||
<module name="OuterTypeFilename"/>
|
||||
<module name="FinalClass"/>
|
||||
<module name="HideUtilityClassConstructor"/>
|
||||
<module name="StringLiteralEquality"/>
|
||||
<module name="EmptyCatchBlock">
|
||||
<property name="exceptionVariableName" value="expected|ignore|ignored"/>
|
||||
</module>
|
||||
<module name="FallThrough"/>
|
||||
<module name="SimplifyBooleanExpression"/>
|
||||
<module name="SimplifyBooleanReturn"/>
|
||||
</module>
|
||||
</module>
|
||||
25
config/pmd/pmd.xml
Normal file
25
config/pmd/pmd.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset name="satura"
|
||||
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0
|
||||
https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
|
||||
|
||||
<description>Satura base ruleset: errorprone + bestpractices + design (без шума)</description>
|
||||
|
||||
<rule ref="category/java/errorprone.xml"/>
|
||||
|
||||
<rule ref="category/java/bestpractices.xml">
|
||||
<exclude name="GuardLogStatements"/>
|
||||
<exclude name="AccessorMethodGeneration"/>
|
||||
<exclude name="UnusedPrivateMethod"/>
|
||||
</rule>
|
||||
|
||||
<rule ref="category/java/design.xml">
|
||||
<exclude name="TooManyMethods"/>
|
||||
<exclude name="ExcessiveImports"/>
|
||||
<exclude name="LawOfDemeter"/>
|
||||
<exclude name="LoosePackageCoupling"/>
|
||||
<exclude name="UseUtilityClass"/>
|
||||
</rule>
|
||||
</ruleset>
|
||||
Loading…
Add table
Add a link
Reference in a new issue