dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

Renaming files should also fix `directives_ordering` #56739

Open FMorschel opened 1 month ago

FMorschel commented 1 month ago

Repro:


// CC: @DanTup

dart-github-bot commented 1 month ago

Summary: Renaming a file that is imported in a Dart file does not update the import path in the file, leading to a directives_ordering lint error. This issue occurs even when the directives_ordering rule is enabled in the analysis_options file.