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

### Required

[[1](https://github.com/kkrgzz/encrypt-x/blob/a8a4419a3392e945472c1be8f5d91487f05d708a/src/features/feature-inplace-encrypt/PasswordModal.ts#L179)][[2](https://github.com/kkrgzz/encrypt-x/blob/a8a4419a3392e945472c1be8f5d91487f05d708a/src/features/feature-whole-note-encrypt/EncryptedFileContentView.ts#L350)]: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/kkrgzz/encrypt-x/blob/a8a4419a3392e945472c1be8f5d91487f05d708a/src/features/feature-inplace-encrypt/FeatureInplaceEncrypt.ts#L67)]:You should change all instances of `var` to either `const` or `let`. `var` has function-level scope, so it can easily lead to bugs if you're not careful. Here's a pretty good guide with examples of why not to use `var`: [why `var` is obsolete](https://javascript.plainenglish.io/4-reasons-why-var-is-considered-obsolete-in-modern-javascript-a30296b5f08f)

[[1](https://github.com/kkrgzz/encrypt-x/blob/a8a4419a3392e945472c1be8f5d91487f05d708a/src/features/feature-whole-note-encrypt/FeatureWholeNoteEncrypt.ts#L63)]: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/kkrgzz/encrypt-x/blob/a8a4419a3392e945472c1be8f5d91487f05d708a/src/services/CryptoHelperFactory.ts#L15)][[2](https://github.com/kkrgzz/encrypt-x/blob/a8a4419a3392e945472c1be8f5d91487f05d708a/src/services/ObsidianEx.ts#L13)][[3](https://github.com/kkrgzz/encrypt-x/blob/a8a4419a3392e945472c1be8f5d91487f05d708a/src/services/ObsidianEx.ts#L19)]: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.