From 10036761deec09ef9acc883a2ac00430f46c2467 Mon Sep 17 00:00:00 2001 From: Remi Rousselet Date: Mon, 4 Sep 2023 10:53:42 +0200 Subject: [PATCH] Disable test warning in generated files fixes #2871 --- packages/riverpod_generator/CHANGELOG.md | 4 ++++ packages/riverpod_generator/lib/src/riverpod_generator.dart | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/riverpod_generator/CHANGELOG.md b/packages/riverpod_generator/CHANGELOG.md index c3531014f..6290d7b95 100644 --- a/packages/riverpod_generator/CHANGELOG.md +++ b/packages/riverpod_generator/CHANGELOG.md @@ -1,3 +1,7 @@ +## Unreleased patch + +- Disable `invalid_use_of_visible_for_testing_member` in generated files + ## 2.3.1 - 2023-08-28 - `riverpod_annotation` upgraded to `2.1.4` diff --git a/packages/riverpod_generator/lib/src/riverpod_generator.dart b/packages/riverpod_generator/lib/src/riverpod_generator.dart index 538e367b6..0bd74277c 100644 --- a/packages/riverpod_generator/lib/src/riverpod_generator.dart +++ b/packages/riverpod_generator/lib/src/riverpod_generator.dart @@ -80,7 +80,7 @@ class RiverpodGenerator extends ParserGenerator { if (buffer.isNotEmpty) { buffer.write(''' // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member '''); }