From 74f81d71361dc97eb8b5023b39b38c977703c181 Mon Sep 17 00:00:00 2001 From: Marcos Sevilla Date: Mon, 30 Oct 2023 21:44:58 +0100 Subject: [PATCH] fix: lints --- .../leaderboard_repository/analysis_options.yaml | 3 +++ .../lib/src/models/exceptions.dart | 12 ++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/leaderboard_repository/analysis_options.yaml b/packages/leaderboard_repository/analysis_options.yaml index 799268d3..655567b3 100644 --- a/packages/leaderboard_repository/analysis_options.yaml +++ b/packages/leaderboard_repository/analysis_options.yaml @@ -1 +1,4 @@ include: package:very_good_analysis/analysis_options.5.1.0.yaml +analyzer: + exclude: + - lib/**/*.g.dart \ No newline at end of file diff --git a/packages/leaderboard_repository/lib/src/models/exceptions.dart b/packages/leaderboard_repository/lib/src/models/exceptions.dart index cdd9cf25..f7865b2c 100644 --- a/packages/leaderboard_repository/lib/src/models/exceptions.dart +++ b/packages/leaderboard_repository/lib/src/models/exceptions.dart @@ -18,8 +18,7 @@ abstract class LeaderboardException implements Exception { /// {@endtemplate} class LeaderboardDeserializationException extends LeaderboardException { /// {@macro leaderboard_deserialization_exception} - const LeaderboardDeserializationException(Object error, StackTrace stackTrace) - : super(error, stackTrace); + const LeaderboardDeserializationException(super.error, super.stackTrace); } /// {@template fetch_top_10_leaderboard_exception} @@ -27,8 +26,7 @@ class LeaderboardDeserializationException extends LeaderboardException { /// {@endtemplate} class FetchTop10LeaderboardException extends LeaderboardException { /// {@macro fetch_top_10_leaderboard_exception} - const FetchTop10LeaderboardException(Object error, StackTrace stackTrace) - : super(error, stackTrace); + const FetchTop10LeaderboardException(super.error, super.stackTrace); } /// {@template fetch_leaderboard_exception} @@ -36,8 +34,7 @@ class FetchTop10LeaderboardException extends LeaderboardException { /// {@endtemplate} class FetchLeaderboardException extends LeaderboardException { /// {@macro fetch_top_10_leaderboard_exception} - const FetchLeaderboardException(Object error, StackTrace stackTrace) - : super(error, stackTrace); + const FetchLeaderboardException(super.error, super.stackTrace); } /// {@template add_leaderboard_entry_exception} @@ -45,6 +42,5 @@ class FetchLeaderboardException extends LeaderboardException { /// {@endtemplate} class AddLeaderboardEntryException extends LeaderboardException { /// {@macro add_leaderboard_entry_exception} - const AddLeaderboardEntryException(Object error, StackTrace stackTrace) - : super(error, stackTrace); + const AddLeaderboardEntryException(super.error, super.stackTrace); }