Skip to content

Issues Encountered During Sonar Scanner Execution #10

@riusky

Description

@riusky

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:

  1. Start the project using Docker Compose.
  2. Use the scanning tool.
  3. Fix the issues with the scanning tool by modifying the sonar-scanner.bat file.

Problem Reproduction Steps:

  1. Launch the project using Docker Compose.
  2. Utilize the scanning tool.
  3. Fix issues with the scanning tool by modifying the sonar-scanner.bat file.
  4. 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 %*
  1. Rescan the .cls files in the directory.
  2. Encountered problems after performing a full file scan in connection mode.

Encountered Issues:

  1. Property not found [objectscriptquality:OS0081]
  • The class exists.
  1. Incompatible argument type in a method [objectscriptquality:OS0078]
  • The type is its superclass but not correctly recognized.
  • Method not found [objectscriptquality:OS0080]
  1. 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:

  1. Use the "Open Multiple Files" plugin in VSCode to open the directory of the workspace.
  2. Obtain the scan results in the Problems panel.

These results are correct without using the connection mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions