2 * Sonar, open source software quality management tool.
\r
3 * Copyright (C) 2009 SonarSource SA
\r
4 * mailto:contact AT sonarsource DOT com
\r
6 * Sonar is free software; you can redistribute it and/or
\r
7 * modify it under the terms of the GNU Lesser General Public
\r
8 * License as published by the Free Software Foundation; either
\r
9 * version 3 of the License, or (at your option) any later version.
\r
11 * Sonar is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
14 * Lesser General Public License for more details.
\r
16 * You should have received a copy of the GNU Lesser General Public
\r
17 * License along with Sonar; if not, write to the Free Software
\r
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
\r
20 package org.sonar.plugins.core.widgets;
\r
22 import org.sonar.api.web.AbstractRubyTemplate;
\r
23 import org.sonar.api.web.Description;
\r
24 import org.sonar.api.web.RubyRailsWidget;
\r
25 import org.sonar.api.web.SupportVariationDashboard;
\r
27 @Description("Reports on copy/paste and documentation")
\r
28 @SupportVariationDashboard
\r
29 public class CommentsDuplicationsWidget extends AbstractRubyTemplate implements RubyRailsWidget {
\r
30 public String getId() {
\r
31 return "comments_duplications";
\r
34 public String getTitle() {
\r
35 return "Comments & Duplications";
\r
39 protected String getTemplatePath() {
\r
40 return "/org/sonar/plugins/core/widgets/comments_duplications.html.erb";
\r