aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-01 09:26:04 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-01 14:27:28 +0100
commit685863d37599f91497a27512f270613b093f44ff (patch)
tree83edf99dff410f9fb73314bb51fda6c1b9bd2ff6 /sonar-ws
parentb9c2af22cfce4f3838153359b33fe56e6337279c (diff)
downloadsonarqube-685863d37599f91497a27512f270613b093f44ff.tar.gz
sonarqube-685863d37599f91497a27512f270613b093f44ff.zip
SONAR-7330 drop RuleNormalizer and RuleMapping
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesWsParameters.java81
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/rule/package-info.java25
2 files changed, 106 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesWsParameters.java
new file mode 100644
index 00000000000..384423b5beb
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesWsParameters.java
@@ -0,0 +1,81 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2016 SonarSource SA
+ * mailto:contact AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+package org.sonarqube.ws.client.rule;
+
+import com.google.common.collect.ImmutableSet;
+import java.util.Set;
+
+public class RulesWsParameters {
+ public static final String PARAM_REPOSITORIES = "repositories";
+ public static final String PARAM_KEY = "rule_key";
+ public static final String PARAM_ACTIVATION = "activation";
+ public static final String PARAM_QPROFILE = "qprofile";
+ public static final String PARAM_SEVERITIES = "severities";
+ public static final String PARAM_AVAILABLE_SINCE = "available_since";
+ public static final String PARAM_STATUSES = "statuses";
+ public static final String PARAM_LANGUAGES = "languages";
+ public static final String PARAM_DEBT_CHARACTERISTICS = "debt_characteristics";
+ public static final String PARAM_HAS_DEBT_CHARACTERISTIC = "has_debt_characteristic";
+ public static final String PARAM_TAGS = "tags";
+ public static final String PARAM_INHERITANCE = "inheritance";
+ public static final String PARAM_ACTIVE_SEVERITIES = "active_severities";
+ public static final String PARAM_IS_TEMPLATE = "is_template";
+ public static final String PARAM_TEMPLATE_KEY = "template_key";
+
+ public static final String FIELD_REPO = "repo";
+ public static final String FIELD_NAME = "name";
+ public static final String FIELD_CREATED_AT = "createdAt";
+ public static final String FIELD_SEVERITY = "severity";
+ public static final String FIELD_STATUS = "status";
+ public static final String FIELD_INTERNAL_KEY = "internalKey";
+ public static final String FIELD_IS_TEMPLATE = "isTemplate";
+ public static final String FIELD_TEMPLATE_KEY = "templateKey";
+ public static final String FIELD_TAGS = "tags";
+ public static final String FIELD_SYSTEM_TAGS = "sysTags";
+ public static final String FIELD_LANGUAGE = "lang";
+ public static final String FIELD_LANGUAGE_NAME = "langName";
+ public static final String FIELD_HTML_DESCRIPTION = "htmlDesc";
+ public static final String FIELD_MARKDOWN_DESCRIPTION = "mdDesc";
+ public static final String FIELD_NOTE_LOGIN = "noteLogin";
+ public static final String FIELD_MARKDOWN_NOTE = "mdNote";
+ public static final String FIELD_HTML_NOTE = "htmlNote";
+ public static final String FIELD_DEFAULT_DEBT_CHAR = "defaultDebtChar";
+ public static final String FIELD_DEFAULT_DEBT_SUB_CHAR = "defaultDebtSubChar";
+ public static final String FIELD_DEBT_CHAR = "debtChar";
+ public static final String FIELD_DEBT_SUB_CHAR = "debtSubChar";
+ public static final String FIELD_DEBT_CHAR_NAME = "debtCharName";
+ public static final String FIELD_DEBT_SUB_CHAR_NAME = "debtSubCharName";
+ public static final String FIELD_DEFAULT_DEBT_REM_FUNCTION = "defaultDebtRemFn";
+ public static final String FIELD_EFFORT_TO_FIX_DESCRIPTION = "effortToFixDescription";
+ public static final String FIELD_DEBT_OVERLOADED = "debtOverloaded";
+ public static final String FIELD_DEBT_REM_FUNCTION = "debtRemFn";
+ public static final String FIELD_PARAMS = "params";
+ public static final String FIELD_ACTIVES = "actives";
+
+ public static final Set<String> OPTIONAL_FIELDS = ImmutableSet.of(FIELD_REPO, FIELD_NAME, FIELD_CREATED_AT, FIELD_SEVERITY, FIELD_STATUS, FIELD_INTERNAL_KEY, FIELD_IS_TEMPLATE,
+ FIELD_TEMPLATE_KEY, FIELD_TAGS, FIELD_SYSTEM_TAGS, FIELD_LANGUAGE, FIELD_LANGUAGE_NAME, FIELD_HTML_DESCRIPTION, FIELD_MARKDOWN_DESCRIPTION, FIELD_NOTE_LOGIN,
+ FIELD_MARKDOWN_NOTE, FIELD_HTML_NOTE, FIELD_DEFAULT_DEBT_CHAR, FIELD_DEFAULT_DEBT_SUB_CHAR, FIELD_DEBT_CHAR, FIELD_DEBT_SUB_CHAR, FIELD_DEBT_CHAR_NAME,
+ FIELD_DEBT_SUB_CHAR_NAME, FIELD_DEFAULT_DEBT_REM_FUNCTION, FIELD_EFFORT_TO_FIX_DESCRIPTION, FIELD_DEBT_OVERLOADED, FIELD_DEBT_REM_FUNCTION, FIELD_PARAMS, FIELD_ACTIVES);
+
+ private RulesWsParameters() {
+ // prevent instantiation
+ }
+}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/package-info.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/package-info.java
new file mode 100644
index 00000000000..1560fa7e838
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/package-info.java
@@ -0,0 +1,25 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2016 SonarSource SA
+ * mailto:contact AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+@ParametersAreNonnullByDefault
+package org.sonarqube.ws.client.rule;
+
+import javax.annotation.ParametersAreNonnullByDefault;
+