001 /* 002 * SonarQube, open source software quality management tool. 003 * Copyright (C) 2008-2014 SonarSource 004 * mailto:contact AT sonarsource DOT com 005 * 006 * SonarQube is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 3 of the License, or (at your option) any later version. 010 * 011 * SonarQube is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public License 017 * along with this program; if not, write to the Free Software Foundation, 018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 019 */ 020 package org.sonar.xoo; 021 022 import org.sonar.api.SonarPlugin; 023 import org.sonar.xoo.lang.CoveragePerTestSensor; 024 import org.sonar.xoo.lang.DependencySensor; 025 import org.sonar.xoo.lang.MeasureSensor; 026 import org.sonar.xoo.lang.SymbolReferencesSensor; 027 import org.sonar.xoo.lang.SyntaxHighlightingSensor; 028 import org.sonar.xoo.lang.TestCaseSensor; 029 import org.sonar.xoo.lang.XooTokenizerSensor; 030 import org.sonar.xoo.rule.ChecksSensor; 031 import org.sonar.xoo.rule.CreateIssueByInternalKeySensor; 032 import org.sonar.xoo.rule.OneIssueOnDirPerFileSensor; 033 import org.sonar.xoo.rule.OneIssuePerLineSensor; 034 import org.sonar.xoo.rule.XooFakeExporter; 035 import org.sonar.xoo.rule.XooFakeImporter; 036 import org.sonar.xoo.rule.XooFakeImporterWithMessages; 037 import org.sonar.xoo.rule.XooQualityProfile; 038 import org.sonar.xoo.rule.XooRulesDefinition; 039 import org.sonar.xoo.scm.XooBlameCommand; 040 import org.sonar.xoo.scm.XooScmProvider; 041 042 import java.util.Arrays; 043 import java.util.List; 044 045 /** 046 * Plugin entry-point, as declared in pom.xml. 047 */ 048 public class XooPlugin extends SonarPlugin { 049 050 /** 051 * Declares all the extensions implemented in the plugin 052 */ 053 @Override 054 public List getExtensions() { 055 return Arrays.asList( 056 Xoo.class, 057 XooRulesDefinition.class, 058 XooQualityProfile.class, 059 060 XooFakeExporter.class, 061 XooFakeImporter.class, 062 XooFakeImporterWithMessages.class, 063 064 // SCM 065 XooScmProvider.class, 066 XooBlameCommand.class, 067 068 // sensors 069 MeasureSensor.class, 070 SyntaxHighlightingSensor.class, 071 SymbolReferencesSensor.class, 072 XooTokenizerSensor.class, 073 TestCaseSensor.class, 074 CoveragePerTestSensor.class, 075 DependencySensor.class, 076 ChecksSensor.class, 077 078 OneIssuePerLineSensor.class, 079 OneIssueOnDirPerFileSensor.class, 080 CreateIssueByInternalKeySensor.class 081 ); 082 } 083 }