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



---

### Optional

[[1](https://github.com/gabrielrueda/obsidian-xournal-integration-plugin/blob/9755ba48c351804dad8267969869da6cb39fda08/Services/create_drawing_service.ts#L60)][[2](https://github.com/gabrielrueda/obsidian-xournal-integration-plugin/blob/9755ba48c351804dad8267969869da6cb39fda08/Modals/edit_drawing_modal.ts#L25)][[3](https://github.com/gabrielrueda/obsidian-xournal-integration-plugin/blob/9755ba48c351804dad8267969869da6cb39fda08/Modals/embed_drawing_modal.ts#L25)][[4](https://github.com/gabrielrueda/obsidian-xournal-integration-plugin/blob/9755ba48c351804dad8267969869da6cb39fda08/Services/render_content_service.ts#L227)]:Casting to `any` should be avoided as much as possible.

[[1](https://github.com/gabrielrueda/obsidian-xournal-integration-plugin/blob/9755ba48c351804dad8267969869da6cb39fda08/Services/create_drawing_service.ts#L128)][[2](https://github.com/gabrielrueda/obsidian-xournal-integration-plugin/blob/9755ba48c351804dad8267969869da6cb39fda08/Modals/delete_drawing_modal.ts#L24)][[3](https://github.com/gabrielrueda/obsidian-xournal-integration-plugin/blob/9755ba48c351804dad8267969869da6cb39fda08/Modals/delete_drawing_modal.ts#L27)][[4](https://github.com/gabrielrueda/obsidian-xournal-integration-plugin/blob/9755ba48c351804dad8267969869da6cb39fda08/Services/render_content_service.ts#L219)]: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.
