fix(linter): улучшение правил анализа и линтинга (#37)

* fix(linter): улучшение правил анализа и линтинга, добавление исключений и ошибок

* fix(tasks): исправления по ревью

---------

Co-authored-by: petrovyuri <petrovyuri@example.com>
This commit is contained in:
Yuri Petrov
2025-11-17 11:51:42 +03:00
committed by GitHub
parent 55de1ad8d1
commit d9c45eb57e
14 changed files with 224 additions and 160 deletions

View File

@@ -10,7 +10,7 @@ part 'update_state.dart';
/// {@endtemplate}
class UpdateCubit extends Cubit<UpdateState> {
/// {@macro UpdateCubit}
UpdateCubit(this._updatesRepository) : super(UpdateInitialState());
UpdateCubit(this._updatesRepository) : super(const UpdateInitialState());
/// Репозиторий для проверки обновлений
final IUpdateRepository _updatesRepository;
@@ -23,7 +23,7 @@ class UpdateCubit extends Cubit<UpdateState> {
required String platform,
}) async {
if (state is UpdateLoadingState) return;
emit(UpdateLoadingState());
emit(const UpdateLoadingState());
try {
final updateInfo = await _updatesRepository.checkForUpdates(
versionCode: versionCode,