Skip to content

Empty rules section disables lints from include #58383

@goderbauer

Description

@goderbauer

Surprisingly, the following analysis_options.yaml file appears to be disabling all lints defined in the include.

include: package:pedantic/analysis_options.yaml

linter:
  rules:
    # avoid_print: false  # Uncomment to disable the `avoid_print` rule
    # prefer_single_quotes: true  # Uncomment to enable the `prefer_single_quotes` rule

Removing the linter/rules section altogether makes violations of lints from the include visible. So does uncommenting one of the lines in that section.

Metadata

Metadata

Assignees

Labels

devexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions