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

### Required

[[1](https://github.com/mihakralj/obsidian-cloudsync/blob/0774dda291e0dcbdcbc74d637cc169f9404159e9/sync/localManager.ts#L10)]:Obsidian's configuration directory isn't necessarily `.obsidian`, it can be configured by the user. You can access the configured value from `Vault#configDir`

[[1](https://github.com/mihakralj/obsidian-cloudsync/blob/0774dda291e0dcbdcbc74d637cc169f9404159e9/main.ts#L305)]:Do not detach leaves with your custom view in `onunload`, this is an antipattern, see: <https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Don't+detach+leaves+in+%60onunload%60>



---

### Optional

[[1](https://github.com/mihakralj/obsidian-cloudsync/blob/0774dda291e0dcbdcbc74d637cc169f9404159e9/sync/localManager.ts#L225)]:Use `app.fileManager.trashFile(file: TAbstractFile)` instead, this will make sure that the file is deleted according to the users preferences.

[[1](https://github.com/mihakralj/obsidian-cloudsync/blob/0774dda291e0dcbdcbc74d637cc169f9404159e9/sync/FileOperations.ts#L60)][[2](https://github.com/mihakralj/obsidian-cloudsync/blob/0774dda291e0dcbdcbc74d637cc169f9404159e9/sync/Synchronize.ts#L22)][[3](https://github.com/mihakralj/obsidian-cloudsync/blob/0774dda291e0dcbdcbc74d637cc169f9404159e9/main.ts#L42)][[4](https://github.com/mihakralj/obsidian-cloudsync/blob/0774dda291e0dcbdcbc74d637cc169f9404159e9/main.ts#L43)][[5](https://github.com/mihakralj/obsidian-cloudsync/blob/0774dda291e0dcbdcbc74d637cc169f9404159e9/main.ts#L169)][[6](https://github.com/mihakralj/obsidian-cloudsync/blob/0774dda291e0dcbdcbc74d637cc169f9404159e9/main.ts#L170)]: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.