Skip to content

Commit 52978f6

Browse files
committed
Fixed: Suppress checkstyle line lenght verifications for the JsLanguageFilesMapping.java file, that is automatically generated
1 parent 15e22d9 commit 52978f6

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

config/checkstyle/checkstyle.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ under the License.
3030
<module name="BeforeExecutionExclusionFileFilter">
3131
<property name="fileNamePattern" value="module\-info\.java$"/>
3232
</module>
33+
<module name="SuppressWithPlainTextCommentFilter">
34+
<property name="offCommentFormat" value="CHECKSTYLE_OFF: LineLength"/>
35+
<property name="onCommentFormat" value="CHECKSTYLE_ON: LineLength"/>
36+
<property name="checkFormat" value="LineLength"/>
37+
</module>
3338
<property name="fileExtensions" value="java, properties, xml"/>
3439

3540
<!-- General file conventions -->

framework/common/src/main/java/org/apache/ofbiz/common/JsLanguageFilesMapping.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public final class JsLanguageFilesMapping {
2828

2929
// DO NOT EDIT THIS FILE! THIS IS AUTO GENERATED AND WILL GET WRITTEN OVER PERIODICALLY WHEN THE DATA CHANGE
3030
// Rather use the createJsLanguageFileMapping service to create or update it. You will still need to compile thereafter
31+
// CHECKSTYLE_OFF: LineLength
3132

3233
public static class DateJs {
3334

@@ -4411,4 +4412,5 @@ public static String getFilePath(String locale) {
44114412
return Select2.defaultSelect2;
44124413
}
44134414
}
4415+
// CHECKSTYLE_ON: LineLength
44144416
}

themes/common-theme/template/JsLanguageFilesMapping.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public final class JsLanguageFilesMapping {
3030

3131
// DO NOT EDIT THIS FILE! THIS IS AUTO GENERATED AND WILL GET WRITTEN OVER PERIODICALLY WHEN THE DATA CHANGE
3232
// Rather use the createJsLanguageFileMapping service to create or update it. You will still need to compile thereafter
33+
// CHECKSTYLE_OFF: LineLength
3334

3435
public static class DateJs {
3536

@@ -128,4 +129,5 @@ public final class JsLanguageFilesMapping {
128129
return Select2.defaultSelect2;
129130
}
130131
}
132+
// CHECKSTYLE_ON: LineLength
131133
}

0 commit comments

Comments
 (0)