Skip to content

Update from template (auto-merged) #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
092c81c
Update vaadin.version to v24.7.1
xdev-renovate Mar 28, 2025
5ced1cc
Update net.sourceforge.pmd to v7.12.0
xdev-renovate Mar 29, 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
4d8074f
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Mar 31, 2025
68cca2b
Check for usage of native Vaadin HTML
AB-xdev 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
4d3ebc2
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Mar 31, 2025
2ce6efd
Merge pull request #309 from xdev-software/renovate/vaadin.version
AB-xdev Mar 31, 2025
4112981
Update Application.java
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
2c6c2ad
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Apr 4, 2025
acc4965
Update vaadin.version to v24.7.2
xdev-renovate Apr 16, 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
3ddc435
Merge pull request #316 from xdev-software/renovate/vaadin.version
AB-xdev Apr 22, 2025
02137f3
Merge branch 'master' into update-from-template-merged
xdev-gh-bot Apr 23, 2025
bd7a823
Merge branch 'develop' into update-from-template-merged
xdev-gh-bot Apr 28, 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
64 changes: 60 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 Down Expand Up @@ -159,4 +194,25 @@
</rule>

<rule ref="category/java/security.xml"/>

<rule name="VaadinNativeHTMLUnsafe"
language="java"
message="Unescaped native HTML is unsafe and will result in XSS vulnerabilities"
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule" >
<description>
Do not used native HTML! Use Vaadin layouts and components to create required structure.
If you are 100% sure that you escaped the value properly and you have no better options you can suppress this.
</description>
<priority>2</priority>
<properties>
<property name="xpath">
<value>
<![CDATA[
//ConstructorCall[pmd-java:typeIs('com.vaadin.flow.component.Html')] |
//MethodCall[@MethodName='setAttribute' and //ImportDeclaration[starts-with(@PackageName,'com.vaadin')]]/ArgumentList/StringLiteral[1][contains(lower-case(@Image),'html')]
]]>
</value>
</property>
</properties>
</rule>
</ruleset>
2 changes: 1 addition & 1 deletion .github/workflows/broken-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

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

Expand Down
7 changes: 7 additions & 0 deletions .idea/externalDependencies.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.21.4</version>
<version>10.23.0</version>
</dependency>
</dependencies>
<configuration>
Expand Down Expand Up @@ -82,12 +82,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.11.0</version>
<version>7.12.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.11.0</version>
<version>7.12.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion vaadin-simple-grid-filter-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<mainClass>software.xdev.vaadin.Application</mainClass>

<!-- Dependency-Versions -->
<vaadin.version>24.7.0</vaadin.version>
<vaadin.version>24.7.2</vaadin.version>

<org.springframework.boot.version>3.4.4</org.springframework.boot.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.vaadin.flow.spring.annotation.EnableVaadin;


@SuppressWarnings({"checkstyle:HideUtilityClassConstructor", "PMD.UseUtilityClass"})
@SpringBootApplication
@EnableVaadin
@Push
Expand Down
8 changes: 4 additions & 4 deletions vaadin-simple-grid-filter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<!-- Dependency-Versions -->
<vaadin.version>24.7.0</vaadin.version>
<vaadin.version>24.7.2</vaadin.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -313,7 +313,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.21.4</version>
<version>10.23.0</version>
</dependency>
</dependencies>
<configuration>
Expand Down Expand Up @@ -350,12 +350,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.11.0</version>
<version>7.12.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.11.0</version>
<version>7.12.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down
Loading