Skip to content

Commit eccc7d8

Browse files
authored
Update package:lints and clean up library declarations (#2436)
1 parent 9ada46f commit eccc7d8

File tree

105 files changed

+142
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+142
-28
lines changed

analysis_options.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ analyzer:
1010
linter:
1111
rules:
1212
- always_declare_return_types
13-
- always_require_non_null_named_parameters
1413
- annotate_overrides
1514
- avoid_classes_with_only_static_members
1615
- avoid_empty_else
@@ -20,7 +19,6 @@ linter:
2019
- avoid_relative_lib_imports
2120
- avoid_renaming_method_parameters
2221
- avoid_return_types_on_setters
23-
- avoid_returning_null
2422
- avoid_returning_null_for_void
2523
- avoid_returning_this
2624
- avoid_shadowing_type_parameters
@@ -63,7 +61,6 @@ linter:
6361
- prefer_conditional_assignment
6462
- prefer_const_constructors
6563
- prefer_contains
66-
- prefer_equal_for_default_values
6764
- prefer_final_fields
6865
- prefer_for_elements_to_map_fromIterable
6966
- prefer_function_declarations_over_variables

dwds/debug_extension/web/background.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library background;
6+
library;
77

88
import 'package:dwds/data/debug_info.dart';
99
import 'package:js/js.dart';

dwds/debug_extension/web/cider_connection.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library cider_connection;
6+
library;
77

88
import 'dart:convert';
99
import 'dart:js_util';

dwds/debug_extension/web/copier.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library copier;
6+
library;
77

88
import 'dart:html';
99

dwds/debug_extension/web/cross_extension_communication.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library cross_extension_communication;
6+
library;
77

88
import 'package:js/js.dart';
99

dwds/debug_extension/web/debug_info.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library debug_info;
6+
library;
77

88
import 'dart:convert';
99
import 'dart:html';

dwds/debug_extension/web/debug_session.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library debug_session;
6+
library;
77

88
import 'dart:async';
99
import 'dart:convert';

dwds/debug_extension/web/detector.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library detector;
6+
library;
77

88
import 'dart:convert';
99
import 'dart:html';

dwds/debug_extension/web/devtools.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library devtools;
6+
library;
77

88
import 'dart:html';
99

dwds/debug_extension/web/logger.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library logger;
6+
library;
77

88
import 'package:js/js.dart';
99

dwds/debug_extension/web/messaging.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library messaging;
6+
library;
77

88
import 'dart:async';
99
import 'dart:convert';

dwds/debug_extension/web/panel.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library panel;
6+
library;
77

88
import 'dart:async';
99
import 'dart:convert';

dwds/debug_extension/web/popup.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library popup;
6+
library;
77

88
import 'dart:async';
99
import 'dart:convert';

dwds/debug_extension/web/storage.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library storage;
6+
library;
77

88
import 'dart:async';
99
import 'dart:convert';

dwds/debug_extension/web/utils.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@JS()
6-
library utils;
6+
library;
77

88
import 'dart:async';
99
import 'dart:js_util';

dwds/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dev_dependencies:
5050
frontend_server_common:
5151
path: ../frontend_server_common
5252
js: ^0.6.4
53-
lints: ^3.0.0
53+
lints: ^4.0.0
5454
pubspec_parse: ^1.2.0
5555
puppeteer: ^3.0.0
5656
stream_channel: ^2.1.0

dwds/test/build/ensure_version_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@TestOn('vm')
6+
library;
7+
68
import 'dart:io';
79

810
import 'package:dwds/src/version.dart';

dwds/test/build/min_sdk_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@TestOn('vm')
66
@Skip('Intended to run in analyze stage on stable SDK only, see mono_pkg.yaml')
7+
library;
8+
79
import 'dart:io';
810

911
import 'package:pub_semver/pub_semver.dart';

dwds/test/build_daemon_breakpoint_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
78

89
import 'package:test/test.dart';
910
import 'package:test_common/test_sdk_configuration.dart';

dwds/test/build_daemon_callstack_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
78

89
import 'package:test/test.dart';
910
import 'package:test_common/logging.dart';

dwds/test/build_daemon_circular_evaluate_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
78

89
import 'package:test/test.dart';
910
import 'package:test_common/test_sdk_configuration.dart';

dwds/test/build_daemon_evaluate_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@Tags(['daily'])
66
@TestOn('vm')
77
@Timeout(Duration(minutes: 2))
8+
library;
89

910
import 'package:test/test.dart';
1011
import 'package:test_common/test_sdk_configuration.dart';

dwds/test/chrome_proxy_service_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
@TestOn('vm')
66
@Tags(['daily'])
77
@Timeout(Duration(minutes: 2))
8+
library;
9+
810
import 'dart:async';
911
import 'dart:convert';
1012
import 'dart:io';

dwds/test/dart_uri_file_uri_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
78

89
import 'package:dwds/src/utilities/dart_uri.dart';
910
import 'package:path/path.dart' as p;

dwds/test/dart_uri_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
78

89
import 'package:dwds/src/utilities/dart_uri.dart';
910
import 'package:path/path.dart' as p;

dwds/test/debug_extension_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'windows': Skip('https://github.com/dart-lang/webdev/issues/711'),
1111
'linux': Skip('https://github.com/dart-lang/webdev/issues/2114'),
1212
})
13+
library;
1314

1415
import 'package:dwds/src/connections/debug_connection.dart';
1516
import 'package:dwds/src/handlers/injector.dart';

dwds/test/debug_service_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
8+
79
import 'dart:async';
810
import 'dart:convert';
911
import 'dart:io';

dwds/test/debugger_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
8+
79
import 'dart:async';
810

911
import 'package:dwds/src/debugging/debugger.dart';

dwds/test/devtools_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@Timeout(Duration(minutes: 5))
66
@TestOn('vm')
7+
library;
8+
79
import 'dart:io';
810

911
import 'package:test/test.dart';

dwds/test/evaluate_circular_common.dart

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
78

89
import 'package:test/test.dart';
910
import 'package:test_common/logging.dart';

dwds/test/evaluate_common.dart

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
8+
79
import 'dart:async';
810

911
import 'package:dwds/src/services/expression_evaluator.dart';

dwds/test/events_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@Timeout(Duration(minutes: 2))
6+
library;
7+
68
import 'dart:async';
79
import 'dart:io';
810

dwds/test/execution_context_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@Timeout(Duration(minutes: 2))
6+
library;
7+
68
import 'dart:async';
79
import 'dart:convert';
810

dwds/test/expression_compiler_service_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
@Tags(['daily'])
66
@TestOn('vm')
77
@Timeout(Duration(minutes: 2))
8+
library;
9+
810
import 'dart:async';
911
import 'dart:convert';
1012
import 'dart:io';

dwds/test/expression_evaluator_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
8+
79
import 'dart:async';
810

911
import 'package:dwds/src/debugging/debugger.dart';

dwds/test/extension_backend_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@Timeout(Duration(minutes: 2))
6+
library;
7+
68
import 'dart:async';
79

810
import 'package:async/src/stream_queue.dart';

dwds/test/extension_debugger_test.dart

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@Timeout(Duration(minutes: 2))
6+
library;
7+
68
import 'dart:async';
79
import 'dart:convert';
810

dwds/test/frontend_server_breakpoint_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
78

89
import 'package:test/test.dart';
910
import 'package:test_common/logging.dart';

dwds/test/frontend_server_callstack_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
78

89
import 'package:test/test.dart';
910
import 'package:test_common/logging.dart';

dwds/test/frontend_server_circular_evaluate_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
@TestOn('vm')
66
@Timeout(Duration(minutes: 2))
7+
library;
78

89
import 'dart:io';
910

dwds/test/frontend_server_ddc_evaluate_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@Tags(['daily'])
66
@TestOn('vm')
77
@Timeout(Duration(minutes: 5))
8+
library;
89

910
import 'dart:io';
1011

dwds/test/frontend_server_evaluate_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@Tags(['daily'])
66
@TestOn('vm')
77
@Timeout(Duration(minutes: 5))
8+
library;
89

910
import 'dart:io';
1011

dwds/test/handlers/asset_handler_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@Timeout(Duration(minutes: 2))
6+
library;
67

78
import 'package:shelf/shelf.dart';
89
import 'package:test/test.dart';

dwds/test/handlers/injector_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@Timeout(Duration(minutes: 2))
6+
library;
67

78
import 'dart:io';
89

0 commit comments

Comments
 (0)