Skip to content

Commit

Permalink
Cleanup library directive usage (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Feb 7, 2024
1 parent bd89ae1 commit 113f055
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ linter:
- throw_in_finally
- unawaited_futures
- unnecessary_lambdas
- unnecessary_library_directive
- unnecessary_null_aware_assignments
- unnecessary_statements
2 changes: 0 additions & 2 deletions lib/src/code_problem.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/src/license.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions lib/src/maintenance.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions lib/src/pkg_resolution.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions test/ensure_build_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@Tags(['presubmit-only'])
library;

import 'dart:io';

import 'package:build_verify/build_verify.dart';
Expand Down

0 comments on commit 113f055

Please sign in to comment.