Unable to trigger SonarLint Analysis on whole Project

后端 未结 5 1675
时光说笑
时光说笑 2021-01-17 12:02

I have installed the latest sonarLint plugins with Intellij 2016.1.2. Analyze on the fly works fine. However, I can\'t find in the IntelliJ \"Analyze\" tab any \"Analyze wit

相关标签:
5条回答
  • 2021-01-17 12:20

    As @Duarte - SonarSource Team suggests Sonar-Lint has a different purpose. It is intended to use to analyze for code changes in current file(s). i.e. it cannot perform analysis which needs to compare 2 files. (ex: finding duplicates, coverage etc.)

    For your purpose that best way to achieve is running SonarQube with preview mode.

    0 讨论(0)
  • 2021-01-17 12:23

    Since SonarLint v2.8, it's possible to analyze all files in the project.

    Open the SonarLint Tool Window, go to the Project files tab, and click in the "play" button. There is also an action to which you can assign a shortcut.

    More information here: https://www.sonarlint.org/intellij/howto.html

    0 讨论(0)
  • 2021-01-17 12:23

    The easiest two ways to do project analyze:

    1. Choose Analyze | Analyze with SonarLint
    2. Press Ctrl + Shift + S
    0 讨论(0)
  • 2021-01-17 12:26

    Since version 2.8 analysis of all files in the project is possible.

    0 讨论(0)
  • 2021-01-17 12:28

    they stated many times that their intent is to support only new issue being introduced running an on-fly analysis on files being changed. If you wanna run a full analysis you should use the SonarQubeCommunity plugin or visit your remote Sonar Server. If you wanna gather only coverage information within your IDE, use the Jacoco plugin. However there is an open feature request to browse those issues directly in the SonarLint plugin: https://jira.sonarsource.com/browse/SLE-54

    Yes, that screenshot is confusing, but that feature was previously available.

    0 讨论(0)
提交回复
热议问题