pinchbv / floor

The typesafe, reactive, and lightweight SQLite abstraction for your Flutter applications
https://pinchbv.github.io/floor/
Apache License 2.0
951 stars 190 forks source link

Invalid use of a private type #742

Open kevin-haynie opened 1 year ago

kevin-haynie commented 1 year ago

I love this package but there are a couple of warnings that the linter produces which should be fixed:

image image
dkaera commented 1 year ago

I assume you are using custom lint rules. The default ones do not cause this warning.

kevin-haynie commented 1 year ago

I didn't change any lint rules. Here's my analysis_options.yaml file. What does your analysis_options.yaml file look like?

image
SEGVeenstra commented 1 year ago

I'm able to reproduce this:

   info • Invalid use of a private type in a public API •
          lib/database.g.dart:13:10 •
          library_private_types_in_public_api
   info • Invalid use of a private type in a public API •
          lib/database.g.dart:19:10 •
          library_private_types_in_public_api

With the default flutter_lints package.

linter rule: https://dart.dev/tools/linter-rules/library_private_types_in_public_api

nickolasdeluca commented 1 year ago

Can confirm, also using default lint settings and the generated code produces this warning.