forked from SonarSource/sonarlint-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description:
I encountered several unexpected issues while using Sonar Scanner in my project. Below are the steps to reproduce the problem and details of the issues faced.
Steps to Reproduce:
- Start the project using Docker Compose.
- Use the scanning tool.
- Fix the issues with the scanning tool by modifying the sonar-scanner.bat file.
Problem Reproduction Steps:
- Launch the project using Docker Compose.
- Utilize the scanning tool.
- Fix issues with the scanning tool by modifying the sonar-scanner.bat file.
- At line 72:
%JAVA_EXEC% --illegal-access=deny --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang.String=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED -Djava.awt.headless=true %SONAR_SCANNER_DEBUG_OPTS% %SONAR_SCANNER_OPTS% -cp "%SONAR_SCANNER_HOME%\lib\sonar-scanner-cli-5.0.1.3006.jar" "-Dscanner.home=%SONAR_SCANNER_HOME%" "-Dproject.home=%PROJECT_HOME%" org.sonarsource.scanner.cli.Main %*
- Rescan the .cls files in the directory.
- Encountered problems after performing a full file scan in connection mode.
Encountered Issues:
- Property not found [objectscriptquality:OS0081]
- The class exists.
- Incompatible argument type in a method [objectscriptquality:OS0078]
- The type is its superclass but not correctly recognized.
- Method not found [objectscriptquality:OS0080]
- The method exists.
- Possibly, the method is defined in the superclass.
- Possibly, the method is defined in the superclass's superclass.
If I do the following, I can get the correct data:
- Use the "Open Multiple Files" plugin in VSCode to open the directory of the workspace.
- Obtain the scan results in the Problems panel.
These results are correct without using the connection mode.
Metadata
Metadata
Assignees
Labels
No labels