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

### Required

[[1](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L75)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L130)][[2](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L139)][[3](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L140)][[4](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L141)][[5](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L160)][[6](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L162)][[7](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L163)][[8](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L164)][[9](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L170)][[10](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L171)][[11](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L172)][[12](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L173)][[13](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L174)][[14](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L175)][[15](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L180)][[16](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L181)][[17](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L182)][[18](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L207)][[19](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L211)][[20](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L224)][[21](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L225)][[22](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L240)][[23](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L341)][[24](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L342)][[25](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L346)][[26](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L347)][[27](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L363)][[28](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L364)][[29](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L365)][[30](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L372)] 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/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L369)][[2](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L637)]: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/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L35)][[2](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L40)][[3](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L43)][[4](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L47)][[5](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L61)][[6](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L88)][[7](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L101)][[8](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L111)][[9](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L113)][[10](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L118)][[11](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L123)][[12](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L158)][[13](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L187)][[14](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L223)][[15](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L320)][[16](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L335)][[17](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/utils/fileUtils.ts#L396)][[18](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L36)][[19](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L45)][[20](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L51)][[21](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L54)][[22](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L60)][[23](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L63)][[24](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L69)][[25](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L79)][[26](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L120)][[27](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L124)][[28](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L143)][[29](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L174)][[30](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/taskGenerator.ts#L181)] 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/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L115)][[2](https://github.com/maigamo/daily-task-auto-generator/blob/e40c1161fc84c888da89928533ba0b1b7ff99792/src/settings/settings.ts#L732)]: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.