My company is using SonarQube of Enterprise Edition Version 7.9.1 (build 27448).
We are using sonar c-family plugin to scan the OC project, the command is like below:
build-wrapper-macosx-x86 --out-dir build_wrapper_out_dir_ut xcodebuild clean build test -workspace “XXXX.xcworkspace” -scheme “YYYY” -sdk “iphonesimulator13.2” -destination “platform=iOS Simulator,OS=13.3,name=iPhone 11" -configuration Release MAIN_PROFILE=“ZZZZZZ”
After sonar client uploaded the issues to sonar server, we found some false positive issues like:
The orignal code is like below, (
timerIntervalare defined as the same type)
I wound why sonar scan report So obvious false positive issues?