@Test public void should_read_report_utf16() { setReport("report-utf16.json"); stylelintReportSensor.execute(context); Collection<ExternalIssue> externalIssues = context.allExternalIssues(); assertThat(externalIssues).hasSize(2); }
@Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, CssPlugin.STYLELINT_REPORT_PATHS); reportFiles.forEach(report -> importReport(report, context)); }
StylelintReportSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, CssPlugin.STYLELINT_REPORT_PATHS); reportFiles.forEach(report -> importReport(report, context)); } }
StylelintReportSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, CssPlugin.STYLELINT_REPORT_PATHS); reportFiles.forEach(report -> importReport(report, context)); } StylelintReportSensor(CheckFactory checkFactory); }
StylelintReportSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, CssPlugin.STYLELINT_REPORT_PATHS); reportFiles.forEach(report -> importReport(report, context)); } StylelintReportSensor(CheckFactory checkFactory); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static ExternalRuleLoader getStylelintRuleLoader(); }
StylelintReportSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, CssPlugin.STYLELINT_REPORT_PATHS); reportFiles.forEach(report -> importReport(report, context)); } StylelintReportSensor(CheckFactory checkFactory); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static ExternalRuleLoader getStylelintRuleLoader(); static final String STYLELINT; }