mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
chore(mobile): Removes analysis options for openapi directory (#7309)
* Removes analysis options for openapi directory * Updates the generate open api script to remove the analysis_options.yaml file from the mobile/openapi directory
This commit is contained in:
parent
a7efd66ae9
commit
08d64f1c25
3 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,6 @@ linter:
|
||||||
analyzer:
|
analyzer:
|
||||||
exclude:
|
exclude:
|
||||||
- openapi/**
|
- openapi/**
|
||||||
- openapi/test/**
|
|
||||||
- lib/generated_plugin_registrant.dart
|
- lib/generated_plugin_registrant.dart
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
|
|
|
@ -14,6 +14,9 @@ function dart {
|
||||||
# Post generate patches
|
# Post generate patches
|
||||||
patch --no-backup-if-mismatch -u ../mobile/openapi/lib/api_client.dart <./patch/api_client.dart.patch
|
patch --no-backup-if-mismatch -u ../mobile/openapi/lib/api_client.dart <./patch/api_client.dart.patch
|
||||||
patch --no-backup-if-mismatch -u ../mobile/openapi/lib/api.dart <./patch/api.dart.patch
|
patch --no-backup-if-mismatch -u ../mobile/openapi/lib/api.dart <./patch/api.dart.patch
|
||||||
|
# Don't include analysis_options.yaml for the generated openapi files
|
||||||
|
# so that language servers can properly exclude the mobile/openapi directory
|
||||||
|
rm ../mobile/openapi/analysis_options.yaml
|
||||||
}
|
}
|
||||||
|
|
||||||
function typescript {
|
function typescript {
|
||||||
|
|
Loading…
Reference in a new issue