Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

### Required

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/vite.config.ts#L20)][[2](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/types/newCardParsingTypes.ts#L289)][[3](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/ankiconnect/StoragePathManager.ts#L130)][[4](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/tests/drag-create-card.test.ts#L268)]:Obsidian's configuration directory isn't necessarily `.obsidian`, it can be configured by the user. You can access the configured value from `Vault#configDir`

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/AnkiView.ts#L60)][[2](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/settings/SettingsTab.ts#L319)][[3](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/embedded-editor-manager.ts#L201)][[4](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/preview/types/ClozePreview.ts#L159)][[5](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/preview/types/ClozePreview.ts#L264)][[6](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/preview/types/ClozePreview.ts#L340)][[7](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/preview/types/ClozePreview.ts#L345)][[8](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/preview/__tests__/PreviewRenderer.test.ts#L198)][[9](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/preview/types/BasicQAPreview.ts#L58)][[10](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/preview/types/BasicQAPreview.ts#L66)][[11](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/preview/types/BasicQAPreview.ts#L107)][[12](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/preview/types/BasicQAPreview.ts#L116)][[13](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/icons/index.ts#L244)][[14](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/demo/choice-ui-demo.ts#L25)][[15](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/demo/choice-ui-demo.ts#L297)][[16](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/DragDropCardCreator.ts#L310)][[17](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/DragDropCardCreator.ts#L382)][[18](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/obsidian-navigation-service.ts#L303)][[19](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/tests/mocks/obsidian.ts#L286)][[20](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/dev-test-helper.ts#L224)][[21](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/dev-test-helper.ts#L236)][[22](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/dev-test-helper.ts#L248)][[23](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/preview-manager.ts#L99)][[24](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/preview-manager.ts#L168)][[25](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/preview-manager.ts#L188)][[26](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/preview-manager.ts#L200)][[27](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/unified-error-handler.ts#L821)]:Using `innerHTML`, `outerHTML` or similar API's is a security risk. Instead, use the DOM API or the Obsidian helper functions: <https://docs.obsidian.md/Plugins/User+interface/HTML+elements>

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/settings/SettingsTab.ts#L110)][[2](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/settings/SettingsTab.ts#L111)][[3](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/settings/SettingsTab.ts#L112)][[4](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/settings/SettingsTab.ts#L186)][[5](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/settings/SettingsTab.ts#L187)][[6](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/settings/SettingsTab.ts#L188)][[7](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/settings/SettingsTab.ts#L328)][[8](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/components/settings/SettingsTab.ts#L329)][[9](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/obsidian-api-safe.ts#L88)][[10](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/obsidian-api-safe.ts#L89)][[11](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L71)][[12](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L109)][[13](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L110)][[14](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L116)][[15](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L129)][[16](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L130)][[17](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L136)][[18](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L137)][[19](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L138)][[20](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L139)][[21](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L140)][[22](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L156)][[23](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L157)][[24](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L158)][[25](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L168)][[26](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L169)][[27](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L175)][[28](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L176)][[29](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L189)][[30](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/editor/editor-layout-manager.ts#L196)] and more :You should avoid assigning styles via JavaScript or in HTML and instead move all these styles into CSS so that they are more easily adaptable by themes and snippets.


[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/temp-file-manager.ts#L767)][[2](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/temp-file-manager.ts#L910)][[3](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/FileSystemAdapter.ts#L108)][[4](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/FileSystemAdapter.ts#L118)][[5](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/impl/ObsidianMediaStorageAdapter.ts#L90)][[6](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/impl/ObsidianMediaStorageAdapter.ts#L107)][[7](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/obsidian-navigation-service.ts#L413)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/data-management-service.ts#L395)][[2](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/data-management-service.ts#L397)][[3](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/tests/mocks/obsidian.ts#L298)][[4](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/tests/mocks/obsidian.ts#L299)][[5](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/tests/mocks/obsidian.ts#L300)]:This is only available on desktop, use the [Platform](https://docs.obsidian.md/Reference/TypeScript+API/Platform) interface from the Obsidian API instead.

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/ShortcutService.ts#L52)]:Adding `command` to the command ID is not necessary, please remove it.

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/ShortcutService.ts#L55)]:We recommend against providing a default hotkey when possible. The reason being that it's easy to pick a hotkey that a user already has configured and they could get confused when that key doesn't do what they expect. Also, it's hard choosing a safe default hotkey that's available for all operating systems.

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/FileSystemAdapter.ts#L14)][[2](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/FileSystemAdapter.ts#L69)][[3](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/MediaStorageAdapter.ts#L10)][[4](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/MediaStorageAdapter.ts#L68)][[5](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/index.ts#L8)][[6](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/tests/mocks/obsidian.ts#L199)][[7](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/tests/mocks/obsidian.ts#L317)]:This class is only available on desktop, which means that this will throw errors on mobile (that's a problem since you have `isDesktopOnly` marked as `false` in your manifest.json file.

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/regex-validator.ts#L405)]:Lookbehinds are not supported in iOS versions before 16.4

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/vite.config.ts#L12)][[2](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/vite.config.ts#L41)][[3](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/stores/study-mode-store.ts#L55)][[4](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/stores/study-mode-store.ts#L66)][[5](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/stores/study-mode-store.ts#L108)][[6](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L91)][[7](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L115)][[8](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L156)][[9](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L168)][[10](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L178)][[11](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L206)][[12](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L231)][[13](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L233)][[14](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L275)][[15](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L302)][[16](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L313)][[17](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L328)][[18](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L356)][[19](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/StudySessionManager.ts#L367)][[20](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L33)][[21](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L53)][[22](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L73)][[23](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L77)][[24](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L84)][[25](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L99)][[26](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L137)][[27](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L144)][[28](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L237)][[29](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L298)][[30](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/views/StudyView.ts#L332)] and more :You should consider limiting the number of `console.log`s in your code, to not pollute the dev console.



---

### Optional

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/architecture/dependency-injection.ts#L322)][[2](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/architecture/dependency-injection.ts#L370)][[3](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L24)][[4](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L60)][[5](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L61)][[6](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L106)][[7](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L107)][[8](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L142)][[9](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L176)][[10](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L196)][[11](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L210)][[12](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L211)][[13](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L226)][[14](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L369)][[15](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L370)][[16](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L386)][[17](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L406)][[18](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L410)][[19](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L429)][[20](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L430)][[21](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L446)][[22](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L493)][[23](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L494)][[24](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L506)][[25](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L507)][[26](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L513)][[27](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L539)][[28](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L540)][[29](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L555)][[30](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/data/storage.ts#L563)] and more :Casting to `any` should be avoided as much as possible.

[[1](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/utils/mediaFileHandler.ts#L338)][[2](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/temp-file-manager.ts#L135)][[3](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/temp-file-manager.ts#L783)][[4](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/temp-file-manager.ts#L865)][[5](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/temp-file-manager.ts#L918)][[6](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/services/temp-file-manager.ts#L950)][[7](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/FileSystemAdapter.ts#L128)][[8](https://github.com/zhuzhige123/obsidian---Tuanki/blob/c2ac72d28deb09ae367ad83775f9af1190af66ec/src/infrastructure/adapters/impl/ObsidianMediaStorageAdapter.ts#L90)]:Use `app.fileManager.trashFile(file: TAbstractFile)` instead, this will make sure that the file is deleted according to the users preferences.



---



Do <b>NOT</b> open a new PR for re-validation.
Once you have pushed all of the required changes to your repo, the bot will update the labels on this PR within 6 hours.
If you think some of the required changes are incorrect, please comment with `/skip` and the reason why you think the results are incorrect.