Tabnine Logo
Rule.setKey
Code IndexAdd Tabnine to your IDE (free)

How to use
setKey
method
in
org.sonar.api.rules.Rule

Best Java code snippets using org.sonar.api.rules.Rule.setKey (Showing top 12 results out of 315)

origin: SonarSource/sonarqube

public Rule setUniqueKey(String repositoryKey, String key) {
 return setRepositoryKey(repositoryKey).setKey(key).setConfigKey(key);
}
origin: SonarSource/sonarqube

rule.setKey(StringUtils.trim(keyAttribute));
 rule.setKey(StringUtils.trim(cursor.collectDescendantText(false)));
origin: SonarSource/sonarqube

.setName(rule.getName())
.setLanguage(rule.getLanguage())
.setKey(rule.getRuleKey())
.setConfigKey(rule.getConfigKey())
.setIsTemplate(rule.isTemplate())
origin: SonarSource/sonarqube

.setName(ruleDefinition.getName())
.setLanguage(ruleDefinition.getLanguage())
.setKey(ruleDefinition.getRuleKey())
.setConfigKey(ruleDefinition.getConfigKey())
.setIsTemplate(ruleDefinition.isTemplate())
origin: org.sonarsource.sonarqube/sonar-plugin-api

public Rule setUniqueKey(String repositoryKey, String key) {
 return setRepositoryKey(repositoryKey).setKey(key).setConfigKey(key);
}
origin: org.codehaus.sonar/sonar-plugin-api

public Rule setUniqueKey(String repositoryKey, String key) {
 return setRepositoryKey(repositoryKey).setKey(key).setConfigKey(key);
}
origin: octo-technology/sonar-objective-c

  rules.add(rule);
  rule.setName(previousLine);
  rule.setKey(previousLine);
} else if (line.matches("Summary:.*")) {
  inDescription = true;
origin: org.codehaus.sonar/sonar-deprecated

rule.setKey(StringUtils.trim(keyAttribute));
 rule.setKey(StringUtils.trim(cursor.collectDescendantText(false)));
origin: octo-technology/sonar-objective-c

private void recordViolation(final org.sonar.api.resources.File resource,
    final SMInputCursor line) throws XMLStreamException {
  final Rule rule = Rule.create();
  final Violation violation = Violation.create(rule, resource);
  // PMD Priorities are 1, 2, 3, 4, 5 RulePriority[0] is INFO
  rule.setSeverity(RulePriority.values()[PMD_MINIMUM_PRIORITY
      - Integer.valueOf(line.getAttrValue("priority"))]);
  rule.setKey(line.getAttrValue("rule"));
  rule.setRepositoryKey(OCLintRuleRepository.REPOSITORY_KEY);
  violation.setLineId(Integer.valueOf(line.getAttrValue("beginline")));
  violation.setMessage(line.getElemStringValue());
  foundViolations.add(violation);
}
origin: org.sonarsource.sonarqube/sonar-server

.setName(rule.getName())
.setLanguage(rule.getLanguage())
.setKey(rule.getRuleKey())
.setConfigKey(rule.getConfigKey())
.setIsTemplate(rule.isTemplate())
origin: org.sonarsource.sonarqube/sonar-server

.setName(ruleDefinition.getName())
.setLanguage(ruleDefinition.getLanguage())
.setKey(ruleDefinition.getRuleKey())
.setConfigKey(ruleDefinition.getConfigKey())
.setIsTemplate(ruleDefinition.isTemplate())
origin: org.sonarsource.sonarqube/sonar-plugin-api

rule.setKey(StringUtils.trim(keyAttribute));
 rule.setKey(StringUtils.trim(cursor.collectDescendantText(false)));
org.sonar.api.rulesRulesetKey

Javadoc

Sets the rule key

Popular methods of Rule

  • create
    Create with all required fields
  • getKey
  • getConfigKey
  • setConfigKey
    Sets the configuration key
  • setName
    Sets the rule name
  • setSeverity
  • getName
  • getRepositoryKey
  • ruleKey
  • setDescription
    Sets the rule description
  • createParameter
  • getSeverity
  • createParameter,
  • getSeverity,
  • setTags,
  • <init>,
  • getParam,
  • getParams,
  • setStatus,
  • getDescription,
  • setRepositoryKey

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Path (java.nio.file)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JFrame (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now