OClint : failed with error code: 6

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

SonarQube information
Version: 8.2.0.32929
Date: 2020-05-07
SonarQube Scanner 4.2.0.1873
Java 11.0.3 AdoptOpenJDK (64-bit)
Mac OS X 10.14.6 x86_64
I’m currently using latest version of plugin “backelite-sonar-swift-plugin-0.4.6.jar”

oclint -version
LLVM (http://llvm.org/):
LLVM version 5.0.1
Optimized build.
Default target: x86_64-apple-darwin18.7.0
Host CPU: skylake

OCLint (http://oclint.org/):
OCLint version 0.13.1.
Built Feb 6 2018 (09:25:36).

Check for potential code bugs and vulnerabilities using a Sonarqube Scanner

##########################
# Required configuration #
##########################

#sonar.host.url=http://localhost:9000/
#sonar.forceAuthentication=true


# Project's identification
sonar.language=objc

sonar.projectKey=projectkey
sonar.projectName= projectname
#sonar.projectVersion=1.0

sonar.objectivec.workspace= projectname.xcworkspace
sonar.objectivec.project=projectnamexcodeproj
sonar.objectivec.appScheme=scheme
sonar.objectivec.testScheme=ProjectTestSuites

#Projets's sources
sonar.sources=projectname/
sonar.tests= projectnameTestSuites/

# Access by token
sonar.login=admin
sonar.password=admin

# Coverage type to expect from project
#sonar.objectivec.coverageType=profdata

#sonar.objectivec.excludedPathsFromCoverage=e-QRH/Utils/*.*

sonar.junit.reportsPath=sonar-reports/
sonar.objectivec.oclint.report=sonar-reports/e-QRH_-oclint.xml
sonar.objectivec.lizard.report=sonar-reports/lizard-report.xml
sonar.objectivec.coverage.reportPattern=sonar-reports/coverage.xml
sonar.objectivec.simulator=platform=iOS Simulator,name=iPhone 11 Pro,OS=13.3
sonar.objectivec.appConfiguration=Debug
sonar.sourceEncoding=UTF-8

So, I’m getting the below error after running the test cases

**Executed 62 tests, with 0 failures (0 unexpected) in 0.211 (0.378) seconds**

2020-05-07 14:44:37.394 xcodebuild[44469:358415] [MT] IDETestOperationsObserverDebug: 12.346 elapsed -- Testing started completed.

2020-05-07 14:44:37.394 xcodebuild[44469:358415] [MT] IDETestOperationsObserverDebug: 0.001 sec, +0.001 sec -- start

2020-05-07 14:44:37.394 xcodebuild[44469:358415] [MT] IDETestOperationsObserverDebug: 12.346 sec, +12.345 sec -- end

.Computing coverage reportUsing profdata

NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01
Running OCLint...------------------------------ OCLint ------------------------------

/usr/local/bin/oclint -p /Users/lakshmanan/Documents/Bitbucket/xxx/yyy -rc LONG_LINE=250 -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -report-type pmd -o sonar-reports/ProjectName_-oclint.xml


--------------------------------------------------------------------

....ERROR - Command 'oclint-json-compilation-database -v --include ../ProjectName/ProjectName/ -- -rc LONG_LINE=250 -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -report-type pmd -o sonar-reports/ProjectName_-oclint.xml' failed with error code: 6

Hi,

Welcome to the community!

Sorry, but the thing that’s failing looks unrelated to analysis:

You should ask for help in the OClint community (assuming there is one).

 
:woman_shrugging:
Ann

1 Like