Skip to content

Commit 476da6f

Browse files
author
Gilles Grousset
committed
Only source directories are scanned by SiwftLint now
1 parent 1ca3cc1 commit 476da6f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build-and-deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ fi
1616
#fi
1717

1818
# Deploy new version of plugin in Sonar dir
19+
rm target/*sources.jar
1920
cp target/*.jar $SONARQUBE_HOME/extensions/plugins
2021

2122
# Stop/start Sonar

src/main/shell/run-sonar-swift.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ if [ "$swiftlint" = "on" ]; then
266266
while read word; do
267267

268268
# Run SwiftLint command
269-
$SWIFTLINT_CMD > sonar-reports/$(echo $word | sed 's/\//_/g')-swiftlint.txt
269+
$SWIFTLINT_CMD lint --path $word > sonar-reports/$(echo $word | sed 's/\//_/g')-swiftlint.txt
270270

271271
done < tmpFileRunSonarSh
272272
rm -rf tmpFileRunSonarSh

0 commit comments

Comments
 (0)