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

### Required

[[1](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/utils/file-utils.ts#L137)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L217)][[2](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L224)][[3](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L228)][[4](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L255)][[5](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L258)][[6](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L259)][[7](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L278)][[8](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L316)][[9](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L317)][[10](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L327)][[11](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L349)][[12](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/journal-view.ts#L482)]: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/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/main.ts#L179)][[2](https://github.com/aurelien81/continuous-journaling/blob/65ccf0234daf81ab518624298cbed064e2c9fefb/src/main.ts#L273)]:Use `app.fileManager.trashFile(file: TAbstractFile)` instead, this will make sure that the file is deleted according to the users preferences.



---



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.