-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelinter-lint-proposallinter-status-pendingtype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
It would be great to have a lint that flags when an exported API uses types that are not themselves exported.
For example:
// library a
class Foo { }// library b
import 'package:a/a.dart';
abstract class Bar {
Foo get foo;
}
// ...Library b should lint that Foo is not exported, correction would be:
// library b
import 'package:a/a.dart';
export 'package:a/a.dart' show Foo; // <--
abstract class Bar {
Foo get foo;
}
// ...jacob314, dkwingsmt and FMorscheljakemac53, natebosch and a14n
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelinter-lint-proposallinter-status-pendingtype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug