From b284091783af44341f20af11825ea9b6e3ba23da Mon Sep 17 00:00:00 2001 From: lamber-ken Date: Sun, 22 Dec 2019 07:30:07 +0800 Subject: [PATCH] [HUDI-386] Refactor hudi scala checkstyle rules (#1099) --- pom.xml | 2 +- style/checkstyle.xml | 2 +- style/scalastyle-config.xml | 114 ------------------------------ style/scalastyle.xml | 134 ++++++++++++++++++++++++++++++++++++ 4 files changed, 136 insertions(+), 116 deletions(-) delete mode 100644 style/scalastyle-config.xml create mode 100644 style/scalastyle.xml diff --git a/pom.xml b/pom.xml index c61e4a66d..ab99498ff 100644 --- a/pom.xml +++ b/pom.xml @@ -163,7 +163,7 @@ false ${project.basedir}/src/main/scala ${project.basedir}/src/test/scala - ${main.basedir}/style/scalastyle-config.xml + ${main.basedir}/style/scalastyle.xml UTF-8 diff --git a/style/checkstyle.xml b/style/checkstyle.xml index 10ef5fc40..24dfbb6ca 100644 --- a/style/checkstyle.xml +++ b/style/checkstyle.xml @@ -24,7 +24,7 @@ that can be found at https://google.github.io/styleguide/javaguide.html. Checkstyle is very configurable. Be sure to read the documentation at - http://checkstyle.sf.net (or in your downloaded distribution). + https://checkstyle.sourceforge.io/checks.html. To completely disable a check, just comment it out or delete it from the file. diff --git a/style/scalastyle-config.xml b/style/scalastyle-config.xml deleted file mode 100644 index c3d551df1..000000000 --- a/style/scalastyle-config.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - Scalastyle standard configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/style/scalastyle.xml b/style/scalastyle.xml new file mode 100644 index 000000000..7ad1d5ed6 --- /dev/null +++ b/style/scalastyle.xml @@ -0,0 +1,134 @@ + + + + + + Scalastyle standard configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hudi,3rdParty,javax,java,scala + org\.apache\.hudi\..* + (?!org\.apache\.hudi\.).* + java?\..* + javax?\..* + scala\..* + + + +