Skip to content

Commit

Permalink
Merge pull request #29 from kuhnroyal/feature/analyzer-report
Browse files Browse the repository at this point in the history
feat (analyzer): allow reuse of an existing dartanalyzer report
  • Loading branch information
zippy1978 committed Apr 26, 2021
2 parents 190d1b6 + 661dc46 commit 698b1f7
Show file tree
Hide file tree
Showing 5 changed files with 282 additions and 240 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#### Enhancements

- Allow re-using an existing dartanalyzer report with `sonar.dart.analysis.reportPath`
- Add missing dart keywords `extension`, `on`, `mixin`

#### Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class DartSensor implements Sensor {
private static final Logger LOGGER = LoggerFactory.getLogger(DartSensor.class);
private static final int EXECUTOR_TIMEOUT = 10000;
public static final String DART_ANALYSIS_USE_EXISTING_OPTIONS_KEY = "sonar.dart.analysis.useExistingOptions";
public static final String DART_ANALYSIS_USE_EXISTING_REPORT_PATH_KEY = "sonar.dart.analysis.reportPath";

@Override
public void describe(SensorDescriptor sensorDescriptor) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public SourceLine[] getLines(final InputStream inputStream, final Charset charse
}
sourceLines.add(new SourceLine(totalLines, count, global - count, global));
} catch (final Throwable e) {
LOGGER.warn("Error occured reading file", e);
LOGGER.warn("Error occurred reading file", e);
}

return sourceLines.toArray(new SourceLine[0]);
Expand Down
Loading

0 comments on commit 698b1f7

Please sign in to comment.