Tempted to write your own plugin? Want to contribute your plugin back to the community? If you do, we'd be happy to host your FOSS plugins in the SonarSource plugin forge. After all, it gives you a broader audience and enhances the community. Everyone’s a winner. Plus:

If you're not interested in writing your own plugin, but just want to see what's currently being hammered into shape in the forge, check out the plugins under development.

Request Hosting

Before we can host your plugin in the forge, there are a few rules we must ask you to follow:

To keep your plugin in the forge, it must remain in compliance with everything on the first list and:

If any of these requirements are not met, or stop being met (if, for example you change the license to one that’s not business-friendly) we may remove the plugin from the forge immediately

Sharing an existing plugin

  1. Publish the source code of your plugin on a public Github repository
  2. Create an account at Codehaus and subscribe to dev@sonar.codehaus.org
  3. Send an e-mail to dev@sonar.codehaus.org to explain the purpose of your plugin, detail its features and link to its source code repository
  4. Reviews will be performed by contributors on both the added value of the plugin and the quality of the source code

Beginning development of a new plugin

  1. Create an account at Codehaus and subscribe to dev@sonar.codehaus.org
  2. Send an e-mail to dev@sonar.codehaus.org to explain the purpose of your plugin
  3. Discussion on the added value of the plugin will take place

When the plugin is approved, send your Codehaus ID to dev@sonar.codehaus.org and we'll give you a commit access to github.

Code Your Plugin

Prerequisites

Maven POM

Continuous Integration

Send an email to dev@sonar.codehaus.org, so we can register the plugin at Cloudbees.

Conventions

IDE Support

The following configuration of code style must be applied.

Eclipse
  1. Install Anyedit Eclipse Plugin
  2. Optional: if Maven projects do not define the profile ‘m2e’, then install the M2E error disabler plugin
  3. Restart Eclipse
  4. Windows → Preferences
  5. Open the Maven project: File → Import → Maven → Existing Maven Projects → select the root directory containing the file pom.xml
IntelliJ IDEA
  1. Open the Maven project: File → Open Project → select the file pom.xml
  2. Use UTF-8 encoding: Project Settings → File Encodings → IDE Encoding: UTF-8
  3. Configure code style

Release Your Plugin

The release process is detailed on this page.