Skip to content

Commit

Permalink
config: adds checkstyle to no exception check
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach committed Oct 28, 2022
1 parent df7fe8c commit a1816d5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .ci/checks-no-exception.sh
Expand Up @@ -25,6 +25,30 @@ setup)
cd ..
;;

checkstyle)
cd sevntu-checks
BRANCH=$(git rev-parse --abbrev-ref HEAD)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${checkstyle.eclipse-cs.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
SEVNTU_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' -Dexec.args='${project.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
echo CS_version: ${CS_POM_VERSION}
echo SEVNTU_version: ${SEVNTU_POM_VERSION}
checkout_from https://github.com/checkstyle/contribution.git
cd .ci-temp/contribution/checkstyle-tester
sed -i'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i'' 's/#checkstyle/checkstyle/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-sevntu-error.xml --allowExcludes \
--mode single --patchBranch "$BRANCH" -r ../../..\
-xm "-Dcheckstyle.version=${CS_POM_VERSION} -Dsevntu-checkstyle.version=${SEVNTU_POM_VERSION} \
-Dcheckstyle.failsOnError=false"
cd ../../
rm -rf contribution
cd ..
;;

struts)
cd sevntu-checks
BRANCH=$(git rev-parse --abbrev-ref HEAD)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/checks-no-exception-workflow.yml
Expand Up @@ -12,6 +12,7 @@ jobs:
fail-fast: false
matrix:
profile:
- checkstyle
- struts
- guava
- hibernate-orm
Expand Down

0 comments on commit a1816d5

Please sign in to comment.