Skip to content

Commit

Permalink
Update package:lints and clean up library declarations (#2436)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough authored Jun 12, 2024
1 parent 9ada46f commit eccc7d8
Show file tree
Hide file tree
Showing 105 changed files with 142 additions and 28 deletions.
3 changes: 0 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ analyzer:
linter:
rules:
- always_declare_return_types
- always_require_non_null_named_parameters
- annotate_overrides
- avoid_classes_with_only_static_members
- avoid_empty_else
Expand All @@ -20,7 +19,6 @@ linter:
- avoid_relative_lib_imports
- avoid_renaming_method_parameters
- avoid_return_types_on_setters
- avoid_returning_null
- avoid_returning_null_for_void
- avoid_returning_this
- avoid_shadowing_type_parameters
Expand Down Expand Up @@ -63,7 +61,6 @@ linter:
- prefer_conditional_assignment
- prefer_const_constructors
- prefer_contains
- prefer_equal_for_default_values
- prefer_final_fields
- prefer_for_elements_to_map_fromIterable
- prefer_function_declarations_over_variables
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/background.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library background;
library;

import 'package:dwds/data/debug_info.dart';
import 'package:js/js.dart';
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/cider_connection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library cider_connection;
library;

import 'dart:convert';
import 'dart:js_util';
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/copier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library copier;
library;

import 'dart:html';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library cross_extension_communication;
library;

import 'package:js/js.dart';

Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/debug_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library debug_info;
library;

import 'dart:convert';
import 'dart:html';
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/debug_session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library debug_session;
library;

import 'dart:async';
import 'dart:convert';
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/detector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library detector;
library;

import 'dart:convert';
import 'dart:html';
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/devtools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library devtools;
library;

import 'dart:html';

Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library logger;
library;

import 'package:js/js.dart';

Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/messaging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library messaging;
library;

import 'dart:async';
import 'dart:convert';
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library panel;
library;

import 'dart:async';
import 'dart:convert';
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/popup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library popup;
library;

import 'dart:async';
import 'dart:convert';
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library storage;
library;

import 'dart:async';
import 'dart:convert';
Expand Down
2 changes: 1 addition & 1 deletion dwds/debug_extension/web/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@JS()
library utils;
library;

import 'dart:async';
import 'dart:js_util';
Expand Down
2 changes: 1 addition & 1 deletion dwds/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dev_dependencies:
frontend_server_common:
path: ../frontend_server_common
js: ^0.6.4
lints: ^3.0.0
lints: ^4.0.0
pubspec_parse: ^1.2.0
puppeteer: ^3.0.0
stream_channel: ^2.1.0
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/build/ensure_version_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.

@TestOn('vm')
library;

import 'dart:io';

import 'package:dwds/src/version.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/build/min_sdk_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

@TestOn('vm')
@Skip('Intended to run in analyze stage on stable SDK only, see mono_pkg.yaml')
library;

import 'dart:io';

import 'package:pub_semver/pub_semver.dart';
Expand Down
1 change: 1 addition & 0 deletions dwds/test/build_daemon_breakpoint_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'package:test/test.dart';
import 'package:test_common/test_sdk_configuration.dart';
Expand Down
1 change: 1 addition & 0 deletions dwds/test/build_daemon_callstack_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'package:test/test.dart';
import 'package:test_common/logging.dart';
Expand Down
1 change: 1 addition & 0 deletions dwds/test/build_daemon_circular_evaluate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'package:test/test.dart';
import 'package:test_common/test_sdk_configuration.dart';
Expand Down
1 change: 1 addition & 0 deletions dwds/test/build_daemon_evaluate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@Tags(['daily'])
@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'package:test/test.dart';
import 'package:test_common/test_sdk_configuration.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/chrome_proxy_service_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
@TestOn('vm')
@Tags(['daily'])
@Timeout(Duration(minutes: 2))
library;

import 'dart:async';
import 'dart:convert';
import 'dart:io';
Expand Down
1 change: 1 addition & 0 deletions dwds/test/dart_uri_file_uri_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'package:dwds/src/utilities/dart_uri.dart';
import 'package:path/path.dart' as p;
Expand Down
1 change: 1 addition & 0 deletions dwds/test/dart_uri_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'package:dwds/src/utilities/dart_uri.dart';
import 'package:path/path.dart' as p;
Expand Down
1 change: 1 addition & 0 deletions dwds/test/debug_extension_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'windows': Skip('https://github.com/dart-lang/webdev/issues/711'),
'linux': Skip('https://github.com/dart-lang/webdev/issues/2114'),
})
library;

import 'package:dwds/src/connections/debug_connection.dart';
import 'package:dwds/src/handlers/injector.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/debug_service_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'dart:async';
import 'dart:convert';
import 'dart:io';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/debugger_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'dart:async';

import 'package:dwds/src/debugging/debugger.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/devtools_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

@Timeout(Duration(minutes: 5))
@TestOn('vm')
library;

import 'dart:io';

import 'package:test/test.dart';
Expand Down
1 change: 1 addition & 0 deletions dwds/test/evaluate_circular_common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'package:test/test.dart';
import 'package:test_common/logging.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/evaluate_common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'dart:async';

import 'package:dwds/src/services/expression_evaluator.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/events_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.

@Timeout(Duration(minutes: 2))
library;

import 'dart:async';
import 'dart:io';

Expand Down
2 changes: 2 additions & 0 deletions dwds/test/execution_context_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.

@Timeout(Duration(minutes: 2))
library;

import 'dart:async';
import 'dart:convert';

Expand Down
2 changes: 2 additions & 0 deletions dwds/test/expression_compiler_service_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
@Tags(['daily'])
@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'dart:async';
import 'dart:convert';
import 'dart:io';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/expression_evaluator_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'dart:async';

import 'package:dwds/src/debugging/debugger.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/extension_backend_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.

@Timeout(Duration(minutes: 2))
library;

import 'dart:async';

import 'package:async/src/stream_queue.dart';
Expand Down
2 changes: 2 additions & 0 deletions dwds/test/extension_debugger_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.

@Timeout(Duration(minutes: 2))
library;

import 'dart:async';
import 'dart:convert';

Expand Down
1 change: 1 addition & 0 deletions dwds/test/frontend_server_breakpoint_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'package:test/test.dart';
import 'package:test_common/logging.dart';
Expand Down
1 change: 1 addition & 0 deletions dwds/test/frontend_server_callstack_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'package:test/test.dart';
import 'package:test_common/logging.dart';
Expand Down
1 change: 1 addition & 0 deletions dwds/test/frontend_server_circular_evaluate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@TestOn('vm')
@Timeout(Duration(minutes: 2))
library;

import 'dart:io';

Expand Down
1 change: 1 addition & 0 deletions dwds/test/frontend_server_ddc_evaluate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@Tags(['daily'])
@TestOn('vm')
@Timeout(Duration(minutes: 5))
library;

import 'dart:io';

Expand Down
1 change: 1 addition & 0 deletions dwds/test/frontend_server_evaluate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@Tags(['daily'])
@TestOn('vm')
@Timeout(Duration(minutes: 5))
library;

import 'dart:io';

Expand Down
1 change: 1 addition & 0 deletions dwds/test/handlers/asset_handler_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@Timeout(Duration(minutes: 2))
library;

import 'package:shelf/shelf.dart';
import 'package:test/test.dart';
Expand Down
1 change: 1 addition & 0 deletions dwds/test/handlers/injector_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@Timeout(Duration(minutes: 2))
library;

import 'dart:io';

Expand Down
Loading

0 comments on commit eccc7d8

Please sign in to comment.