Package org.sonar.api.utils.text

Examples of org.sonar.api.utils.text.JsonWriter.prop()


          .prop("rule", issue.ruleKey().rule());
        InputPath inputPath = issue.inputPath();
        if (inputPath != null) {
          jsonWriter.prop("path", inputPath.relativePath());
        }
        jsonWriter.prop("message", issue.message())
          .prop("effortToFix", issue.effortToFix())
          .prop("line", issue.line());
        Severity overridenSeverity = issue.overridenSeverity();
        if (overridenSeverity != null) {
          jsonWriter.prop("severity", overridenSeverity.name());
View Full Code Here


        jsonWriter.prop("message", issue.message())
          .prop("effortToFix", issue.effortToFix())
          .prop("line", issue.line());
        Severity overridenSeverity = issue.overridenSeverity();
        if (overridenSeverity != null) {
          jsonWriter.prop("severity", overridenSeverity.name());
        }
        jsonWriter.endObject();
      }
      jsonWriter.endArray()
        .endObject()
View Full Code Here

      for (Measure<?> measure : measureCache.byModule(def.getKey())) {
        jsonWriter.beginObject()
          .prop("metricKey", measure.metric().key());
        InputFile inputFile = measure.inputFile();
        if (inputFile != null) {
          jsonWriter.prop("filePath", inputFile.relativePath());
        }
        jsonWriter.prop("value", String.valueOf(measure.value()))
          .endObject();
      }
      jsonWriter.endArray()
View Full Code Here

          .prop("metricKey", measure.metric().key());
        InputFile inputFile = measure.inputFile();
        if (inputFile != null) {
          jsonWriter.prop("filePath", inputFile.relativePath());
        }
        jsonWriter.prop("value", String.valueOf(measure.value()))
          .endObject();
      }
      jsonWriter.endArray()
        .endObject()
        .close();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.