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

### Required

[[1](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L103)]: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/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L685)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L772)][[2](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L773)][[3](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L780)][[4](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L781)][[5](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L788)][[6](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L792)][[7](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L793)][[8](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L794)][[9](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L812)][[10](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L813)][[11](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L814)][[12](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L849)][[13](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L850)][[14](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L853)][[15](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L854)][[16](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L855)][[17](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L856)][[18](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L860)][[19](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L861)][[20](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L862)][[21](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L863)][[22](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L870)][[23](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L871)][[24](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L872)][[25](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L898)][[26](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L899)][[27](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L900)][[28](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L901)][[29](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L902)][[30](https://github.com/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L903)] 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/amittell/obsidian-slack-formatter/blob/1a6374687cec19a787d2c928ec0a7085ca04fb25/src/main.ts#L978)]: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>



---



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.