diff --git a/analysis_options.yaml b/analysis_options.yaml index 8d1fffdcc..4f96b178a 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -26,5 +26,6 @@ linter: - throw_in_finally - unawaited_futures - unnecessary_lambdas + - unnecessary_library_directive - unnecessary_null_aware_assignments - unnecessary_statements diff --git a/lib/src/code_problem.dart b/lib/src/code_problem.dart index bc1abf55c..db64506e7 100644 --- a/lib/src/code_problem.dart +++ b/lib/src/code_problem.dart @@ -2,8 +2,6 @@ // 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. -library pana.code_problem; - import 'package:path/path.dart' as p; import 'internal_model.dart'; diff --git a/lib/src/license.dart b/lib/src/license.dart index 2e9f8cac4..bde1fc8f2 100644 --- a/lib/src/license.dart +++ b/lib/src/license.dart @@ -2,8 +2,6 @@ // 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. -library pana.license; - import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/lib/src/maintenance.dart b/lib/src/maintenance.dart index 601f5f4eb..5d1aa9a9b 100644 --- a/lib/src/maintenance.dart +++ b/lib/src/maintenance.dart @@ -2,8 +2,6 @@ // 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. -library pana.maintenance; - import 'package:json_annotation/json_annotation.dart'; /// Returns the candidates in priority order to display under the 'Example' tab. diff --git a/lib/src/pkg_resolution.dart b/lib/src/pkg_resolution.dart index e1bf23297..b60fa64d7 100644 --- a/lib/src/pkg_resolution.dart +++ b/lib/src/pkg_resolution.dart @@ -2,8 +2,6 @@ // 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. -library pana.pkg_resolution; - import 'dart:convert'; class PubEntry { diff --git a/test/ensure_build_test.dart b/test/ensure_build_test.dart index f2360a860..ca05c75a0 100644 --- a/test/ensure_build_test.dart +++ b/test/ensure_build_test.dart @@ -1,4 +1,6 @@ @Tags(['presubmit-only']) +library; + import 'dart:io'; import 'package:build_verify/build_verify.dart';