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

### Required

[[1](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/settings/SettingsTab.ts#L24)][[2](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/settings/SettingsTab.ts#L31)][[3](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/settings/SettingsTab.ts#L32)][[4](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/settings/SettingsTab.ts#L43)][[5](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/settings/SettingsTab.ts#L52)][[6](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/settings/SettingsTab.ts#L61)]: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/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/main.ts#L34)][[2](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/suggesters/FileSuggester.ts#L26)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/main.ts#L52)][[2](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/regex/Regex.ts#L27)][[3](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/regex/Regex.ts#L28-L34)][[4](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/regex/Regex.ts#L29)][[5](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/regex/Regex.ts#L38)]: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/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/main.ts#L75)][[2](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/main.ts#L125)]:Please remove anything from the sample plugin that you don't need.

[[1](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/main.ts#L91)]:Adding `command` to the command ID is not necessary, please remove it.

[[1](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/main.ts#L152-L166)]:Remember to rename the sample classes to something that makes sense to your plugin. If there are any errors, Obsidian will spit out this class name, so this will be important for users to debug if they need to.



---

### Optional

[[1](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/settings/SettingsTab.ts#L124)][[2](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/main.ts#L142)]:Casting to `any` should be avoided as much as possible.

[[1](https://github.com/carlosmunoz/obsidian-file-renamer/blob/37b5fb63c4b011faec4ef5a64a00c45f0f5e9706/main.ts#L45)]:Use `app.fileManager.trashFile(file: TAbstractFile)` instead, this will make sure that the file is deleted according to the users preferences.



---



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.