False positive for package_names lint for Pub Workspace name #60662
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-linter
Issues with the analyzer's support for the linter package
linter-false-positive
P3
A lower priority bug or feature request
When creating a pub workspace with
analysis_options.yaml
in the root directory, it reports that the package name of the mainpubspec.yaml
is invalid when it's set toname: _
.3.7.2
Directory structure:
/pubspec.yaml
/analysis_options.yaml
/package_a
/package_b
/package_c
Contents of
/pubspec.yaml
:If I understand correctly the following regular expression fails:
sdk/pkg/linter/lib/src/utils.dart
Lines 39 to 46 in 4f3a672
Which is the first check in:
sdk/pkg/linter/lib/src/utils.dart
Lines 94 to 98 in 4f3a672
The text was updated successfully, but these errors were encountered: