Skip to content

Commit

Permalink
Send Jetpack lint report, instead of WordPress
Browse files Browse the repository at this point in the history
As WordPress is a subset of Jetpack
  • Loading branch information
wzieba committed Sep 19, 2024
1 parent 8d2bf8b commit cc99dd3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .buildkite/commands/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ bundle exec fastlane check_declared_locales_consistency app:"$1"
echo "--- :microscope: Linting"

if [ "$1" = "wordpress" ]; then
set +e
./gradlew lintWordpressVanillaRelease
lint_exit_code=$?
set -e

upload_sarif_to_github "WordPress/build/reports/lint-results-wordpressVanillaRelease.sarif"
exit $lint_exit_code
exit 0
fi

if [ "$1" = "jetpack" ]; then
set +e
./gradlew lintJetpackVanillaRelease
exit 0
lint_exit_code=$?
set -e

upload_sarif_to_github "WordPress/build/reports/lint-results-jetpackVanillaRelease.sarif"
exit $lint_exit_code
fi

echo "No target provided – unable to lint"
Expand Down

0 comments on commit cc99dd3

Please sign in to comment.