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

### Required

[[1](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/colors/colors.ts#L28)][[2](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/colors/colors.ts#L30)][[3](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/colors/colors.ts#L31)][[4](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/colors/colors.ts#L32)][[5](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/colors/colors.ts#L33)][[6](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/colors/colors.ts#L34)][[7](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/colors/colors.ts#L58)][[8](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/colors/colors.ts#L68)][[9](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/colors/colors.ts#L105)][[10](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/graph/graphEventsDispatcher.ts#L560)][[11](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/graph/graphicElements/nodes/shapes.ts#L227)][[12](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/svg/exportToSVG.ts#L295)][[13](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/svg/exportToSVG.ts#L296)][[14](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/svg/exportToSVG.ts#L297)][[15](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/helpers/media.ts#L184)][[16](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/graphsManager.ts#L892)]: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/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/graph/extendedElements/extendedGraphNode.ts#L146)][[2](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/graph/extendedElements/extendedGraphNode.ts#L147)][[3](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/graph/extendedElements/extendedGraphNode.ts#L148)][[4](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/graph/sets/folderBlobs.ts#L104)][[5](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/settings/settingCollapsible.ts#L65)][[6](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/settings/settingCollapsible.ts#L69)][[7](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/settings/settingFocus.ts#L14)][[8](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/settings/settingElementsStats.ts#L189)][[9](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/settings/settingElementsStats.ts#L193)][[10](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/settings/settingInteractives/settingInteractive.ts#L199)][[11](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L20-L41)][[12](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L38)][[13](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L59)][[14](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L60)][[15](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L83)][[16](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L84)][[17](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L104)][[18](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L105)][[19](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L113)][[20](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L114)][[21](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L134)][[22](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L135)][[23](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L143)][[24](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/legendUI.ts#L144)][[25](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/menu.ts#L54)][[26](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/menu.ts#L62)][[27](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/menu.ts#L69)][[28](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/statesUI.ts#L151)][[29](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/statesUI.ts#L152)][[30](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/graphControl/graphControl.ts#L34)] and more :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/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/graph/graphicElements/nodes/nodeGraphicsWrapper.ts#L144)][[2](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/suggester/InteractivesSuggester.ts#L62)][[3](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/suggester/InteractivesSuggester.ts#L73)][[4](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/suggester/PropertiesSuggester.ts#L25)][[5](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/suggester/PropertiesSuggester.ts#L31)][[6](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/graphControl/GCOptions.ts#L21)][[7](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/graphControl/GCFolders.ts#L21)][[8](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/modals/stateModal.ts#L301)][[9](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/ui/modals/stateModal.ts#L414)][[10](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/helpers/html.ts#L9)]: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/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/graph/sets/abstractSet.ts#L91)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.



---

### Optional

[[1](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/states/state.ts#L81)][[2](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/helpers/vault.ts#L101)][[3](https://github.com/ElsaTam/obsidian-extended-graph/blob/e9902ab0801ee06c6ff60e7ffa7ddcec4f2ffbc9/src/helpers/vault.ts#L108)]: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.