Uploaded image for project: 'SonarLint For IntelliJ'
  1. SonarLint For IntelliJ
  2. SLI-152

Hiding resolved issues only works when opening the top-level project and in regular hierarchies

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 4.0
    • Component/s: Connected Mode
    • Labels:
      None

      Description

      In a multi-module project, if you open a sub-module instead of the parent, the module hierarchy will not be correctly detected by SonarLint. In this case, SonarLint will bind to the parent project on SonarQube, instead of the sub-module. The consequence of this is incorrect calculation of the module key and file path, and so incorrect parameters in the GET request to download server issues, and finally failure to download.

      A related problem is that the filesystem layout of nested projects is expected to be a logical mirror of the module dependency hierarchy. For example, if the project root contains module1, which in turn contains module11 and module12, then this filesystem layout is assumed:

      • root
        • module1
          • module11
          • module12

      If the filesystem layout doesn't follow the above structure, for example if it goes like this:

      • root
        • module1
        • module11
        • module12

      Then SonarLint will not be able to map the local filesystem modules to their correct counterparts on the server, and fail to download the server issues (and therefore hide the resolved ones) the same way as in the first case.

      In summary, to hide issues that were marked resolved on the server, it is required to open the top-level parent project and that the filesystem layout matches the logical dependency hierarchy.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                duarte.meneses Duarte Meneses
                Reporter:
                janos.gyerik Janos Gyerik
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: