### Required

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ai-service.ts#L412-L412)
Unexpected use of 'fetch'. Use the built-in `requestUrl` function instead of `fetch` for network requests in Obsidian.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ai-service.ts#L561-L561)
Unnecessary escape character: \-.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L29-L29)[\[2\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L38-L38)[\[3\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L270-L270)[\[4\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L281-L281)[\[5\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L301-L301)[\[6\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/metadata-generator.ts#L145-L145)[\[7\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/metadata-generator.ts#L168-L168)
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L48-L48)
Unexpected console statement. Only these console methods are allowed: warn, error, debug.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L81-L81)[\[2\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L94-L94)[\[3\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L216-L216)[\[4\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L309-L309)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L81-L81)[\[2\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L94-L94)[\[3\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L98-L98)[\[4\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L101-L101)[\[5\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L112-L112)[\[6\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L115-L115)[\[7\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L124-L124)[\[8\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L136-L136)[\[9\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L148-L148)[\[10\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L195-L195)[\[11\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L198-L198)[\[12\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L205-L205)[\[13\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L206-L206)[\[14\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L209-L209)[\[15\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L210-L210)[\[16\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L216-L216)[\[17\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L220-L220)[\[18\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L291-L291)[\[19\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L293-L293)[\[20\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L309-L309)[\[21\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L42-L42)[\[22\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L47-L47)[\[23\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L262-L262)[\[24\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L313-L313)[\[25\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L322-L322)[\[26\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L341-L341)[\[27\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L359-L359)[\[28\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L459-L459)[\[29\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L463-L463)[\[30\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L469-L469)[\[31\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L473-L473)[\[32\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L478-L478)[\[33\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L495-L495)
Use sentence case for UI text.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L206-L206)[\[2\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L210-L210)[\[3\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/metadata-generator.ts#L161-L164)
Promise returned in function argument where a void return was expected.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L268-L268)
Unexpected confirm.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/template-manager.ts#L247-L247)
`substr` is deprecated. A legacy feature for browser compatibility

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L380-L380)
This assertion is unnecessary since it does not change the type of the expression.



---

### Optional

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L1-L1)
'Editor' is defined but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L1-L1)
'MarkdownView' is defined but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L1-L1)
'Modal' is defined but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L1-L1)
'TFile' is defined but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L1-L1)
'ButtonComponent' is defined but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/main.ts#L1-L1)[\[2\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L1-L1)
'DropdownComponent' is defined but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/template-manager.ts#L207-L207)
'e' is defined but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L1-L1)
'ToggleComponent' is defined but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L41-L41)
'titleEl' is assigned a value but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L45-L45)[\[2\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L323-L323)
'keyboardHint' is assigned a value but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L93-L93)
'nameEl' is assigned a value but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L106-L106)
'badgeEl' is assigned a value but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L114-L114)[\[2\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L176-L176)
'selectedBadgeEl' is assigned a value but never used.

[\[1\]](https://github.com/guildshow/obsidian-audo-metadata/blob/28295e856b44bcb304eaafe6117cf32f997c58d3/ui-components.ts#L127-L127)
'shortcutEl' is assigned a value but never used.

