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

### Required

[[1](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L546)][[2](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L547)][[3](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L548)][[4](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L549)][[5](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L550)][[6](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L551)][[7](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L552)][[8](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L556)][[9](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L557)][[10](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L558)][[11](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L559)][[12](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L560)][[13](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L561)][[14](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L562)][[15](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L563)][[16](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L564)][[17](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L567)][[18](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L577)][[19](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L578)][[20](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L579)][[21](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L580)][[22](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L581)][[23](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L584)][[24](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/chat-view/chat-input/plugins/shared/LexicalMenu.ts#L588)]: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/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/components/settings/modals/FolderPickerModal.tsx#L38)][[2](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/utils/chat/promptGenerator.brute.test.ts#L28)][[3](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/utils/chat/promptGenerator.brute.test.ts#L29)]: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/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiMessageAdapter.ts#L112)][[2](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiMessageAdapter.ts#L198)][[3](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiMessageAdapter.ts#L220)][[4](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L81)][[5](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L82)][[6](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L85)][[7](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L147)][[8](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L148)][[9](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L151)][[10](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L170)][[11](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L185)][[12](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L187)][[13](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L218)][[14](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L219)][[15](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L325)][[16](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L376)][[17](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L498)][[18](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/gemini.ts#L499)][[19](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L61)][[20](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L62)][[21](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L106)][[22](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L110)][[23](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L111)][[24](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L115)][[25](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L116)][[26](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L122)][[27](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L123)][[28](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L155)][[29](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L156)][[30](https://github.com/Lapis0x0/obsidian-yolo/blob/657d848ae119c7354fc4119d52c6132d9285365f/src/core/llm/openaiCompatibleProvider.ts#L200)] 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.