class GoCoverSensor implements Sensor {

  static Stream<Path> getReportPaths(SensorContext sensorContext) {
    Configuration config = sensorContext.config();
    Path baseDir = sensorContext.fileSystem().baseDir().toPath();
    String[] reportPaths = config.getStringArray(REPORT_PATH_KEY);
    return Arrays.stream(reportPaths).flatMap(reportPath ->
      isWildcard(reportPath)
        ? getPatternPaths(baseDir, reportPath)
        : getRegularPath(baseDir, reportPath));
  }

}