satura/config/pmd/pmd.xml
loki5512344 2ae354f888
Redesign GUI, surface-aware planning, edge-safe walking and /fly-aware flight
- GUI: custom-rendered Satura screen (sidebar, pages, cards, sliders, status bar);
  old vanilla-widget screen removed; texts in lang files
- Flight: constant height per Y window (default hover 2), eased velocity,
  flight enabled like a double jump (sends abilities update), pause when
  flight is unavailable (/fly hint) and auto-resume; default flySpeed 0.5
- Planner offers only cells with contact (below or side); unsupported cells wait
- GroundWalk/BaritoneWalk walk to a stand block next to the cell, never off an
  edge (sneak guard); Baritone goal is a block instead of the target column
- Profiles: named profiles, active profile persisted, .build profile, GUI page
- MSDF fonts moved to assets/satura/msdf (vanilla tried to parse them as fonts)
- Tests for stand finder, edge guard, planner support, flight, profiles
2026-10-31 21:07:57 +01:00

75 lines
2.8 KiB
XML

<?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 ruleset: errorprone, bestpractices, design, codestyle, performance, multithreading, security</description>
<rule ref="category/java/errorprone.xml">
<exclude name="AvoidFieldNameMatchingMethodName"/>
</rule>
<rule ref="category/java/bestpractices.xml">
<exclude name="GuardLogStatement"/>
<exclude name="AccessorMethodGeneration"/>
<exclude name="UnusedPrivateMethod"/>
</rule>
<rule ref="category/java/design.xml">
<exclude name="TooManyMethods"/>
<exclude name="CyclomaticComplexity"/>
<exclude name="CognitiveComplexity"/>
<exclude name="ExcessiveImports"/>
<exclude name="LawOfDemeter"/>
<exclude name="LoosePackageCoupling"/>
<exclude name="UseUtilityClass"/>
</rule>
<rule ref="category/java/codestyle.xml">
<exclude name="AtLeastOneConstructor"/>
<exclude name="OnlyOneReturn"/>
<exclude name="ShortVariable"/>
<exclude name="LongVariable"/>
<exclude name="ShortClassName"/>
<exclude name="ShortMethodName"/>
<exclude name="CommentDefaultAccessModifier"/>
<exclude name="LocalVariableCouldBeFinal"/>
<exclude name="MethodArgumentCouldBeFinal"/>
<exclude name="PrematureDeclaration"/>
<exclude name="UselessParentheses"/>
<exclude name="TooManyStaticImports"/>
<exclude name="FieldDeclarationsShouldBeAtStartOfClass"/>
<exclude name="UnnecessaryBoxing"/>
<exclude name="LinguisticNaming"/>
<exclude name="ConfusingTernary"/>
<exclude name="UnnecessaryConstructor"/>
<exclude name="UnnecessaryAnnotationValueElement"/>
<exclude name="UseExplicitTypes"/>
</rule>
<rule ref="category/java/performance.xml">
<exclude name="AvoidInstantiatingObjectsInLoops"/>
</rule>
<rule ref="category/java/multithreading.xml">
<exclude name="DoNotUseThreads"/>
<exclude name="UseConcurrentHashMap"/>
<exclude name="AvoidSynchronizedAtMethodLevel"/>
</rule>
<rule ref="category/java/security.xml"/>
<!-- Порог сложности строже дефолта -->
<rule ref="category/java/design.xml/CyclomaticComplexity">
<properties>
<property name="methodReportLevel" value="10"/>
</properties>
</rule>
<rule ref="category/java/design.xml/CognitiveComplexity">
<properties>
<property name="reportLevel" value="15"/>
</properties>
</rule>
</ruleset>