fix: add ignore_for_file to data connect Repos and modify CI to avoid analyzing deleted files

This commit is contained in:
2026-02-20 19:51:44 +05:30
parent 24835f127e
commit 474be43448
259 changed files with 1810 additions and 1714 deletions

View File

@@ -32,8 +32,8 @@ sealed class AuthException extends AppException {
/// Thrown when email/password combination is incorrect.
class InvalidCredentialsException extends AuthException {
const InvalidCredentialsException({String? technicalMessage})
: super(code: 'AUTH_001', technicalMessage: technicalMessage);
const InvalidCredentialsException({super.technicalMessage})
: super(code: 'AUTH_001');
@override
String get messageKey => 'errors.auth.invalid_credentials';
@@ -41,8 +41,8 @@ class InvalidCredentialsException extends AuthException {
/// Thrown when attempting to register with an email that already exists.
class AccountExistsException extends AuthException {
const AccountExistsException({String? technicalMessage})
: super(code: 'AUTH_002', technicalMessage: technicalMessage);
const AccountExistsException({super.technicalMessage})
: super(code: 'AUTH_002');
@override
String get messageKey => 'errors.auth.account_exists';
@@ -50,8 +50,8 @@ class AccountExistsException extends AuthException {
/// Thrown when the user session has expired.
class SessionExpiredException extends AuthException {
const SessionExpiredException({String? technicalMessage})
: super(code: 'AUTH_003', technicalMessage: technicalMessage);
const SessionExpiredException({super.technicalMessage})
: super(code: 'AUTH_003');
@override
String get messageKey => 'errors.auth.session_expired';
@@ -59,8 +59,8 @@ class SessionExpiredException extends AuthException {
/// Thrown when user profile is not found in database after Firebase auth.
class UserNotFoundException extends AuthException {
const UserNotFoundException({String? technicalMessage})
: super(code: 'AUTH_004', technicalMessage: technicalMessage);
const UserNotFoundException({super.technicalMessage})
: super(code: 'AUTH_004');
@override
String get messageKey => 'errors.auth.user_not_found';
@@ -68,8 +68,8 @@ class UserNotFoundException extends AuthException {
/// Thrown when user is not authorized for the current app (wrong role).
class UnauthorizedAppException extends AuthException {
const UnauthorizedAppException({String? technicalMessage})
: super(code: 'AUTH_005', technicalMessage: technicalMessage);
const UnauthorizedAppException({super.technicalMessage})
: super(code: 'AUTH_005');
@override
String get messageKey => 'errors.auth.unauthorized_app';
@@ -77,8 +77,8 @@ class UnauthorizedAppException extends AuthException {
/// Thrown when password doesn't meet security requirements.
class WeakPasswordException extends AuthException {
const WeakPasswordException({String? technicalMessage})
: super(code: 'AUTH_006', technicalMessage: technicalMessage);
const WeakPasswordException({super.technicalMessage})
: super(code: 'AUTH_006');
@override
String get messageKey => 'errors.auth.weak_password';
@@ -86,8 +86,8 @@ class WeakPasswordException extends AuthException {
/// Thrown when sign-up process fails.
class SignUpFailedException extends AuthException {
const SignUpFailedException({String? technicalMessage})
: super(code: 'AUTH_007', technicalMessage: technicalMessage);
const SignUpFailedException({super.technicalMessage})
: super(code: 'AUTH_007');
@override
String get messageKey => 'errors.auth.sign_up_failed';
@@ -95,8 +95,8 @@ class SignUpFailedException extends AuthException {
/// Thrown when sign-in process fails.
class SignInFailedException extends AuthException {
const SignInFailedException({String? technicalMessage})
: super(code: 'AUTH_008', technicalMessage: technicalMessage);
const SignInFailedException({super.technicalMessage})
: super(code: 'AUTH_008');
@override
String get messageKey => 'errors.auth.sign_in_failed';
@@ -104,8 +104,8 @@ class SignInFailedException extends AuthException {
/// Thrown when email exists but password doesn't match.
class PasswordMismatchException extends AuthException {
const PasswordMismatchException({String? technicalMessage})
: super(code: 'AUTH_009', technicalMessage: technicalMessage);
const PasswordMismatchException({super.technicalMessage})
: super(code: 'AUTH_009');
@override
String get messageKey => 'errors.auth.password_mismatch';
@@ -113,8 +113,8 @@ class PasswordMismatchException extends AuthException {
/// Thrown when account exists only with Google provider (no password).
class GoogleOnlyAccountException extends AuthException {
const GoogleOnlyAccountException({String? technicalMessage})
: super(code: 'AUTH_010', technicalMessage: technicalMessage);
const GoogleOnlyAccountException({super.technicalMessage})
: super(code: 'AUTH_010');
@override
String get messageKey => 'errors.auth.google_only_account';
@@ -131,8 +131,8 @@ sealed class HubException extends AppException {
/// Thrown when attempting to delete a hub that has active orders.
class HubHasOrdersException extends HubException {
const HubHasOrdersException({String? technicalMessage})
: super(code: 'HUB_001', technicalMessage: technicalMessage);
const HubHasOrdersException({super.technicalMessage})
: super(code: 'HUB_001');
@override
String get messageKey => 'errors.hub.has_orders';
@@ -140,8 +140,8 @@ class HubHasOrdersException extends HubException {
/// Thrown when hub is not found.
class HubNotFoundException extends HubException {
const HubNotFoundException({String? technicalMessage})
: super(code: 'HUB_002', technicalMessage: technicalMessage);
const HubNotFoundException({super.technicalMessage})
: super(code: 'HUB_002');
@override
String get messageKey => 'errors.hub.not_found';
@@ -149,8 +149,8 @@ class HubNotFoundException extends HubException {
/// Thrown when hub creation fails.
class HubCreationFailedException extends HubException {
const HubCreationFailedException({String? technicalMessage})
: super(code: 'HUB_003', technicalMessage: technicalMessage);
const HubCreationFailedException({super.technicalMessage})
: super(code: 'HUB_003');
@override
String get messageKey => 'errors.hub.creation_failed';
@@ -167,8 +167,8 @@ sealed class OrderException extends AppException {
/// Thrown when order creation is attempted without a hub.
class OrderMissingHubException extends OrderException {
const OrderMissingHubException({String? technicalMessage})
: super(code: 'ORDER_001', technicalMessage: technicalMessage);
const OrderMissingHubException({super.technicalMessage})
: super(code: 'ORDER_001');
@override
String get messageKey => 'errors.order.missing_hub';
@@ -176,8 +176,8 @@ class OrderMissingHubException extends OrderException {
/// Thrown when order creation is attempted without a vendor.
class OrderMissingVendorException extends OrderException {
const OrderMissingVendorException({String? technicalMessage})
: super(code: 'ORDER_002', technicalMessage: technicalMessage);
const OrderMissingVendorException({super.technicalMessage})
: super(code: 'ORDER_002');
@override
String get messageKey => 'errors.order.missing_vendor';
@@ -185,8 +185,8 @@ class OrderMissingVendorException extends OrderException {
/// Thrown when order creation fails.
class OrderCreationFailedException extends OrderException {
const OrderCreationFailedException({String? technicalMessage})
: super(code: 'ORDER_003', technicalMessage: technicalMessage);
const OrderCreationFailedException({super.technicalMessage})
: super(code: 'ORDER_003');
@override
String get messageKey => 'errors.order.creation_failed';
@@ -194,8 +194,8 @@ class OrderCreationFailedException extends OrderException {
/// Thrown when shift creation fails.
class ShiftCreationFailedException extends OrderException {
const ShiftCreationFailedException({String? technicalMessage})
: super(code: 'ORDER_004', technicalMessage: technicalMessage);
const ShiftCreationFailedException({super.technicalMessage})
: super(code: 'ORDER_004');
@override
String get messageKey => 'errors.order.shift_creation_failed';
@@ -203,8 +203,8 @@ class ShiftCreationFailedException extends OrderException {
/// Thrown when order is missing required business context.
class OrderMissingBusinessException extends OrderException {
const OrderMissingBusinessException({String? technicalMessage})
: super(code: 'ORDER_005', technicalMessage: technicalMessage);
const OrderMissingBusinessException({super.technicalMessage})
: super(code: 'ORDER_005');
@override
String get messageKey => 'errors.order.missing_business';
@@ -221,8 +221,8 @@ sealed class ProfileException extends AppException {
/// Thrown when staff profile is not found.
class StaffProfileNotFoundException extends ProfileException {
const StaffProfileNotFoundException({String? technicalMessage})
: super(code: 'PROFILE_001', technicalMessage: technicalMessage);
const StaffProfileNotFoundException({super.technicalMessage})
: super(code: 'PROFILE_001');
@override
String get messageKey => 'errors.profile.staff_not_found';
@@ -230,8 +230,8 @@ class StaffProfileNotFoundException extends ProfileException {
/// Thrown when business profile is not found.
class BusinessNotFoundException extends ProfileException {
const BusinessNotFoundException({String? technicalMessage})
: super(code: 'PROFILE_002', technicalMessage: technicalMessage);
const BusinessNotFoundException({super.technicalMessage})
: super(code: 'PROFILE_002');
@override
String get messageKey => 'errors.profile.business_not_found';
@@ -239,8 +239,8 @@ class BusinessNotFoundException extends ProfileException {
/// Thrown when profile update fails.
class ProfileUpdateFailedException extends ProfileException {
const ProfileUpdateFailedException({String? technicalMessage})
: super(code: 'PROFILE_003', technicalMessage: technicalMessage);
const ProfileUpdateFailedException({super.technicalMessage})
: super(code: 'PROFILE_003');
@override
String get messageKey => 'errors.profile.update_failed';
@@ -257,8 +257,8 @@ sealed class ShiftException extends AppException {
/// Thrown when no open roles are available for a shift.
class NoOpenRolesException extends ShiftException {
const NoOpenRolesException({String? technicalMessage})
: super(code: 'SHIFT_001', technicalMessage: technicalMessage);
const NoOpenRolesException({super.technicalMessage})
: super(code: 'SHIFT_001');
@override
String get messageKey => 'errors.shift.no_open_roles';
@@ -266,8 +266,8 @@ class NoOpenRolesException extends ShiftException {
/// Thrown when application for shift is not found.
class ApplicationNotFoundException extends ShiftException {
const ApplicationNotFoundException({String? technicalMessage})
: super(code: 'SHIFT_002', technicalMessage: technicalMessage);
const ApplicationNotFoundException({super.technicalMessage})
: super(code: 'SHIFT_002');
@override
String get messageKey => 'errors.shift.application_not_found';
@@ -275,8 +275,8 @@ class ApplicationNotFoundException extends ShiftException {
/// Thrown when no active shift is found for clock out.
class NoActiveShiftException extends ShiftException {
const NoActiveShiftException({String? technicalMessage})
: super(code: 'SHIFT_003', technicalMessage: technicalMessage);
const NoActiveShiftException({super.technicalMessage})
: super(code: 'SHIFT_003');
@override
String get messageKey => 'errors.shift.no_active_shift';
@@ -288,8 +288,8 @@ class NoActiveShiftException extends ShiftException {
/// Thrown when there is no network connection.
class NetworkException extends AppException {
const NetworkException({String? technicalMessage})
: super(code: 'NET_001', technicalMessage: technicalMessage);
const NetworkException({super.technicalMessage})
: super(code: 'NET_001');
@override
String get messageKey => 'errors.generic.no_connection';
@@ -297,8 +297,8 @@ class NetworkException extends AppException {
/// Thrown when an unexpected error occurs.
class UnknownException extends AppException {
const UnknownException({String? technicalMessage})
: super(code: 'UNKNOWN', technicalMessage: technicalMessage);
const UnknownException({super.technicalMessage})
: super(code: 'UNKNOWN');
@override
String get messageKey => 'errors.generic.unknown';
@@ -306,8 +306,8 @@ class UnknownException extends AppException {
/// Thrown when the server returns an error (500, etc.).
class ServerException extends AppException {
const ServerException({String? technicalMessage})
: super(code: 'SRV_001', technicalMessage: technicalMessage);
const ServerException({super.technicalMessage})
: super(code: 'SRV_001');
@override
String get messageKey => 'errors.generic.server_error';
@@ -315,8 +315,8 @@ class ServerException extends AppException {
/// Thrown when the service is unavailable (Data Connect down).
class ServiceUnavailableException extends AppException {
const ServiceUnavailableException({String? technicalMessage})
: super(code: 'SRV_002', technicalMessage: technicalMessage);
const ServiceUnavailableException({super.technicalMessage})
: super(code: 'SRV_002');
@override
String get messageKey => 'errors.generic.service_unavailable';
@@ -324,8 +324,8 @@ class ServiceUnavailableException extends AppException {
/// Thrown when user is not authenticated.
class NotAuthenticatedException extends AppException {
const NotAuthenticatedException({String? technicalMessage})
: super(code: 'AUTH_NOT_LOGGED', technicalMessage: technicalMessage);
const NotAuthenticatedException({super.technicalMessage})
: super(code: 'AUTH_NOT_LOGGED');
@override
String get messageKey => 'errors.auth.not_authenticated';