From 80b29a57bef1880370ced3c686838947298b2062 Mon Sep 17 00:00:00 2001 From: NikaHsn Date: Wed, 1 Nov 2023 14:52:11 -0700 Subject: [PATCH] chore(repo): fix beta lints issues (#4053) --- packages/amplify_core/lib/src/config/amplify_plugin_config.dart | 2 +- packages/amplify_core/lib/src/state_machine/exception.dart | 2 +- packages/amplify_core/lib/src/types/models/auth_rule.dart | 2 +- .../legacy_native_data_provider.dart | 1 + packages/smithy/smithy/lib/src/types/timestamp.dart | 2 +- .../src/storage_s3_service/service/task/s3_download_task.dart | 2 +- .../storage_s3_service/transfer/database/transfer_record.dart | 2 +- packages/worker_bee/worker_bee/lib/src/common.dart | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/amplify_core/lib/src/config/amplify_plugin_config.dart b/packages/amplify_core/lib/src/config/amplify_plugin_config.dart index c09e0a951e..feb6a406b1 100644 --- a/packages/amplify_core/lib/src/config/amplify_plugin_config.dart +++ b/packages/amplify_core/lib/src/config/amplify_plugin_config.dart @@ -20,7 +20,7 @@ abstract class AmplifyPluginConfig with AWSSerializable { /// {@template amplify_core.unknown_plugin_config_factory} /// A plugin factory for unknown plugin configs. -/// @{endtemplate} +/// {@endtemplate} @internal class UnknownPluginConfigFactory extends AmplifyPluginConfigFactory { diff --git a/packages/amplify_core/lib/src/state_machine/exception.dart b/packages/amplify_core/lib/src/state_machine/exception.dart index 0e6078f3fa..79ff04f08c 100644 --- a/packages/amplify_core/lib/src/state_machine/exception.dart +++ b/packages/amplify_core/lib/src/state_machine/exception.dart @@ -3,7 +3,7 @@ import 'package:aws_common/aws_common.dart'; -/// (@template amplify_core.state_machine.precondition_exception) +/// {@template amplify_core.state_machine.precondition_exception} /// An exception raised within a state machine when an event could not be /// processed due to some precondition not being met. /// {@endtemplate} diff --git a/packages/amplify_core/lib/src/types/models/auth_rule.dart b/packages/amplify_core/lib/src/types/models/auth_rule.dart index a6de882818..399715581b 100644 --- a/packages/amplify_core/lib/src/types/models/auth_rule.dart +++ b/packages/amplify_core/lib/src/types/models/auth_rule.dart @@ -76,7 +76,7 @@ class AuthRule { 'groupClaim': groupClaim, 'groups': groups, 'groupsField': groupsField, - 'provider': provider != null ? provider!.name : null, + 'provider': provider?.name, 'operations': operations?.map((op) => op.name).toList(), }; return Map.from(map) diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/legacy_native_data_provider.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/legacy_native_data_provider.dart index d450404a31..c573e3b7f2 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/legacy_native_data_provider.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/legacy_native_data_provider.dart @@ -4,6 +4,7 @@ import 'dart:async'; /// {@template amplify_analytics_pinpoint.flutter_legacy_native_data_provider} +/// {@endtemplate} abstract class LegacyNativeDataProvider { /// Get stored Pinpoint Endpoint Id. Future getEndpointId(String pinpointAppId); diff --git a/packages/smithy/smithy/lib/src/types/timestamp.dart b/packages/smithy/smithy/lib/src/types/timestamp.dart index fc23aa3884..36a995d4ed 100644 --- a/packages/smithy/smithy/lib/src/types/timestamp.dart +++ b/packages/smithy/smithy/lib/src/types/timestamp.dart @@ -15,7 +15,7 @@ import 'package:smithy/ast.dart'; /// {@template aws.smithy.timestamp} /// A [DateTime] wrapper which provides custom formatting and parsing options /// for use with Smithy services. -/// @{endtemplate} +/// {@endtemplate} class Timestamp { /// {@macro aws.smithy.timestamp} Timestamp(DateTime timestamp) : _timestamp = timestamp.stripMicroseconds(); diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_download_task.dart b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_download_task.dart index 165ba2851b..cb16ea5468 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_download_task.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_download_task.dart @@ -15,7 +15,7 @@ import 'package:smithy_aws/smithy_aws.dart' as smithy_aws; /// {@template amplify_storage_s3_dart.download_task} /// A task created to fulfill a download operation. -/// {@template} +/// {@endtemplate} @internal class S3DownloadTask { /// {@macro amplify_storage_s3_dart.download_task} diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/transfer_record.dart b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/transfer_record.dart index 57d35e9f68..3607e8a0ed 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/transfer_record.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/transfer_record.dart @@ -10,7 +10,7 @@ part 'transfer_record.g.dart'; /// {@template amplify_storage_s3_dart.transfer_data} /// the type used by Storage S3 plugin upload operations when using s3 multipart upload. /// it is persisted to TransferDatabase. -/// {@endtemplate amplify_storage_s3_dart.transfer_data} +/// {@endtemplate} @JsonSerializable() class TransferRecord { /// {@macro amplify_storage_s3_dart.transfer_data} diff --git a/packages/worker_bee/worker_bee/lib/src/common.dart b/packages/worker_bee/worker_bee/lib/src/common.dart index bb45a18954..9dcd1e17f2 100644 --- a/packages/worker_bee/worker_bee/lib/src/common.dart +++ b/packages/worker_bee/worker_bee/lib/src/common.dart @@ -20,7 +20,7 @@ final _voidType = _typeOf(); /// {@endtemplate} abstract class WorkerBeeCommon implements AWSLoggerPlugin, Closeable { - /// {@template worker_bee.worker_bee_common} + /// {@macro worker_bee.worker_bee_common} WorkerBeeCommon({ Serializers? serializers, }) : serializers = serializers == null