VeryGoodOpenSource/very_good_analysis

Analysis messed up with generated code

Closed this issue · 1 comments

so when I use code generation package like Isar or Hive for example

its generated another new dart file and sometimes code generation messed up with Linter
so I need to ignore file for all problem that popup with Linters

is there are way to ignore on that single file ??? with only 1 tag ignore

Hi @tonyhart7 👋
Thanks for opening an issue!

You can create a build.yaml at the root of your package and specify which rules should be ignored for generated code. See https://github.com/felangel/bloc/blob/5506d13621729a08786b15c0d78a438fa8a7c4a2/examples/flutter_weather/packages/meta_weather_api/build.yaml#L7