Skip to content

Commit

Permalink
Exclude shimplify-generated files from scalastyle
Browse files Browse the repository at this point in the history
- Simplify the scalastyle pattern since it processes all scala files
  under a root regardless of shim
- Move Scala files previously not check-styled because under
  src/main/*java

Signed-off-by: Gera Shegalov <[email protected]>
  • Loading branch information
gerashegalov committed Nov 1, 2024
1 parent 372ca80 commit 6004e39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1589,14 +1589,11 @@ This will force full Scala code rebuild in downstream modules.
<skip>${maven.scalastyle.skip}</skip>
<target>
<pathconvert property="scalastyle.dirs" pathsep=" ">
<dirset dir="${spark.rapids.source.basedir}" includes="**/src/main/scala"/>
<dirset dir="${spark.rapids.source.basedir}" includes="**/src/main/*/scala"/>
<dirset dir="${spark.rapids.source.basedir}" includes="**/src/test/scala"/>
<dirset dir="${spark.rapids.source.basedir}" includes="**/src/test/*/scala"/>
<dirset dir="${spark.rapids.source.basedir}" includes="**/src/main/scala-${scala.binary.version}"/>
<dirset dir="${spark.rapids.source.basedir}" includes="**/src/main/*/scala-${scala.binary.version}"/>
<dirset dir="${spark.rapids.source.basedir}" includes="**/src/test/scala-${scala.binary.version}"/>
<dirset dir="${spark.rapids.source.basedir}" includes="**/src/test/*/scala-${scala.binary.version}"/>
<dirset dir="${spark.rapids.source.basedir}">
<include name="**/src/main"/>
<include name="**/src/test"/>
<exclude name="**/target/*/generated/src/**"/>
</dirset>
</pathconvert>
<echo>Checking scalastyle for all modules using following paths:
${scalastyle.dirs}
Expand Down

0 comments on commit 6004e39

Please sign in to comment.