Skip to content
Snippets Groups Projects

Update 7-add-dependency-check to SonarScanner 4.0

Merged Raul Barreras requested to merge 9-update-to-sonarscanner-4-0 into 7-add-dependency-check
7 files
+ 33
10
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 2
2
@@ -51,8 +51,8 @@ for dir in "${LINT_DIRS[@]}"; do
echo "Scanning directory ${dir} for extension ${ext}"
# Scan current dir and ext and lint them
for f in $(find "${dir}" -type f -name "*${ext}"); do
OUTPUT=$(php -l $f 2>&1)
find "${dir}" -type f -name "*${ext}" -print0 | while IFS= read -r -d '' f; do
OUTPUT=$(php -l "$f" 2>&1)
rc=$?
if [[ $rc != 0 ]]; then # Non-zero exit code, print error and exit
Loading