From 08065952b5bf9828d0bd8096cf0bbda4253f2c46 Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Thu, 10 Oct 2024 11:56:50 +0200 Subject: [PATCH] Fix lint --- analysis_options.yaml | 10 ++++++---- lib/catcher_2.dart | 4 ---- lib/core/catcher_2_screenshot_manager.dart | 3 --- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index abd185a..f997482 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -66,7 +66,7 @@ linter: - avoid_init_to_null - avoid_js_rounded_ints - avoid_multiple_declarations_per_line - - avoid_null_checks_in_equality_operators + # - avoid_null_checks_in_equality_operators - avoid_positional_boolean_parameters - avoid_print - avoid_private_typedef_functions @@ -121,6 +121,7 @@ linter: - implicit_call_tearoffs - implicit_reopen - invalid_case_patterns + - invalid_runtime_check_with_js_interop_types - join_return_with_assignment - leading_newlines_in_multiline_strings - library_annotations @@ -158,10 +159,10 @@ linter: - prefer_asserts_with_message - prefer_collection_literals - prefer_conditional_assignment - - prefer_const_constructors + # - prefer_const_constructors - prefer_const_constructors_in_immutables - - prefer_const_declarations - - prefer_const_literals_to_create_immutables + # - prefer_const_declarations + # - prefer_const_literals_to_create_immutables - prefer_constructors_over_static_methods - prefer_contains # - prefer_double_quotes @@ -221,6 +222,7 @@ linter: - unnecessary_lambdas - unnecessary_late - unnecessary_library_directive + - unnecessary_library_name - unnecessary_new - unnecessary_null_aware_assignments - unnecessary_null_aware_operator_on_extension_on_nullable diff --git a/lib/catcher_2.dart b/lib/catcher_2.dart index 44be624..dc20da0 100644 --- a/lib/catcher_2.dart +++ b/lib/catcher_2.dart @@ -1,7 +1,3 @@ -/// Library for error catching which provides multiple handlers for dealing with -/// errors when they are not caught by the developer. -library catcher_2; - export 'package:catcher_2/core/catcher_2.dart'; export 'package:catcher_2/core/catcher_2_screenshot.dart'; export 'package:catcher_2/handlers/console_handler.dart'; diff --git a/lib/core/catcher_2_screenshot_manager.dart b/lib/core/catcher_2_screenshot_manager.dart index 4dae5b3..5cb9d76 100644 --- a/lib/core/catcher_2_screenshot_manager.dart +++ b/lib/core/catcher_2_screenshot_manager.dart @@ -1,6 +1,3 @@ -/// Sub-library of Catcher 2 providing a way to handle screenshots. -library screenshot; - import 'dart:async'; import 'dart:typed_data'; import 'dart:ui' as ui;