Skip to content

Commit

Permalink
Merge pull request #161 from bancolombia/fix/json-report
Browse files Browse the repository at this point in the history
fix: generating report file when find issues in the report
  • Loading branch information
santitigaga authored Nov 18, 2024
2 parents e110511 + 0c08eee commit a5abc1a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
20 changes: 11 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Changelog
## 1.2.1
- Fixed generating report file when find issues in the report
## 1.2.0
- Add fix command
- Add prefer single quotes rule
- Add prefer first or null rule
- Add no blank line before single return rule
- Fix rule avoid dynamic to extensions definition
- Added fix command
- Added prefer single quotes rule
- Added prefer first or null rule
- Added no blank line before single return rule
- Fixed rule avoid dynamic to extensions definition
## 1.1.5
- Removed deprecated fields in analysis options and collection method
- Fix changelog URL for update available warning
- Fixed changelog URL for update available warning
## 1.1.4
- Fix some test
- Revert `analyzer` ^6.0.0 to ^5.14.0
- Fixed some test
- Reverted `analyzer` ^6.0.0 to ^5.14.0
## 1.1.3
- Fix some test
- Fixed some test
## 1.1.2
- Append new presset `analysis_options.1.0.0.yaml`
## 1.1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class LintJsonReporter extends JsonReporter<LintFileReport, LintReportParams> {
});

output.write(encodedReport);
await output.close();
}

Map<String, Object> _lintFileReportToJson(LintFileReport report) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const packageVersion = '1.2.0';
const packageVersion = '1.2.1';
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dart_code_linter
version: 1.2.0
version: 1.2.1
description: Dart Code Linter is a software analytics tool that helps developers analyse and improve software quality. Dart Code Linter is based on a fork of Dart Code Metrics.
repository: https://github.com/bancolombia/dart-code-linter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ void main() {

setUp(() {
output = IOSinkMock();
when(output.close).thenAnswer((_) async => null);
});

test('empty report', () {
Expand Down Expand Up @@ -119,6 +120,7 @@ void main() {
'violations': 2,
}),
);
verify(output.close).called(1);
});
});
}
4 changes: 2 additions & 2 deletions tools/analyzer_plugin/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: dart_code_linter_plugin_loader
description: This pubspec determines the version of the analyzer plugin to load.
version: 1.2.0
version: 1.2.1

environment:
sdk: ">=2.14.0 <3.0.0"

dependencies:
dart_code_linter: 1.2.0
dart_code_linter: 1.2.1

dev_dependencies:
lints: ^1.0.1

0 comments on commit a5abc1a

Please sign in to comment.