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

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

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

origin: SonarSource/sonarqube

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

.setCreatedAt(new Date(rule.getCreatedAt()))
.setUpdatedAt(new Date(rule.getUpdatedAt()))
.setRepositoryKey(rule.getRepositoryKey())
.setSeverity(severity != null ? RulePriority.valueOf(severity) : null)
.setStatus(rule.getStatus().name())
origin: SonarSource/sonarqube

.setCreatedAt(new Date(ruleDefinition.getCreatedAt()))
.setUpdatedAt(new Date(ruleDefinition.getUpdatedAt()))
.setRepositoryKey(ruleDefinition.getRepositoryKey())
.setSeverity(severity != null ? RulePriority.valueOf(severity) : null)
.setStatus(ruleDefinition.getStatus().name())
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

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

.setCreatedAt(new Date(rule.getCreatedAt()))
.setUpdatedAt(new Date(rule.getUpdatedAt()))
.setRepositoryKey(rule.getRepositoryKey())
.setSeverity(severity != null ? RulePriority.valueOf(severity) : null)
.setStatus(rule.getStatus().name())
origin: org.sonarsource.sonarqube/sonar-server

.setCreatedAt(new Date(ruleDefinition.getCreatedAt()))
.setUpdatedAt(new Date(ruleDefinition.getUpdatedAt()))
.setRepositoryKey(ruleDefinition.getRepositoryKey())
.setSeverity(severity != null ? RulePriority.valueOf(severity) : null)
.setStatus(ruleDefinition.getStatus().name())
org.sonar.api.rulesRulesetRepositoryKey

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,
  • setKey,
  • setStatus,
  • getDescription

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getSystemService (Context)
  • setScale (BigDecimal)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Collectors (java.util.stream)
  • JTable (javax.swing)
  • 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