Skip to content

Commit d65ecc0

Browse files
committed
[SPARK-51173][TESTS] Add configName Scalastyle rule
This PR aims to add `configName` Scalastyle rule to prevent invalid config names. To prevent repetitive mistake pattern - #45649 - #48149 - #49121 No. Currently, this PR will fail at Scalastyle test because the `master` branch is broken. We can merge this after the following PR. - #49897 No. Closes #49900 from dongjoon-hyun/SPARK-51173. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 274dc5e) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent eedb1aa commit d65ecc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scalastyle-config.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,4 +462,9 @@ This file is divided into 3 sections:
462462
and URIs to and from String. If possible, please use SparkPath.
463463
]]></customMessage>
464464
</check>
465+
466+
<check customId="configName" level="error" class="org.scalastyle.file.RegexChecker" enabled="true">
467+
<parameters><parameter name="regex">buildConf\("spark.databricks.</parameter></parameters>
468+
<customMessage>Use Apache Spark config namespace.</customMessage>
469+
</check>
465470
</scalastyle>

0 commit comments

Comments
 (0)