Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
029bf2f
Don't fail on broken links
AB-xdev Oct 21, 2024
d8499f5
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Oct 22, 2024
9ad20ee
Update dependency org.apache.maven.plugins:maven-project-info-reports…
xdev-renovate Oct 22, 2024
04e7b76
Merge pull request #107 from xdev-software/renovate/org.apache.maven.…
AB-xdev Oct 23, 2024
009f795
Initial commit
AB-xdev Oct 24, 2024
efcd43e
Init
AB-xdev Oct 24, 2024
eeb917d
Merge remote-tracking branch 'origin/update-from-template'
AB-xdev Oct 24, 2024
b8de24f
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Oct 24, 2024
7b52575
Merge pull request #71 from xdev-software/master
AB-xdev Oct 25, 2024
473ce31
Update dependency org.apache.maven.plugins:maven-checkstyle-plugin to…
xdev-renovate Oct 26, 2024
f2c6db4
Update dependency org.apache.maven.plugins:maven-jxr-plugin to v3.6.0
xdev-renovate Oct 26, 2024
216f465
Update net.sourceforge.pmd to v7.7.0
xdev-renovate Oct 26, 2024
f798625
Update dependency com.puppycrawl.tools:checkstyle to v10.19.0
xdev-renovate Oct 27, 2024
b17cadc
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Oct 28, 2024
5f47092
Merge pull request #111 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Oct 28, 2024
07efa5e
Merge pull request #112 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Oct 28, 2024
5bcfa6a
Merge pull request #110 from xdev-software/renovate/org.apache.maven.…
AB-xdev Oct 28, 2024
186b89e
Merge pull request #109 from xdev-software/renovate/org.apache.maven.…
AB-xdev Oct 28, 2024
d13b2de
Changes for PMD 7.7
AB-xdev Oct 28, 2024
526dc31
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Oct 28, 2024
a2d6ebc
Update dependency org.apache.maven.plugins:maven-pmd-plugin to v3.26.0
xdev-renovate Oct 29, 2024
9e9f2a9
Tighten timeouts
AB-xdev Oct 30, 2024
02fc7af
Tighten timeouts
AB-xdev Oct 30, 2024
f01dac4
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Oct 30, 2024
9013244
Merge pull request #114 from xdev-software/renovate/org.apache.maven.…
AB-xdev Oct 30, 2024
89a6b05
Update check-build.yml
AB-xdev Oct 30, 2024
1b39a9f
Merge branch 'master' of https://github.com/xdev-software/standard-ma…
AB-xdev Oct 30, 2024
71f1b1d
Update dependency com.puppycrawl.tools:checkstyle to v10.20.0
xdev-renovate Nov 1, 2024
d7b7b8a
Update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3…
xdev-renovate Nov 3, 2024
1342d3c
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Nov 4, 2024
1de2699
Merge pull request #116 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Nov 4, 2024
06e8428
Merge pull request #117 from xdev-software/renovate/org.apache.maven.…
AB-xdev Nov 4, 2024
d7926e6
Update dependency com.puppycrawl.tools:checkstyle to v10.20.1
xdev-renovate Nov 8, 2024
dbc8f3d
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Nov 11, 2024
8d16f5b
Update CheckStyle version
AB-xdev Nov 11, 2024
19236b6
Merge pull request #118 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Nov 11, 2024
946e9b2
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Nov 12, 2024
ec8111a
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Nov 18, 2024
cd757ff
Update dependency org.apache.maven.plugins:maven-surefire-plugin to v…
xdev-renovate Nov 18, 2024
bcb1885
Update org.seleniumhq.selenium to v4.26.0
xdev-renovate Nov 18, 2024
ede5384
Merge pull request #79 from xdev-software/renovate/org.apache.maven.p…
AB-xdev Nov 18, 2024
abc4e0d
Merge pull request #78 from xdev-software/renovate/org.seleniumhq.sel…
AB-xdev Nov 18, 2024
296de7e
Update default selenium version
AB-xdev Nov 18, 2024
5bd52ef
Update dependency org.testcontainers:testcontainers to v1.20.4
xdev-renovate Nov 21, 2024
7deb403
Merge pull request #84 from xdev-software/renovate/org.testcontainers…
AB-xdev Nov 21, 2024
d12ec22
Generate sources and javadoc during package and not verify
AB-xdev Nov 22, 2024
8a1e312
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Nov 25, 2024
2ec98d3
Update net.sourceforge.pmd to v7.8.0
xdev-renovate Nov 30, 2024
6b853f1
Update dependency com.puppycrawl.tools:checkstyle to v10.20.2
xdev-renovate Dec 1, 2024
3c1b46c
Merge pull request #120 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Dec 2, 2024
143c769
Merge pull request #121 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Dec 2, 2024
07c48c8
Update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3…
xdev-renovate Dec 8, 2024
6fb5c62
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Dec 9, 2024
94e2149
Remove duplicated save action
AB-xdev Dec 9, 2024
adae2de
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Dec 9, 2024
edde4f6
Merge pull request #122 from xdev-software/renovate/org.apache.maven.…
AB-xdev Dec 9, 2024
105d452
Update dependency com.puppycrawl.tools:checkstyle to v10.21.0
xdev-renovate Dec 13, 2024
f891add
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Dec 16, 2024
ec586b6
Merge pull request #124 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Dec 16, 2024
41b4cfb
Update org.seleniumhq.selenium to v4.27.0
xdev-renovate Dec 16, 2024
73b158a
Update to latest checkstyle version
AB-xdev Dec 16, 2024
70052e6
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Dec 17, 2024
4e23670
Update dependency org.junit.jupiter:junit-jupiter to v5.11.4
xdev-renovate Dec 17, 2024
7ebf1ef
Merge pull request #86 from xdev-software/renovate/org.seleniumhq.sel…
AB-xdev Dec 17, 2024
3025c97
Merge pull request #92 from xdev-software/renovate/org.junit.jupiter-…
AB-xdev Dec 17, 2024
29c2f36
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Dec 17, 2024
4a380b2
Update net.sourceforge.pmd to v7.9.0
xdev-renovate Dec 28, 2024
5c0db24
Update dependency com.puppycrawl.tools:checkstyle to v10.21.1
xdev-renovate Dec 29, 2024
87dea0f
Merge pull request #127 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Jan 13, 2025
22775a4
Merge pull request #126 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Jan 13, 2025
3513291
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Jan 20, 2025
d0648bd
Update org.seleniumhq.selenium to v4.28.0
xdev-renovate Jan 21, 2025
223a76d
Merge pull request #97 from xdev-software/renovate/org.seleniumhq.sel…
AB-xdev Jan 21, 2025
c1635be
Support new GitHub issue types
AB-xdev Jan 21, 2025
90d8e94
Overwrite gh-pages by default
AB-xdev Jan 21, 2025
7e9fd4e
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Jan 24, 2025
6b01863
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Jan 24, 2025
50bc78e
Update dependency com.puppycrawl.tools:checkstyle to v10.21.2
xdev-renovate Jan 27, 2025
d2c1df5
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Jan 27, 2025
1e97852
Merge pull request #131 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Jan 27, 2025
d109ab3
Update dependency net.sourceforge.pmd:pmd-core to v7.10.0 [SECURITY]
xdev-renovate Feb 1, 2025
459817d
Update dependency net.sourceforge.pmd:pmd-java to v7.10.0
xdev-renovate Feb 1, 2025
098bf6d
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Feb 3, 2025
fa36994
Merge pull request #134 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Feb 3, 2025
37e12e8
Merge pull request #133 from xdev-software/renovate/maven-net.sourcef…
AB-xdev Feb 3, 2025
80d1ba6
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Feb 10, 2025
0caaff1
Update org.seleniumhq.selenium to v4.28.1
xdev-renovate Feb 10, 2025
378559f
Update dependency org.testcontainers:testcontainers to v1.20.5
xdev-renovate Feb 20, 2025
97e6641
Merge pull request #105 from xdev-software/renovate/org.testcontainer…
AB-xdev Feb 20, 2025
877b61c
Merge pull request #98 from xdev-software/renovate/org.seleniumhq.sel…
AB-xdev Feb 20, 2025
febb982
Update dependency org.apache.maven.plugins:maven-compiler-plugin to v…
xdev-renovate Feb 22, 2025
0d53a9b
Update dependency com.puppycrawl.tools:checkstyle to v10.21.3
xdev-renovate Feb 24, 2025
15a053a
Update dependency org.codehaus.mojo:flatten-maven-plugin to v1.7.0
xdev-renovate Feb 26, 2025
eacac5a
Update dependency org.apache.maven.plugins:maven-project-info-reports…
xdev-renovate Feb 27, 2025
a3c85c1
Update net.sourceforge.pmd to v7.11.0
xdev-renovate Mar 1, 2025
2a74a51
Merge pull request #139 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Mar 3, 2025
cbd32f0
Merge pull request #137 from xdev-software/renovate/org.codehaus.mojo…
AB-xdev Mar 3, 2025
2ec54bb
Merge pull request #136 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Mar 3, 2025
390c4a1
Merge pull request #135 from xdev-software/renovate/org.apache.maven.…
AB-xdev Mar 3, 2025
b1b8bf9
Merge pull request #138 from xdev-software/renovate/org.apache.maven.…
AB-xdev Mar 3, 2025
378beb5
Update dependency com.puppycrawl.tools:checkstyle to v10.21.4
xdev-renovate Mar 5, 2025
0b84343
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Mar 10, 2025
c6cda5b
Merge pull request #140 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Mar 10, 2025
0a57f91
Use correct directory for PMD
AB-xdev Mar 13, 2025
188e420
Use correct directory for PMD
AB-xdev Mar 13, 2025
7d97305
Naming
AB-xdev Mar 14, 2025
53829e0
Simplify module extraction
AB-xdev Mar 14, 2025
cf59a66
Speed up check code
AB-xdev Mar 14, 2025
55d6485
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Mar 17, 2025
bb022ad
Use SPDX identifier for license name
AB-xdev Mar 17, 2025
da9442e
Update dependency com.mycila:license-maven-plugin to v5
xdev-renovate Mar 20, 2025
f1d643f
Merge pull request #141 from xdev-software/renovate/com.mycila-licens…
AB-xdev Mar 20, 2025
2e7b1b6
sonarcloud was renamed to sonarqubecloud
AB-xdev Mar 21, 2025
888b4ce
Fix branch deletion being not detected
AB-xdev Mar 21, 2025
8f154b7
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Mar 21, 2025
530ed04
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Mar 21, 2025
4af3ec2
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Mar 24, 2025
c021044
Pin unofficial actions versions
AB-xdev Mar 26, 2025
8f6df23
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Mar 26, 2025
2dc1e86
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Mar 26, 2025
581b7fb
Pin unofficial actions versions
AB-xdev Mar 26, 2025
5ced1cc
Update net.sourceforge.pmd to v7.12.0
xdev-renovate Mar 29, 2025
7921442
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Mar 31, 2025
49db248
Update dependency com.puppycrawl.tools:checkstyle to v10.22.0
xdev-renovate Mar 31, 2025
4eef9ec
Improve Code Analysis
AB-xdev Mar 31, 2025
48291c2
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Mar 31, 2025
bc3f53c
Merge pull request #144 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Mar 31, 2025
97a4b0e
Merge pull request #145 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Mar 31, 2025
e5152dc
Update lycheeverse/lychee-action digest to 1d97d84
xdev-renovate Apr 1, 2025
42ebbfd
Merge pull request #2 from xdev-software/renovate/lycheeverse-lychee-…
AB-xdev Apr 2, 2025
27fddce
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Apr 3, 2025
7091b70
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Apr 3, 2025
4ff7c84
Update dependency com.puppycrawl.tools:checkstyle to v10.23.0
xdev-renovate Apr 3, 2025
887e323
Merge pull request #149 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Apr 3, 2025
84a1fa2
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Apr 7, 2025
9f5cab5
Enforce IDEA plugins
AB-xdev Apr 22, 2025
e67bdaa
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Apr 22, 2025
855c40a
Update net.sourceforge.pmd to v7.13.0
xdev-renovate Apr 26, 2025
d80845a
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Apr 28, 2025
7c3c850
Update dependency com.puppycrawl.tools:checkstyle to v10.23.1
xdev-renovate Apr 28, 2025
7d38031
Merge pull request #152 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Apr 28, 2025
5ba23c7
Merge pull request #151 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Apr 28, 2025
e04d899
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot May 5, 2025
b29933a
Update dependency org.apache.maven.plugins:maven-surefire-plugin to v…
xdev-renovate May 5, 2025
607bcf4
Update org.slf4j to v2.0.17
xdev-renovate May 5, 2025
102e7c8
Update dependency org.junit.jupiter:junit-jupiter to v5.12.2
xdev-renovate May 5, 2025
868baf7
Update dependency org.testcontainers:testcontainers to v1.21.0
xdev-renovate May 5, 2025
3658369
Update org.seleniumhq.selenium to v4.32.0
xdev-renovate May 5, 2025
22946ad
Update lycheeverse/lychee-action digest to 82202e5
xdev-renovate May 10, 2025
889abda
Merge pull request #110 from xdev-software/renovate/org.slf4j
AB-xdev May 12, 2025
3a4fa91
Merge pull request #106 from xdev-software/renovate/org.seleniumhq.se…
AB-xdev May 12, 2025
e460a7d
Merge pull request #108 from xdev-software/renovate/org.junit.jupiter…
AB-xdev May 12, 2025
7e5d51b
Merge pull request #153 from xdev-software/renovate/lycheeverse-lyche…
AB-xdev May 12, 2025
e1b2f4e
Merge pull request #121 from xdev-software/renovate/org.apache.maven.…
AB-xdev May 12, 2025
a7d30ed
Merge pull request #114 from xdev-software/renovate/org.testcontainer…
AB-xdev May 12, 2025
ac4293d
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot May 12, 2025
10417db
Remove testcontainer's dependency onto JUnit 4
AB-xdev May 12, 2025
210b74a
Bump version + Changelog
AB-xdev May 12, 2025
135a27f
Typo
AB-xdev May 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<module name="TreeWalker">
<!-- Checks - sorted alphabetically -->
<module name="ArrayTypeStyle"/>
<module name="AvoidDoubleBraceInitialization"/>
<module name="AvoidStarImport"/>
<module name="ConstantName"/>
<module name="DefaultComesLast"/>
Expand All @@ -68,6 +69,11 @@
<module name="FinalParameters"/>
<module name="GenericWhitespace"/>
<module name="HideUtilityClassConstructor"/>
<module name="IllegalCatch">
<!-- https://docs.pmd-code.org/pmd-doc-7.11.0/pmd_rules_java_errorprone.html#avoidcatchingnpe -->
<!-- https://docs.pmd-code.org/pmd-doc-7.11.0/pmd_rules_java_errorprone.html#avoidcatchingthrowable -->
<property name="illegalClassNames" value="Error,Throwable,NullPointerException,java.lang.Error,java.lang.Throwable,java.lang.NullPointerException"/>
</module>
<module name="IllegalImport"/>
<module name="InterfaceIsType"/>
<module name="JavadocStyle">
Expand All @@ -93,7 +99,6 @@
<module name="MethodParamPad"/>
<module name="MissingDeprecated"/>
<module name="MissingOverride"/>
<module name="MissingSwitchDefault"/>
<module name="ModifierOrder"/>
<module name="NeedBraces"/>
<module name="NoClone"/>
Expand Down Expand Up @@ -122,7 +127,13 @@
</module>
<module name="TypecastParenPad"/>
<module name="TypeName"/>
<module name="UnnecessaryParentheses"/>
<module name="UnnecessarySemicolonAfterOuterTypeDeclaration"/>
<module name="UnnecessarySemicolonAfterTypeMemberDeclaration"/>
<module name="UnnecessarySemicolonInEnumeration"/>
<module name="UnnecessarySemicolonInTryWithResources"/>
<module name="UnusedImports"/>
<module name="UnusedLocalVariable"/>
<module name="UpperEll"/>
<module name="VisibilityModifier">
<property name="packageAllowed" value="true"/>
Expand Down
50 changes: 46 additions & 4 deletions .config/pmd/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,38 @@

<!-- Only rules that don't overlap with CheckStyle! -->

<rule ref="category/java/bestpractices.xml/AvoidPrintStackTrace"/>
<rule ref="category/java/bestpractices.xml/AvoidStringBufferField"/>
<rule ref="category/java/bestpractices.xml/AvoidUsingHardCodedIP"/>
<rule ref="category/java/bestpractices.xml/ConstantsInInterface"/>
<rule ref="category/java/bestpractices.xml/ExhaustiveSwitchHasDefault"/>
<rule ref="category/java/bestpractices.xml/LiteralsFirstInComparisons"/>
<!-- CheckStyle can't handle this switch behavior -> delegated to PMD -->
<rule ref="category/java/bestpractices.xml/NonExhaustiveSwitch"/>
<rule ref="category/java/bestpractices.xml/OneDeclarationPerLine">
<properties>
<property name="strictMode" value="true"/>
</properties>
</rule>
<rule ref="category/java/bestpractices.xml/PreserveStackTrace"/>
<rule ref="category/java/bestpractices.xml/SimplifiableTestAssertion"/>
<rule ref="category/java/bestpractices.xml/SystemPrintln"/>
<rule ref="category/java/bestpractices.xml/UnusedAssignment"/>
<rule ref="category/java/bestpractices.xml/UnusedFormalParameter"/>
<rule ref="category/java/bestpractices.xml/UnusedPrivateField"/>
<rule ref="category/java/bestpractices.xml/UnusedPrivateMethod"/>
<rule ref="category/java/bestpractices.xml/UseCollectionIsEmpty"/>
<rule ref="category/java/bestpractices.xml/UseEnumCollections"/>
<rule ref="category/java/bestpractices.xml/UseStandardCharsets"/>
<rule ref="category/java/bestpractices.xml/UseTryWithResources"/>

<!-- Native code is platform dependent; Loading external native libs might pose a security threat -->
<rule ref="category/java/codestyle.xml/AvoidUsingNativeCode"/>
<rule ref="category/java/codestyle.xml/IdenticalCatchBranches"/>
<rule ref="category/java/codestyle.xml/LambdaCanBeMethodReference"/>
<rule ref="category/java/codestyle.xml/NoPackage"/>
<rule ref="category/java/codestyle.xml/PrematureDeclaration"/>
<rule ref="category/java/codestyle.xml/UnnecessarySemicolon"/>

<rule ref="category/java/design.xml">
<!-- Sometimes abstract classes have just fields -->
Expand Down Expand Up @@ -76,9 +98,6 @@

<!-- Limit too low -->
<exclude name="UseObjectForClearerAPI"/>

<!-- Handled by checkstyle -->
<exclude name="UseUtilityClass"/>
</rule>

<rule ref="category/java/design.xml/AvoidDeeplyNestedIfStmts">
Expand Down Expand Up @@ -114,17 +133,33 @@
</properties>
</rule>

<rule ref="category/java/errorprone.xml/AssignmentToNonFinalStatic"/>
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor"/>
<rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators"/>
<rule ref="category/java/errorprone.xml/AvoidUsingOctalValues"/>
<rule ref="category/java/errorprone.xml/BrokenNullCheck"/>
<rule ref="category/java/errorprone.xml/ComparisonWithNaN"/>
<rule ref="category/java/errorprone.xml/DoNotCallGarbageCollectionExplicitly"/>
<rule ref="category/java/errorprone.xml/DontImportSun"/>
<rule ref="category/java/errorprone.xml/DontUseFloatTypeForLoopIndices"/>
<rule ref="category/java/errorprone.xml/EqualsNull"/>
<rule ref="category/java/errorprone.xml/IdempotentOperations"/>
<rule ref="category/java/errorprone.xml/ImplicitSwitchFallThrough"/>
<rule ref="category/java/errorprone.xml/InstantiationToGetClass"/>
<rule ref="category/java/errorprone.xml/InvalidLogMessageFormat"/>
<rule ref="category/java/errorprone.xml/JumbledIncrementer"/>
<rule ref="category/java/errorprone.xml/MisplacedNullCheck"/>
<rule ref="category/java/errorprone.xml/MoreThanOneLogger"/>
<rule ref="category/java/errorprone.xml/NonStaticInitializer"/>
<rule ref="category/java/errorprone.xml/ReturnFromFinallyBlock"/>
<rule ref="category/java/errorprone.xml/SingletonClassReturningNewInstance"/>
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement"/>
<rule ref="category/java/errorprone.xml/UnnecessaryCaseChange"/>
<rule ref="category/java/errorprone.xml/UselessOperationOnImmutable"/>


<rule ref="category/java/multithreading.xml">
<!-- Just bloats code -->
<!-- Just bloats code; improved in JEP-491/Java 24+ -->
<exclude name="AvoidSynchronizedAtMethodLevel"/>

<!-- NOPE -->
Expand All @@ -151,5 +186,12 @@
<exclude name="UseStringBufferForStringAppends"/>
</rule>

<rule ref="category/java/performance.xml/TooFewBranchesForSwitch">
<properties>
<!-- If you have one case only please use a if -->
<property name="minimumNumberCaseForASwitch" value="2"/>
</properties>
</rule>

<rule ref="category/java/security.xml"/>
</ruleset>
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: 🐞 Bug
description: Create a bug report for something that is broken
labels: [bug]
type: bug
body:
- type: markdown
attributes:
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/enhancement.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: ✨ Feature/Enhancement
description: Suggest a new feature or enhancement
labels: [enhancement]
type: feature
body:
- type: markdown
attributes:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/broken-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ permissions:
jobs:
link-checker:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4

- run: mv .github/.lycheeignore .lycheeignore

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2
with:
fail: false # Don't fail on broken links, create an issue instead

- name: Find already existing issue
id: find-issue
Expand All @@ -35,7 +38,7 @@ jobs:

- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v5
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
with:
issue-number: ${{ steps.find-issue.outputs.number }}
title: Link Checker Report
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30

strategy:
matrix:
Expand Down Expand Up @@ -66,6 +67,7 @@ jobs:
checkstyle:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
timeout-minutes: 15

strategy:
matrix:
Expand All @@ -88,6 +90,7 @@ jobs:
pmd:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
timeout-minutes: 15

strategy:
matrix:
Expand Down Expand Up @@ -117,7 +120,4 @@ jobs:
name: pmd-report
if-no-files-found: ignore
path: |
target/site/*.html
target/site/css/**
target/site/images/logos/maven-feather.png
target/site/images/external.png
target/reports/**
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ permissions:
jobs:
check-code:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4

Expand All @@ -25,7 +26,7 @@ jobs:
cache: 'maven'

- name: Build with Maven
run: ./mvnw -B clean package
run: ./mvnw -B clean package -T2C

- name: Check for uncommited changes
run: |
Expand All @@ -48,6 +49,7 @@ jobs:
prepare-release:
runs-on: ubuntu-latest
needs: [check-code]
timeout-minutes: 10
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
Expand All @@ -62,7 +64,7 @@ jobs:
run: |
mvnwPath=$(readlink -f ./mvnw)
modules=("") # root
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
for i in "${modules[@]}"
do
echo "Processing $i/pom.xml"
Expand All @@ -87,7 +89,7 @@ jobs:

- name: Create Release
id: create_release
uses: shogo82148/actions-create-release@v1
uses: shogo82148/actions-create-release@e5f206451d4ace2da9916d01f1aef279997f8659 # v1
with:
tag_name: v${{ steps.version.outputs.release }}
release_name: v${{ steps.version.outputs.release }}
Expand All @@ -109,6 +111,7 @@ jobs:
publish-maven:
runs-on: ubuntu-latest
needs: [prepare-release]
timeout-minutes: 60
steps:
- uses: actions/checkout@v4

Expand All @@ -118,7 +121,7 @@ jobs:
git config --global user.name "GitHub Actions"
git pull

- name: Set up JDK Apache Maven Central
- name: Set up JDK OSSRH
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
java-version: '17'
Expand All @@ -129,7 +132,7 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

- name: Publish to Apache Maven Central
- name: Publish to OSSRH
run: ../mvnw -B deploy -Possrh -DskipTests
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}
Expand All @@ -140,6 +143,7 @@ jobs:
publish-pages:
runs-on: ubuntu-latest
needs: [prepare-release]
timeout-minutes: 15
steps:
- uses: actions/checkout@v4

Expand All @@ -161,14 +165,16 @@ jobs:
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}

- name: Deploy to Github pages
uses: peaceiris/actions-gh-pages@v4
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./${{ env.PRIMARY_MAVEN_MODULE }}/target/site
force_orphan: true

after-release:
runs-on: ubuntu-latest
needs: [publish-maven]
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

Expand All @@ -182,7 +188,7 @@ jobs:
run: |
mvnwPath=$(readlink -f ./mvnw)
modules=("") # root
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
for i in "${modules[@]}"
do
echo "Processing $i/pom.xml"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
token-check:
runs-on: ubuntu-latest
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'renovate/')) }}
timeout-minutes: 5
outputs:
hasToken: ${{ steps.check-token.outputs.has }}
steps:
Expand All @@ -40,6 +41,7 @@ jobs:
runs-on: ubuntu-latest
needs: token-check
if: ${{ needs.token-check.outputs.hasToken }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ permissions:
jobs:
labels:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github/labels.yml

- uses: EndBug/label-sync@v2
- uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2
with:
config-file: .github/labels.yml
1 change: 1 addition & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
jobs:
publish-maven:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/update-from-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ permissions:
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 60
outputs:
update_branch_merged_commit: ${{ steps.manage-branches.outputs.update_branch_merged_commit }}
create_update_branch_merged_pr: ${{ steps.manage-branches.outputs.create_update_branch_merged_pr }}
Expand Down Expand Up @@ -180,6 +181,7 @@ jobs:
needs: [update]
if: needs.update.outputs.create_update_branch_merged_pr == 1
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -200,7 +202,7 @@ jobs:
GH_TOKEN: ${{ secrets.UPDATE_FROM_TEMPLATE_PAT }}
run: |
not_failed_conclusion="skipped|neutral|success"
not_relevant_app_slug="dependabot|github-pages|sonarcloud"
not_relevant_app_slug="dependabot|github-pages|sonarqubecloud"

echo "Waiting for checks to start..."
sleep 40s
Expand All @@ -210,7 +212,7 @@ jobs:

echo "Checking if update-branch-merged exists"
git fetch
if [[ $(git rev-parse origin/${{ env.UPDATE_BRANCH_MERGED }}) ]]; then
if [[ $(git ls-remote --heads origin refs/heads/${{ env.UPDATE_BRANCH_MERGED }}) ]]; then
echo "Branch still exists; Continuing..."
else
echo "Branch origin/${{ env.UPDATE_BRANCH_MERGED }} is missing"
Expand Down
Loading