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

### Required

[[1](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/src/core/scheduler.ts#L91)][[2](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/src/ui/settings-tab.ts#L175)][[3](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L663)][[4](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L678)][[5](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L703)][[6](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L719)][[7](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L720)][[8](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L724)][[9](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L725)][[10](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L975)][[11](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L1649)]: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/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/src/core/template-engine.ts#L116)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/src/ui/settings-tab.ts#L194)][[2](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L689)][[3](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L713)][[4](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L1674)]: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/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L26)][[2](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L30)][[3](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L34)][[4](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L37)][[5](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L40)][[6](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L43)][[7](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L46)][[8](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L49)][[9](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L56)][[10](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L63)][[11](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L68)][[12](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L73)][[13](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L77)][[14](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L87)][[15](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L91)][[16](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main-old.ts#L93)][[17](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/src/core/network-prompts.ts#L69)][[18](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L132)][[19](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L145)][[20](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L217)][[21](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L222)][[22](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L243)][[23](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L247)][[24](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L361)][[25](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L425)][[26](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L448)][[27](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L473)][[28](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L585)][[29](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L586)][[30](https://github.com/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L590)] 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/zafrem/obsidian-writing-momentum/blob/9c847de12ca8a4d28311855ec9aef38540bcb052/main.ts#L139)]: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.