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

### Required

[[1](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/createCodeFileModal.ts#L63)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder

[[1](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/codeFilesSettingsTab.ts#L55)][[2](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/codeFilesSettingsTab.ts#L56)][[3](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/fenceEditModal.ts#L32)][[4](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/fenceEditModal.ts#L37)][[5](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/fenceEditModal.ts#L38)][[6](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L90)][[7](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L617)][[8](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L618)][[9](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L623)][[10](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L625)][[11](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L627)][[12](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L628)]: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/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L316)][[2](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L327)]: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/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L399)][[2](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L451)][[3](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/main.ts#L452)]: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/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/createCodeFileModal.ts#L42)][[2](https://github.com/gavinrigsby/obsidian-embed-and-edit-code/blob/a73a9d556a04628f27ec1540591b72e3b085fc6e/src/createCodeFileModal.ts#L69)]: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, the bot will reevaluate your PR within 6 hours.
If you think some of these results are incorrect, please include `/skip` in your comment and the reason why you think the results are incorrect.
