You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
// ignore_for_file: type=lint
to any existing file with custom_lint activated.Expected behavior
Lints to be instantly disabled.
The text was updated successfully, but these errors were encountered: