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

### Required

[[1](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/ObsidianAdapter.ts#L63-L71)][[2](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/services/MetaFlowService.ts#L243)][[3](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/__mocks__/obsidian.ts#L33-L41)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L18)][[2](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L19)][[3](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L20)][[4](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L22)][[5](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L23)][[6](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L24)][[7](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L25)][[8](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L26)][[9](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L28)][[10](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/CompletionsHelpModal.ts#L29)][[11](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L32)][[12](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L33)][[13](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L34)][[14](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L38)][[15](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L43)][[16](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L45)][[17](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L46)][[18](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L49)][[19](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L50)][[20](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L51)][[21](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L52)][[22](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L53)][[23](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L91)][[24](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L97)]: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/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/MetaFlowSettingTab.ts#L202)][[2](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/MetaFlowSettingTab.ts#L325)][[3](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/MetaFlowSettingTab.ts#L369)]: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>



---

### Optional

[[1](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/MetadataMenuAdapter.ts#L26)][[2](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/MetadataMenuAdapter.ts#L33)][[3](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/MetadataMenuAdapter.ts#L35)][[4](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/MetadataMenuAdapter.ts#L53)][[5](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/MetadataMenuAdapter.ts#L181)][[6](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/ObsidianAdapter.ts#L63-L71)][[7](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/ObsidianAdapter.ts#L66)][[8](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/ObsidianAdapter.ts#L69)][[9](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/ObsidianAdapter.ts#L70)][[10](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.ts#L33)][[11](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.ts#L56)][[12](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.ts#L127)][[13](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.ts#L137)][[14](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.ts#L149)][[15](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.ts#L162)][[16](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.ts#L182)][[17](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.ts#L191)][[18](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/MetaFlowSettingTab.ts#L293)][[19](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/MetaFlowSettingTab.ts#L296)][[20](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/MetaFlowSettingTab.ts#L894)][[21](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/settings/MetaFlowSettingTab.ts#L1039)][[22](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/ui/ProgressModal.ts#L54)][[23](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/managers/FileClassStateManager.ts#L130)][[24](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/__mocks__/obsidian.ts#L17)][[25](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/__mocks__/obsidian.ts#L18)][[26](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/__mocks__/obsidian.ts#L33-L41)][[27](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/__mocks__/obsidian.ts#L39)][[28](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/__mocks__/obsidian.ts#L40)][[29](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.test.ts#L118)][[30](https://github.com/fchastanet/obsidian-metaflow/blob/55e6a992429a062127b6723ae952ff598f1e539b/src/externalApi/TemplaterAdapter.test.ts#L122)] and more :Casting to `any` should be avoided as much as possible.



---



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.