Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonar-swift fail with error oclint-json-compilation-database #307

Open
4 tasks done
grahaTecq opened this issue Aug 8, 2023 · 0 comments
Open
4 tasks done

Sonar-swift fail with error oclint-json-compilation-database #307

grahaTecq opened this issue Aug 8, 2023 · 0 comments

Comments

@grahaTecq
Copy link

grahaTecq commented Aug 8, 2023

Issue Description

I try to run sonar-swift on my iOS project, but after several step, then in terminal some long error generated was printed in my terminal from oclint-json-compliation-database, the sonar-swift got stopped and return with error "failed with error code : 6"

Command executed

Here is the command that I execute from my root project folder :

./run-sonar-swift.sh

Complete output when running fastlane, including the stack trace and command used

/usr/local/bin/oclint -p /Users/macmini/Desktop/Project/ndi/ndi-fbs-ios-sdk/Sample/NDIPodSample ../NDIPodSample/./NDIPodSample ../NDIPodSample/./NDIPodSample.xcodeproj ../NDIPodSample/./NDIPodSample.xctestplan ../NDIPodSample/./NDIPodSample.xcworkspace ../NDIPodSample/./NDIPodSampleTests ../NDIPodSample/./NDIPodSampleUITests ../NDIPodSample/./Podfile ../NDIPodSample/./Podfile.lock ../NDIPodSample/./Pods ../NDIPodSample/./build ../NDIPodSample/./compile_commands.json ../NDIPodSample/./run-sonar-swift.sh ../NDIPodSample/./sonar-project.properties ../NDIPodSample/./sonar-reports ../NDIPodSample/./tmpFileRunSonarSh ../NDIPodSample/./xcodebuild.log ./NDIPodSample/./API.swift ./NDIPodSample/./AccountViewController.swift ./NDIPodSample/./AppDelegate.swift ./NDIPodSample/./Assets.xcassets ./NDIPodSample/./Base.lproj ./NDIPodSample/./Extension.swift ./NDIPodSample/./HomeViewController.swift ./NDIPodSample/./Info.plist ./NDIPodSample/./InformationViewController.swift ./NDIPodSample/./Localizable.strings ./NDIPodSample/./Model.swift ./NDIPodSample/./SceneDelegate.swift ./NDIPodSample/./SettingsViewController.swift -rc LONG_LINE=250 -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -report-type pmd -o sonar-reports/NDIPodSample-oclint.xml
.....6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
.1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
.6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
.1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
6 errors generated.
1 error generated.
1 error generated.
1 error generated.
4 errors generated.
5 errors generated.
1 error generated.
1 error generated.
1 error generated.
15 errors generated.
ERROR - Command 'oclint-json-compilation-database -v --include ../NDIPodSample/./Framework Dependencies ../NDIPodSample/./NDIPodSample ../NDIPodSample/./NDIPodSample.xcodeproj ../NDIPodSample/./NDIPodSample.xctestplan ../NDIPodSample/./NDIPodSample.xcworkspace ../NDIPodSample/./NDIPodSampleTests ../NDIPodSample/./NDIPodSampleUITests ../NDIPodSample/./Podfile ../NDIPodSample/./Podfile.lock ../NDIPodSample/./Pods ../NDIPodSample/./build ../NDIPodSample/./compile_commands.json ../NDIPodSample/./run-sonar-swift.sh ../NDIPodSample/./sonar-project.properties ../NDIPodSample/./sonar-reports ../NDIPodSample/./tmpFileRunSonarSh ../NDIPodSample/./xcodebuild.log ./NDIPodSample/./API.swift ./NDIPodSample/./AccountViewController.swift ./NDIPodSample/./AppDelegate.swift ./NDIPodSample/./Assets.xcassets ./NDIPodSample/./Base.lproj ./NDIPodSample/./Extension.swift ./NDIPodSample/./HomeViewController.swift ./NDIPodSample/./Info.plist ./NDIPodSample/./InformationViewController.swift ./NDIPodSample/./Localizable.strings ./NDIPodSample/./Model.swift ./NDIPodSample/./SceneDelegate.swift ./NDIPodSample/./SettingsViewController.swift -- -rc LONG_LINE=250 -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -report-type pmd -o sonar-reports/NDIPodSample-oclint.xml' failed with error code: 6

- FYI, I can run my app without any error to simulator or real device, so I'm pretty sure the issue was not from my code - oclint version is 22.02

Please help, I can't debug and find any references from the error results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant