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

### Required

[[1](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/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/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/services/TemplateService.ts#L121)][[2](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/services/MovieService.ts#L32)][[3](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/services/MovieService.ts#L34)][[4](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/services/MovieService.ts#L81)][[5](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/services/CollectionService.ts#L44)][[6](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/services/CollectionService.ts#L46)][[7](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/services/CollectionService.ts#L78)][[8](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/main.ts#L107)][[9](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/main.ts#L109)][[10](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/main.ts#L111)][[11](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/apis/TmdbMoviesApi.ts#L138)][[12](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/apis/TmdbMoviesApi.ts#L141-L145)]: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)



---

### Optional

[[1](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/services/MovieService.ts#L45)][[2](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/services/CollectionService.ts#L51)]:Use `app.fileManager.trashFile(file: TAbstractFile)` instead, this will make sure that the file is deleted according to the users preferences.

[[1](https://github.com/ats4e/obsidian-movie-companion/blob/1c1a41627d18671c8e8c7283e1d0be7e320ac3c3/src/settings/PluginSettings.ts#L214)]: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.