Package com.puppetlabs.geppetto.diagnostic

Examples of com.puppetlabs.geppetto.diagnostic.DiagnosticType


      }
      else if(message.startsWith("notice:")) {
        severity = Diagnostic.INFO;
        message = message.substring(7);
      }
      DiagnosticType type = message.startsWith("Could not parse")
          ? ValidationService.CATALOG_PARSER
          : ValidationService.CATALOG;
      CatalogDiagnostic diag = new CatalogDiagnostic(severity, type, message, new File(fileName));
      try {
        diag.setLineNumber(Integer.parseInt(line));
View Full Code Here


   * @param issue
   * @param rootDirectory
   * @param rootDirectory
   */
  private static void addIssueDiagnostic(Diagnostic diagnostics, Issue issue, File processedFile, File rootDirectory) {
    DiagnosticType type = issue.isSyntaxError()
        ? GEPPETTO_SYNTAX
        : GEPPETTO;
    DetailedFileDiagnostic dft = new DetailedFileDiagnostic(
      translateIssueSeverity(issue.getSeverity()), type, issue.getMessage(), uriToFile(
        issue.getUriToProblem(), rootDirectory));
View Full Code Here

      File rootDirectory) {

    int severity = issue.isSyntaxError()
        ? Diagnostic.ERROR
        : Diagnostic.WARNING;
    DiagnosticType type = issue.isSyntaxError()
        ? RUBY_SYNTAX
        : RUBY;

    DetailedFileDiagnostic dft = new DetailedFileDiagnostic(severity, type, issue.getMessage(), pathToFile(
      issue.getFileName(), rootDirectory));
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.diagnostic.DiagnosticType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.