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
5 changes: 1 addition & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,5 @@ jobs:
mkdir -p ~/.m2
mkdir build
cd build
cmake ..
cmake -DANALYZE_JAVA=ON ..
make package test-out
cd ../java
mvn apache-rat:check
mvn checkstyle:check
16 changes: 1 addition & 15 deletions java/core/src/findbugs/exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,7 @@
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Class name="org.apache.orc.impl.TestReaderImpl"/>
<Method name="testOptionSafety"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Class name="org.apache.orc.TestVectorOrcFile"/>
<Method name="testZstd"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Class name="org.apache.orc.impl.TestSchemaEvolution"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Class name="org.apache.orc.TestStringDictionary"/>
<Class name="~org\.apache\.orc.*\.Test.*"/>
</Match>
<Match>
<Bug pattern="EQ_UNUSUAL"/>
Expand Down
47 changes: 30 additions & 17 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,23 +185,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<checkstyleRules>
<module name="Checker">
<module name="FileTabCharacter">
<property name="eachLine" value="true"></property>
</module>
<module name="TreeWalker">
<module name="UnusedImports"/>
</module>
</module>
</checkstyleRules>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -255,6 +238,32 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<checkstyleRules>
<module name="Checker">
<module name="FileTabCharacter">
<property name="eachLine" value="true"></property>
</module>
<module name="TreeWalker">
<module name="UnusedImports"/>
</module>
</module>
</checkstyleRules>
<failOnViolation>true</failOnViolation>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down Expand Up @@ -373,6 +382,10 @@
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
Expand Down
10 changes: 9 additions & 1 deletion java/tools/src/findbugs/exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@
See https://github.com/SERG-Delft/jpacman/pull/27 . -->
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
<Class name="org.apache.orc.tools.PrintVersion"/>
<Class name="~org\.apache\.orc\.tools\.(ScanData|PrintVersion)"/>
<Method name="main"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Class name="~org\.apache\.orc.*\.Test.*"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Class name="~org\.apache\.orc.tools.(RowCount|ScanData)"/>
</Match>
<Match>
<Bug pattern="REC_CATCH_EXCEPTION"/>
<Class name="org.apache.orc.tools.ScanData"/>
Expand Down