@Test public void should_get_the_right_number_of_extensions() { Context context = new Context(Version.create(5, 6)); new Plugin().define(context); assertThat(context.getExtensions()).hasSize(13); }
@Override public void define(Context context) { context.addExtensions( CssLanguage.class, ScssLanguage.class, LessLanguage.class, CssAnalyzerSensor.class, EmbeddedCssAnalyzerSensor.class, ScssAnalyzerSensor.class, LessAnalyzerSensor.class, CssProfile.class, ScssProfile.class, LessProfile.class, CssRulesDefinition.class, ScssRulesDefinition.class, LessRulesDefinition.class); }
Plugin implements org.sonar.api.Plugin { @Override public void define(Context context) { context.addExtensions( CssLanguage.class, ScssLanguage.class, LessLanguage.class, CssAnalyzerSensor.class, EmbeddedCssAnalyzerSensor.class, ScssAnalyzerSensor.class, LessAnalyzerSensor.class, CssProfile.class, ScssProfile.class, LessProfile.class, CssRulesDefinition.class, ScssRulesDefinition.class, LessRulesDefinition.class); } }
Plugin implements org.sonar.api.Plugin { @Override public void define(Context context) { context.addExtensions( CssLanguage.class, ScssLanguage.class, LessLanguage.class, CssAnalyzerSensor.class, EmbeddedCssAnalyzerSensor.class, ScssAnalyzerSensor.class, LessAnalyzerSensor.class, CssProfile.class, ScssProfile.class, LessProfile.class, CssRulesDefinition.class, ScssRulesDefinition.class, LessRulesDefinition.class); }  }
Plugin implements org.sonar.api.Plugin { @Override public void define(Context context) { context.addExtensions( CssLanguage.class, ScssLanguage.class, LessLanguage.class, CssAnalyzerSensor.class, EmbeddedCssAnalyzerSensor.class, ScssAnalyzerSensor.class, LessAnalyzerSensor.class, CssProfile.class, ScssProfile.class, LessProfile.class, CssRulesDefinition.class, ScssRulesDefinition.class, LessRulesDefinition.class); }  @Override void define(Context context); }
Plugin implements org.sonar.api.Plugin { @Override public void define(Context context) { context.addExtensions( CssLanguage.class, ScssLanguage.class, LessLanguage.class, CssAnalyzerSensor.class, EmbeddedCssAnalyzerSensor.class, ScssAnalyzerSensor.class, LessAnalyzerSensor.class, CssProfile.class, ScssProfile.class, LessProfile.class, CssRulesDefinition.class, ScssRulesDefinition.class, LessRulesDefinition.class); }  @Override void define(Context context); static final String CSS_FILE_SUFFIXES_KEY; static final String CSS_FILE_SUFFIXES_DEFAULT_VALUE; static final String EMBEDDED_CSS_FILE_SUFFIXES_KEY; static final String EMBEDDED_CSS_FILE_SUFFIXES_DEFAULT_VALUE; static final String SCSS_FILE_SUFFIXES_KEY; static final String SCSS_FILE_SUFFIXES_DEFAULT_VALUE; static final String LESS_FILE_SUFFIXES_KEY; static final String LESS_FILE_SUFFIXES_DEFAULT_VALUE; }