mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
chore(mobile): restrict isar use via CI checks (#12840)
This commit is contained in:
parent
7c1ea2dc73
commit
39ea73d654
3 changed files with 21 additions and 1 deletions
|
@ -58,6 +58,26 @@ custom_lint:
|
||||||
# refactor to make the providers and services testable
|
# refactor to make the providers and services testable
|
||||||
- lib/providers/backup/{backup,manual_upload}.provider.dart # uses only PMProgressHandler
|
- lib/providers/backup/{backup,manual_upload}.provider.dart # uses only PMProgressHandler
|
||||||
- lib/services/{background,backup}.service.dart # uses only PMProgressHandler
|
- lib/services/{background,backup}.service.dart # uses only PMProgressHandler
|
||||||
|
- import_rule_isar:
|
||||||
|
message: isar must only be used in entities and repositories
|
||||||
|
restrict: package:isar
|
||||||
|
allowed:
|
||||||
|
# required / wanted
|
||||||
|
- lib/entities/*.entity.dart
|
||||||
|
- lib/repositories/{album,asset,backup,user}.repository.dart
|
||||||
|
# acceptable exceptions for the time being
|
||||||
|
- integration_test/test_utils/general_helper.dart
|
||||||
|
- lib/main.dart
|
||||||
|
- lib/routing/router.dart
|
||||||
|
- lib/utils/{db,image_url_builder,migration,renderlist_generator}.dart
|
||||||
|
- test/**.dart
|
||||||
|
# refactor to make the providers and services testable
|
||||||
|
- lib/pages/common/{album_asset_selection,gallery_viewer}.page.dart
|
||||||
|
- lib/providers/{archive,asset,authentication,db,favorite,partner,trash,user}.provider.dart
|
||||||
|
- lib/providers/{album/album,album/shared_album,asset_viewer/asset_stack,asset_viewer/render_list,backup/backup,backup/manual_upload,search/all_motion_photos,search/recently_added_asset}.provider.dart
|
||||||
|
- lib/services/{asset,asset_description,background,backup,backup_verification,hash,immich_logger,memory,partner,person,search,stack,sync,user}.service.dart
|
||||||
|
- lib/widgets/asset_grid/{asset_grid_data_structure,thumbnail_image}.dart
|
||||||
|
|
||||||
- import_rule_openapi:
|
- import_rule_openapi:
|
||||||
message: openapi must only be used through ApiRepositories
|
message: openapi must only be used through ApiRepositories
|
||||||
restrict: package:openapi
|
restrict: package:openapi
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'package:auto_route/auto_route.dart';
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:immich_mobile/providers/favorite_provider.dart';
|
import 'package:immich_mobile/providers/favorite.provider.dart';
|
||||||
import 'package:immich_mobile/providers/multiselect.provider.dart';
|
import 'package:immich_mobile/providers/multiselect.provider.dart';
|
||||||
import 'package:immich_mobile/widgets/asset_grid/multiselect_grid.dart';
|
import 'package:immich_mobile/widgets/asset_grid/multiselect_grid.dart';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue