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

### Required

[[1](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/startpageview.ts#L228-L236)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/settings.ts#L60)][[2](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/settings.ts#L76)][[3](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/settings.ts#L87)][[4](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/settings.ts#L104)]: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/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/settings.ts#L91)][[2](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/settings.ts#L100)]: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.




---

### Optional

[[1](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/startpagecreator.ts#L212)][[2](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/startpagecreator.ts#L268)][[3](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/startpagecreator.ts#L410)][[4](https://github.com/kuzzh/obsidian-startpage/blob/db102f19cce65d8695c8f7f831c3b2726a549716/settings.ts#L159)]: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.