diff --git a/pkg/meta/analysis_options.yaml b/pkg/meta/analysis_options.yaml new file mode 100644 index 00000000000..572dd239d09 --- /dev/null +++ b/pkg/meta/analysis_options.yaml @@ -0,0 +1 @@ +include: package:lints/recommended.yaml diff --git a/pkg/meta/lib/meta.dart b/pkg/meta/lib/meta.dart index ba14be9f1be..076f2c986e4 100644 --- a/pkg/meta/lib/meta.dart +++ b/pkg/meta/lib/meta.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: library_private_types_in_public_api + /// Annotations that developers can use to express the intentions that otherwise /// can't be deduced by statically analyzing the source code. /// diff --git a/pkg/meta/pubspec.yaml b/pkg/meta/pubspec.yaml index 4c5deeb4b09..b621828b576 100644 --- a/pkg/meta/pubspec.yaml +++ b/pkg/meta/pubspec.yaml @@ -8,3 +8,10 @@ repository: https://github.com/dart-lang/sdk/tree/main/pkg/meta environment: sdk: ">=2.12.0 <3.0.0" + +# We use 'any' version constraints here as we get our package versions from +# the dart-lang/sdk repo's DEPS file. Note that this is a special case; the +# best practice for packages is to specify their compatible version ranges. +# See also https://dart.dev/tools/pub/dependencies. +dev_dependencies: + lints: any