0xPixelfrost
0xPixelfrost

Reputation: 10464

Flutter - Ignore lint for tests breaks compiler and auto-import

Using an analysis option definition like below helps to disable lint warnings for tests files, but then i also don't get any compiler errors anymore nor the auto-import suggestions.

analyzer:
  exclude:
    - test/**

I tried also different variations but non of them worked. Any ideas how to solve this?

Android Studio Bumblebee | 2021.1.1 Patch 1 Flutter 2.10.1 flutter_lints: ^1.0.4

Upvotes: 0

Views: 828

Answers (1)

Instead of adding exclude rule, you can create another analysis_options.yaml file inside your test folder so that the analyzer would use the newly created file to analyze the test folder.

Upvotes: 1

Related Questions