Skip to content

Commit 62c44e0

Browse files
committed
fix pmd law-of-demeter in ruleset
1 parent fba3469 commit 62c44e0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

config/pmd/pmd-ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
<exclude name="OnlyOneReturn"/>
3636
</rule>
3737

38+
<!-- Excluded this rule to allow simple behaviour like parameter.method()
39+
or chained getter calls (transversing dtos) -->
3840
<rule ref="category/java/design.xml">
41+
<exclude name="LawOfDemeter"/>
3942
</rule>
4043

4144
<rule ref="category/java/documentation.xml">

core/src/main/java/cloud/stackit/sdk/core/auth/SetupAuth.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import cloud.stackit.sdk.core.config.EnvironmentVariables;
77
import cloud.stackit.sdk.core.exception.CredentialsInFileNotFoundException;
88
import cloud.stackit.sdk.core.exception.PrivateKeyNotFoundException;
9+
import cloud.stackit.sdk.core.model.ServiceAccountCredentials;
910
import cloud.stackit.sdk.core.model.ServiceAccountKey;
1011
import cloud.stackit.sdk.core.utils.Utils;
1112
import com.google.gson.Gson;

0 commit comments

Comments
 (0)