SonarSource/sonarlint-eclipse

GitHub: SonarSource/sonarlint-eclipse

Stars: 271 | Forks: 128

# SonarQube for IDE: Eclipse SonarQube for IDE ensures you deliver projects with [integrated code quality and security](https://www.sonarsource.com/solutions/for-developers/) in your IDE. ## Installing and using See https://docs.sonarsource.com/sonarqube-for-eclipse/getting-started/installation/ and https://marketplace.eclipse.org/content/sonarlint For offline installation and older versions see the update site archive at https://binaries.sonarsource.com/?prefix=SonarLint-for-Eclipse/releases/ ## Have Questions or Feedback? ## Development setup in Eclipse There are a few requirements for developing next to basic knowledge of Maven, Tycho and Eclipse plug-in development: - Eclipse IDE for RCP and RAP Developers (includes m2e, PDE) - Eclipse RedDeer (or any forked 4.7.x version) to run ITs Normally, m2e will automatically suggest to install missing connectors (Tycho configurators, ...) or wants to configure missing lifecycle mappings. This can all be done later. 1. Run `mvn clean verify -DskipTests` on the command line to fetch artifacts referenced in the parent pom - for forks use `-Dskip-sonarsource-repo` as the reference to the CFamily analyzer is not available on Maven Central 2. In Eclipse, import the project root as a Maven project 3. In Eclipse, import the project root of the ITs as a Maven project and add them to the main project 4. Open `target-platforms/dev.target` with the target platform editor - Click **Set as Target Platform** (or **Reload Target Platform**) in the top-right corner At this point you should be all set. Following the explanations [here](https://github.com/trustin/os-maven-plugin) may help. ## Running Open `plugin.xml` of `org.sonarline.eclipse.core` (for example), and see the **Run** and **Debug** buttons in the top-right corner. ## Running plugin unit tests In Eclipse: 1. Create a run configuration by running a test class first with **Run As... / JUnit Plug-in Test** 2. Edit the configuration - On the **Test** tab, uncheck **Run in UI thread** - On the **Main** tab, under **Program to Run**, select **Run an application** with value **[No Application] - Headless Mode** With Maven: mvn clean verify - for forks use `-Dskip-sonarsource-repo` as the reference to the CFamily analyzer is not available on Maven Central ## Running ITs Please see the **README.md** inside the *its* folder! ## Adding a dependency We should avoid adding external dependencies, as we want all bundles we provide in our update site to be signed, and we don't want to sign third-party components. Third-party libs should be bundled/shaded into our own plugins. ### License Copyright SonarSource. Licensed under the [GNU Lesser General Public License, Version 3.0](http://www.gnu.org/licenses/lgpl.txt)
标签:域名枚举