Open
Description
Describe the bug
Flutter allows us to disable lints using: // ignore_for_file: type=lint
.
Reference: https://dart.dev/tools/analysis
This is working as expected, actually.
When I start my project with this directive, all lints will be correctly ignored (flutter's and custom_lint). The problem is when I add this directive to other files. The flutter lints will be immediately ignored, but custom_lint's will stay there.
In order to make it work for custom_lint, I have to restart the analysis server.
To Reproduce
- Add
// ignore_for_file: type=lint
to any existing file with custom_lint activated. - Remove it.
Expected behavior
Lints to be instantly disabled.