Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fix: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
marcossevilla committed Oct 30, 2023
1 parent 615af96 commit 74f81d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/leaderboard_repository/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include: package:very_good_analysis/analysis_options.5.1.0.yaml
analyzer:
exclude:
- lib/**/*.g.dart
12 changes: 4 additions & 8 deletions packages/leaderboard_repository/lib/src/models/exceptions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,29 @@ 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}
/// Exception thrown when failure occurs while fetching top 10 leaderboard.
/// {@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}
/// Exception thrown when failure occurs while fetching the leaderboard.
/// {@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}
/// Exception thrown when failure occurs while adding entry to leaderboard.
/// {@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);
}

0 comments on commit 74f81d7

Please sign in to comment.