Tabnine Logo
IssueTransition
Code IndexAdd Tabnine to your IDE (free)

How to use
IssueTransition
in
org.sonar.scanner.issue.tracking

Best Java code snippets using org.sonar.scanner.issue.tracking.IssueTransition (Showing top 6 results out of 315)

origin: SonarSource/sonarqube

public void trackIssues(ScannerReportReader reader, DefaultInputComponent component) {
 // raw issues = all the issues created by rule engines during this module scan and not excluded by filters
 List<ScannerReport.Issue> rawIssues = new LinkedList<>();
 try (CloseableIterator<ScannerReport.Issue> it = reader.readComponentIssues(component.scannerId())) {
  while (it.hasNext()) {
   rawIssues.add(it.next());
  }
 } catch (Exception e) {
  throw new IllegalStateException("Can't read issues for " + component.key(), e);
 }
 List<TrackedIssue> trackedIssues;
 if (localIssueTracking != null) {
  trackedIssues = localIssueTracking.trackIssues(component, rawIssues, analysisDate);
 } else {
  trackedIssues = doTransition(rawIssues, component);
 }
 for (TrackedIssue issue : trackedIssues) {
  issueCache.put(issue);
 }
}
origin: SonarSource/sonarqube

public void execute() {
 if (localIssueTracking != null) {
  localIssueTracking.init();
 }
 ScannerReportReader reader = new ScannerReportReader(reportPublisher.getReportDir().toFile());
 int nbComponents = inputComponentStore.all().size();
 if (nbComponents == 0) {
  return;
 }
 ProgressReport progressReport = new ProgressReport("issue-tracking-report", TimeUnit.SECONDS.toMillis(10));
 progressReport.start("Performing issue tracking");
 int count = 0;
 try {
  for (InputComponent component : inputComponentStore.all()) {
   trackIssues(reader, (DefaultInputComponent) component);
   count++;
   progressReport.message(count + "/" + nbComponents + " components tracked");
  }
 } finally {
  progressReport.stop(count + "/" + nbComponents + " components tracked");
 }
}
origin: SonarSource/sonarqube

getComponentByType(IssueTransition.class).execute();
getComponentByType(JSONReport.class).execute();
LOG.info("ANALYSIS SUCCESSFUL");
origin: org.sonarsource.sonarqube/sonar-scanner-engine

getComponentByType(IssueTransition.class).execute();
getComponentByType(JSONReport.class).execute();
LOG.info("ANALYSIS SUCCESSFUL");
origin: org.sonarsource.sonarqube/sonar-scanner-engine

public void trackIssues(ScannerReportReader reader, DefaultInputComponent component) {
 // raw issues = all the issues created by rule engines during this module scan and not excluded by filters
 List<ScannerReport.Issue> rawIssues = new LinkedList<>();
 try (CloseableIterator<ScannerReport.Issue> it = reader.readComponentIssues(component.scannerId())) {
  while (it.hasNext()) {
   rawIssues.add(it.next());
  }
 } catch (Exception e) {
  throw new IllegalStateException("Can't read issues for " + component.key(), e);
 }
 List<TrackedIssue> trackedIssues;
 if (localIssueTracking != null) {
  trackedIssues = localIssueTracking.trackIssues(component, rawIssues, analysisDate);
 } else {
  trackedIssues = doTransition(rawIssues, component);
 }
 for (TrackedIssue issue : trackedIssues) {
  issueCache.put(issue);
 }
}
origin: org.sonarsource.sonarqube/sonar-scanner-engine

public void execute() {
 if (localIssueTracking != null) {
  localIssueTracking.init();
 }
 ScannerReportReader reader = new ScannerReportReader(reportPublisher.getReportDir().toFile());
 int nbComponents = inputComponentStore.all().size();
 if (nbComponents == 0) {
  return;
 }
 ProgressReport progressReport = new ProgressReport("issue-tracking-report", TimeUnit.SECONDS.toMillis(10));
 progressReport.start("Performing issue tracking");
 int count = 0;
 try {
  for (InputComponent component : inputComponentStore.all()) {
   trackIssues(reader, (DefaultInputComponent) component);
   count++;
   progressReport.message(count + "/" + nbComponents + " components tracked");
  }
 } finally {
  progressReport.stop(count + "/" + nbComponents + " components tracked");
 }
}
org.sonar.scanner.issue.trackingIssueTransition

Most used methods

  • doTransition
  • execute
  • trackIssues

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
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