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

### Required

[[1](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/main.js)]:Please remove the `main.js` file from the repo and add it to your .gitignore. Compiled release files shouldn't get mixed with source code in your commits and should go to the releases files instead.

[[1](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardMaker.ts#L60)][[2](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardMaker.ts#L66)][[3](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardMaker.ts#L72)][[4](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardMaker.ts#L84)][[5](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardMaker.ts#L85)][[6](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardMaker.ts#L86)][[7](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L85)][[8](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L86)][[9](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L87)][[10](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L90)][[11](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L91)][[12](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L92)][[13](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L93)][[14](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L94)][[15](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L95)][[16](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L96)][[17](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L97)][[18](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L99)][[19](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L100)][[20](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L101)][[21](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L102)][[22](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L103)][[23](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L104)][[24](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L105)][[25](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L106)][[26](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L152)][[27](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L155)][[28](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L157)][[29](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L158)][[30](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L160)] 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/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L115)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/ui/cardContainer/cardContainer.ts#L145)]: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/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/main.ts#L112)]: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/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/main.ts#L51)][[2](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/main.ts#L58)][[3](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/main.ts#L65)][[4](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/main.ts#L72)][[5](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/main.ts#L79)][[6](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/main.ts#L86)][[7](https://github.com/wakeyi-git/obsidian-card-navigator-plugin/blob/dbd497d6db8694bcc441a735824bafb20bf2be23/src/main.ts#L100)]: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.



---



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.