Skip to content

Incompatible lint doesnt trigger for included yaml #60125

Open
@FMorschel

Description

@FMorschel

Steps:

  1. Create new Dart project
  2. Add very_good_analysis to dependencies (can be dev)
  3. Swap the content of the analysis_option.yaml with:
include: package:very_good_analysis/analysis_options.7.0.0.yaml

linter:
  rules:
    prefer_relative_imports: true

If you look at https://pub.dev/packages/very_good_analysis they say they prefer the usage of always_use_package_imports. But this triggers nothing, only this way you'll have both lints triggering on a loop. I think we either should trigger incompatible_lint here or prefer the user manually written lint (prefered IMO).

CC @pq

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onanalyzer-analysis-optionsarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-warningIssues with the analyzer's Warning codes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions