Skip to content

Commit

Permalink
enable and fix a new lint (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Feb 22, 2021
1 parent 209625f commit 17805c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ linter:
- always_require_non_null_named_parameters
- annotate_overrides
- avoid_catching_errors
- avoid_dynamic_calls
- avoid_empty_else
- avoid_function_literals_in_foreach_calls
- avoid_init_to_null
Expand Down
2 changes: 1 addition & 1 deletion json_serializable/tool/doc_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class _DocBuilder extends Builder {
final lockFileAssetId = AssetId(buildStep.inputId.package, 'pubspec.lock');
final lockFileContent = await buildStep.readAsString(lockFileAssetId);
final lockFileYaml =
loadYaml(lockFileContent, sourceUrl: lockFileAssetId.uri);
loadYaml(lockFileContent, sourceUrl: lockFileAssetId.uri) as YamlMap;
final pkgMap = lockFileYaml['packages'] as YamlMap;
final jsonAnnotationMap = pkgMap['json_annotation'] as YamlMap;
final jsonAnnotationVersionString = jsonAnnotationMap['version'] as String;
Expand Down

0 comments on commit 17805c1

Please sign in to comment.