Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion custom-checks/checkstyle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.openhab.tools.sat.custom-checks</groupId>
<artifactId>pom</artifactId>
<version>0.18.0-SNAPSHOT</version>
<version>0.19.0-SNAPSHOT</version>
</parent>

<artifactId>checkstyle</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.util.List;
import java.util.Locale;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -57,13 +58,23 @@ public class OhInfXmlValidationCheckTest extends AbstractStaticCheckTest {

private static final DefaultConfiguration CONFIGURATION = createModuleConfig(OhInfXmlValidationCheck.class);

private static Locale initialLocale;

@BeforeAll
public static void createConfiguration() {
initialLocale = Locale.getDefault();
CONFIGURATION.addProperty("thingSchema", THING_SCHEMA_URL);
CONFIGURATION.addProperty("addonSchema", ADDON_SCHEMA_URL);
CONFIGURATION.addProperty("configSchema", CONFIG_SCHEMA_URL);
}

@AfterAll
@SuppressWarnings("PMD.SetDefaultLocale")
public static void tearDownClass() {
// Set the default locale to its initial value.
Locale.setDefault(initialLocale);
}

@Override
protected String getPackageLocation() {
return "checkstyle/ohInfXmlValidationCheckTest";
Expand All @@ -72,6 +83,7 @@ protected String getPackageLocation() {
private boolean isResourceAvailable;

@BeforeEach
@SuppressWarnings("PMD.SetDefaultLocale")
public void checkConnection() {
Locale.setDefault(new Locale("en", "US"));
try {
Expand Down
2 changes: 1 addition & 1 deletion custom-checks/findbugs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.openhab.tools.sat.custom-checks</groupId>
<artifactId>pom</artifactId>
<version>0.18.0-SNAPSHOT</version>
<version>0.19.0-SNAPSHOT</version>
</parent>

<artifactId>findbugs</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion custom-checks/pmd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.openhab.tools.sat.custom-checks</groupId>
<artifactId>pom</artifactId>
<version>0.18.0-SNAPSHOT</version>
<version>0.19.0-SNAPSHOT</version>
</parent>

<artifactId>pmd</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.openhab.tools.sat</groupId>
<artifactId>pom</artifactId>
<version>0.18.0-SNAPSHOT</version>
<version>0.19.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Static Code Analysis Tool Parent POM</name>
Expand Down Expand Up @@ -74,7 +74,7 @@
<maven.plugin.compiler.version>3.14.1</maven.plugin.compiler.version>
<mojo.executor.version>2.4.1</mojo.executor.version>
<org.jsoup.version>1.19.1</org.jsoup.version>
<sat.version>0.17.0</sat.version>
<sat.version>0.18.0</sat.version>
<jdt-annotations.version>2.3.100</jdt-annotations.version>
<flexmark.version>0.64.8</flexmark.version>
<maven.surefire.plugin.version>3.5.4</maven.surefire.plugin.version>
Expand Down