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

### Required

[[1](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/settings.ts#L61)][[2](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/settings.ts#L262)][[3](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/settings.ts#L263)][[4](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/settings.ts#L264)][[5](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/settings.ts#L265)][[6](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/decorators/PreviewWidget.ts#L25)][[7](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/decorators/PreviewWidget.ts#L83)][[8](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/decorators/PreviewWidget.ts#L109)][[9](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/decorators/PreviewWidget.ts#L122)][[10](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/decorators/PreviewWidget.ts#L188)][[11](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/decorators/PreviewWidget.ts#L302)][[12](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L104)]: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/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/settings.ts#L267)][[2](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/utils/text.ts#L51)]: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/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/services/linkPreviewService.ts#L222)][[2](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/services/linkPreviewService.ts#L280)][[3](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/decorators/FrontmatterParser.ts#L46)][[4](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/decorators/FrontmatterParser.ts#L115)][[5](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/decorators/DecorationBuilder.ts#L273)][[6](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/editor/urlPreviewDecorator.ts#L64)][[7](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/utils/logger.ts#L78)][[8](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L200)][[9](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L201)][[10](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L209)][[11](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L221)][[12](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L227)][[13](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L232)][[14](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L243)][[15](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L248)][[16](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L255)][[17](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L260)][[18](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L294)][[19](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L295)]:You should consider limiting the number of `console.log`s in your code, to not pollute the dev console.



---

### Optional

[[1](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L163)][[2](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L291)][[3](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L292)][[4](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L302)][[5](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/src/main.ts#L303)][[6](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L92)][[7](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L104)][[8](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L110)][[9](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L116)][[10](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L166)][[11](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L178)][[12](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L216)][[13](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L228)][[14](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L248)][[15](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L254)][[16](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L260)][[17](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L266)][[18](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L272)][[19](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L278)][[20](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L291)][[21](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L304)][[22](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L305)][[23](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L306)][[24](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L307)][[25](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/main.test.ts#L433)][[26](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/services/metadataHandlers.test.ts#L944)][[27](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/services/metadataHandlers.test.ts#L955)][[28](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/services/metadataHandlers.test.ts#L966)][[29](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/services/metadataHandlers.test.ts#L977)][[30](https://github.com/mattmarotta/obsidian-url-enricher/blob/6154e6d7882d44140a0fa567b4f62c065c459c69/tests/services/metadataHandlers.test.ts#L988)] and more :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.