Linter: Empty rules section disables lints from include

Created on 28 Apr 2021  路  3Comments  路  Source: dart-lang/linter

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.

bug

Most helpful comment

I also recently touched the code that grabs data from analysis_options. 馃槰

All 3 comments

/cc @bwilkerson who may know a bit about the include implementation

I also recently touched the code that grabs data from analysis_options. 馃槰

Was this page helpful?
0 / 5 - 0 ratings