From 6ca6bf52cc557926a50056b567a69d2b815acbc5 Mon Sep 17 00:00:00 2001 From: Rexios Date: Wed, 23 Oct 2024 16:12:36 -0400 Subject: [PATCH] Fix analysis in generated files --- hive_generator/build.local.yaml | 8 ++++++++ hive_generator/lib/src/model/hive_schema.g.dart | 2 ++ .../lib/src/model/registrar_intermediate.g.dart | 2 ++ hive_generator/lib/src/registrar_builder.dart | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 hive_generator/build.local.yaml diff --git a/hive_generator/build.local.yaml b/hive_generator/build.local.yaml new file mode 100644 index 00000000..280da58d --- /dev/null +++ b/hive_generator/build.local.yaml @@ -0,0 +1,8 @@ +targets: + $default: + builders: + source_gen|combining_builder: + options: + ignore_for_file: + - document_ignores + - require_trailing_commas diff --git a/hive_generator/lib/src/model/hive_schema.g.dart b/hive_generator/lib/src/model/hive_schema.g.dart index 5589e3a4..2920aa52 100644 --- a/hive_generator/lib/src/model/hive_schema.g.dart +++ b/hive_generator/lib/src/model/hive_schema.g.dart @@ -1,5 +1,7 @@ // GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: document_ignores, require_trailing_commas + part of 'hive_schema.dart'; // ************************************************************************** diff --git a/hive_generator/lib/src/model/registrar_intermediate.g.dart b/hive_generator/lib/src/model/registrar_intermediate.g.dart index 1b3b221b..19bbf0b0 100644 --- a/hive_generator/lib/src/model/registrar_intermediate.g.dart +++ b/hive_generator/lib/src/model/registrar_intermediate.g.dart @@ -1,5 +1,7 @@ // GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: document_ignores, require_trailing_commas + part of 'registrar_intermediate.dart'; // ************************************************************************** diff --git a/hive_generator/lib/src/registrar_builder.dart b/hive_generator/lib/src/registrar_builder.dart index 7ddcec07..6332b562 100644 --- a/hive_generator/lib/src/registrar_builder.dart +++ b/hive_generator/lib/src/registrar_builder.dart @@ -12,7 +12,7 @@ import 'package:hive_ce_generator/src/model/registrar_intermediate.dart'; class RegistrarBuilder implements Builder { @override final buildExtensions = const { - r'$lib$': ['hive_registrar.g.dart'] + r'$lib$': ['hive_registrar.g.dart'], }; @override