Skip to content

The directive // ignore_for_file: type=lint is not working properly for custom_lint. #234

Open
@arthurbcd

Description

@arthurbcd

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

  1. Add // ignore_for_file: type=lint to any existing file with custom_lint activated.
  2. Remove it.

Expected behavior
Lints to be instantly disabled.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions