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

[[1](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/sidebar-outline/sidebar-outline-view.ts#L30)][[2](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/sidebar-outline/sidebar-outline-view.ts#L31)][[3](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/helpers/get-default-color.ts#L36)][[4](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L139)][[5](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L166)][[6](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L168)][[7](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L170)][[8](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L172)][[9](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L174)][[10](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L176)][[11](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L178)][[12](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L204)][[13](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L206)][[14](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L208)][[15](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L210)][[16](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/status-bar/status-bar.ts#L28)][[17](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/status-bar/status-bar.ts#L86)][[18](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/status-bar/status-bar.ts#L91)][[19](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/status-bar/status-bar.ts#L94)][[20](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/status-bar/status-bar.ts#L99)]: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/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-tab/components/label-settings/components/multi-option-extra-button.ts#L34)][[2](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-tab/components/label-settings/components/tag-settings.ts#L23)]: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/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/sidebar-outline/components/components/controls-bar/helpers/tts.ts#L57-L59)][[2](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/main.ts#L47)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder



---

[[1](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/commands/commands.ts#L68-L70)]:We recommend against providing a default hotkey when possible. The reason being that it's easy to pick a hotkey that a user already has configured and they could get confused when that key doesn't do what they expect. Also, it's hard choosing a safe default hotkey that's available for all operating systems.

[[1](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/settings-reducer.ts#L178)][[2](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/sidebar-outline/helpers/outline-updater/outline-updater.ts#L58)][[3](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/settings/helpers/load-outline-state-from-settings.ts#L17)][[4](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/sidebar-outline/helpers/outline-updater/helpers/trigger-editor-update.ts#L10)][[5](https://github.com/ycnmhd/obsidian-enhanced-annotations/blob/2a2de5558f1a32485b81864b290da5afb700ed59/src/editor-plugin/editor-plugin.ts#L25)]: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, the bot will reevaluate your PR within 6 hours.
If you think some of these results are incorrect, please include `/skip` in your comment and the reason why you think the results are incorrect.
