🛒 Installing ecoCode

The main way to install ecoCode plugins is through your SonarQube Marketplace. However, it is also possible to download them from GitHub releases.

Install from Marketplace

  1. In your SonarQube interface, go under Administration  Marketplace.

  2. Search for "ecoCode".

  3. Click Install on the wanted lines.

Manually install a GitHub release

  1. Find a download the desired GitHub release.

  2. Place the obtained file in <sonarqube-home>/extensions/plugins.

  3. Restart the server.

GitHub releases locations

Historically, all ecoCode plugins were hosted in a single repository. In December 2023, we split it into one repository per plugin.

Thus, depending on the version you want, you may need to check one repository or the other.

Table 1. Releases URL by plugins based on the plugin version
Plugin Single repository Dedicated repository

Java

From 0.x to 1.4.3: ecocode

Since 1.5.0: ecoCode-java

PHP

From 0.x to 1.3.1: ecocode

Since 1.4.0: ecoCode-php

Python

From 0.x to 1.3.1: ecocode

Since 1.4.0: ecoCode-python

Javascript

From 0.x to 1.3.0: ecocode

Since 1.4.0: ecoCode-javascript

C#

N/A

Since 0.x: ecocode

Android

N/A

ecoCode-android

iOS

N/A

ecoCode-ios