Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The development mode reloads Ruby changes on the fly. It allows to lets you edit code and immediately display your widget at the same timechanges.

To enable the development mode on a widget :

  1. Install SonarQube
  2. Edit the method RubyRailsWidget#getTemplatePath() in order to return the absolute path but not the to the widget file, rather than the class path.
  3. Build the plugin and copy it to /extensions/plugins
  4. Start server
  5. (warning)Do not forget to revert the path before commiting your changes

...

Ruby on Rails applications allow plugins to extend the SonarQube webapp with a complete MVC stack : controllers, helpers, models and views. Contrary to Unlike widgets, it does not require you to declare a Java component. ; Ruby sources just have to be stored in the plugin directory : /src/main/resources/org/sonar/ror/<plugin key>. This directory must also contain an empty file named init.rb.

...

The development mode reloads Ruby changes on the fly. It allows you to edit code and to directly interact with the application. Only the changes on the files that exist during server startup are supported. Adding a new file requires you to restart the server.

To enable the development mode on an application :

...