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.MeasureSensor; 024 import org.sonar.xoo.lang.ScmActivitySensor; 025 import org.sonar.xoo.lang.SymbolReferencesSensor; 026 import org.sonar.xoo.lang.SyntaxHighlightingSensor; 027 import org.sonar.xoo.lang.XooTokenizerSensor; 028 import org.sonar.xoo.rule.ChecksSensor; 029 import org.sonar.xoo.rule.CreateIssueByInternalKeySensor; 030 import org.sonar.xoo.rule.OneIssueOnDirPerFileSensor; 031 import org.sonar.xoo.rule.OneIssuePerLineSensor; 032 import org.sonar.xoo.rule.RandomAccessSensor; 033 import org.sonar.xoo.rule.XooFakeExporter; 034 import org.sonar.xoo.rule.XooFakeImporter; 035 import org.sonar.xoo.rule.XooFakeImporterWithMessages; 036 import org.sonar.xoo.rule.XooQualityProfile; 037 import org.sonar.xoo.rule.XooRulesDefinition; 038 039 import java.util.Arrays; 040 import java.util.List; 041 042 /** 043 * Plugin entry-point, as declared in pom.xml. 044 */ 045 public class XooPlugin extends SonarPlugin { 046 047 /** 048 * Declares all the extensions implemented in the plugin 049 */ 050 @Override 051 public List getExtensions() { 052 return Arrays.asList( 053 Xoo.class, 054 XooRulesDefinition.class, 055 XooQualityProfile.class, 056 057 XooFakeExporter.class, 058 XooFakeImporter.class, 059 XooFakeImporterWithMessages.class, 060 061 // sensors 062 MeasureSensor.class, 063 ScmActivitySensor.class, 064 SyntaxHighlightingSensor.class, 065 SymbolReferencesSensor.class, 066 XooTokenizerSensor.class, 067 ChecksSensor.class, 068 RandomAccessSensor.class, 069 070 OneIssuePerLineSensor.class, 071 OneIssueOnDirPerFileSensor.class, 072 CreateIssueByInternalKeySensor.class 073 ); 074 } 075 }