### Required

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/main.ts#L155-L155)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/main.ts#L185-L185)[\[3\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/LanguageDetectionEngine.ts#L112-L112)[\[4\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/LanguageDetectionEngine.ts#L120-L120)[\[5\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L57-L57)[\[6\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternMatchingDetector.ts#L344-L344)[\[7\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternMatchingDetector.ts#L356-L356)[\[8\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/VSCodeDetector.ts#L259-L259)[\[9\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/VSCodeDetector.ts#L271-L271)[\[10\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/engine/ConfigurationManager.ts#L20-L20)[\[11\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/engine/ConfigurationManager.ts#L35-L35)[\[12\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/engine/ConfigurationManager.ts#L130-L130)[\[13\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryStatistics.ts#L220-L220)[\[14\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryStorage.ts#L78-L78)[\[15\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L12-L12)[\[16\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L32-L32)[\[17\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L89-L89)[\[18\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L132-L132)[\[19\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L134-L134)[\[20\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L139-L139)[\[21\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L197-L197)[\[22\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L204-L204)[\[23\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/types/index.ts#L19-L19)[\[24\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/types/index.ts#L123-L123)[\[25\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/types/index.ts#L124-L124)[\[26\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/HistoryActions.ts#L152-L152)[\[27\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L31-L31)[\[28\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L206-L206)[\[29\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L221-L221)[\[30\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L289-L289)[\[31\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/AdvancedSettingsSection.ts#L108-L108)[\[32\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/utils/SettingsValidation.ts#L10-L10)[\[33\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/utils/SettingsValidation.ts#L45-L45)
Unexpected any. Specify a different type.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/main.ts#L167-L167)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/main.ts#L178-L178)[\[3\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L48-L48)[\[4\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternMatchingDetector.ts#L31-L31)[\[5\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/FileProcessor.ts#L65-L65)[\[6\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/PluginLifecycle.ts#L53-L53)[\[7\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/PluginLifecycle.ts#L65-L65)[\[8\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/undo-ignore/UndoIgnoreService.ts#L36-L36)[\[9\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/undo-ignore/UndoIgnoreService.ts#L67-L67)[\[10\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/undo-ignore/UndoIgnoreService.ts#L89-L89)[\[11\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/undo-ignore/UndoIgnoreService.ts#L99-L99)[\[12\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/AdvancedSettingsSection.ts#L50-L50)[\[13\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/AdvancedSettingsSection.ts#L70-L70)
Unexpected console statement. Only these console methods are allowed: warn, error, debug.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/main.ts#L185-L185)
Async method 'migrateFromLegacySettings' has no 'await' expression.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/main.ts#L194-L194)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/main.ts#L204-L204)[\[3\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/main.ts#L214-L214)
Do not access Object.prototype method 'hasOwnProperty' from target object.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/HighlightJsDetector.ts#L19-L19)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternMatchingDetector.ts#L39-L39)
Async method 'detectLanguage' has no 'await' expression.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L28-L28)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L29-L29)[\[3\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L30-L30)[\[4\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L31-L31)[\[5\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L32-L32)[\[6\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L33-L33)[\[7\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L34-L34)[\[8\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L35-L35)[\[9\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternLoader.ts#L36-L36)
A `require()` style import is forbidden.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/VSCodeDetector.ts#L37-L37)
Async method 'initializeModel' has no 'await' expression.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/CommandManager.ts#L24-L24)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/CommandManager.ts#L36-L36)[\[3\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/CommandManager.ts#L58-L58)[\[4\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/EventHandlers.ts#L58-L58)[\[5\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/EventHandlers.ts#L60-L60)[\[6\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/EventHandlers.ts#L119-L119)[\[7\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/EventHandlers.ts#L132-L132)[\[8\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/PluginLifecycle.ts#L50-L50)[\[9\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L61-L61)[\[10\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L112-L112)[\[11\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L128-L128)[\[12\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L140-L140)[\[13\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L153-L153)[\[14\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L169-L169)[\[15\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L195-L195)[\[16\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L310-L310)[\[17\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L321-L321)[\[18\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryService.ts#L393-L393)[\[19\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/HistoryActions.ts#L58-L60)[\[20\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/HistoryEntryRenderer.ts#L169-L169)[\[21\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L91-L91)[\[22\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L112-L114)
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/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/CommandManager.ts#L56-L56)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/FileProcessor.ts#L32-L32)[\[3\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/FileProcessor.ts#L121-L121)[\[4\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/PluginLifecycle.ts#L49-L49)[\[5\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/DynamicSettingsTab.ts#L59-L59)[\[6\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/HistoryActions.ts#L52-L52)[\[7\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/HistoryEntryRenderer.ts#L241-L241)[\[8\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/HistoryModal.ts#L78-L78)[\[9\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L47-L47)[\[10\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L104-L104)[\[11\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L113-L113)[\[12\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L114-L114)[\[13\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L133-L133)[\[14\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L142-L142)[\[15\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L216-L216)[\[16\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L241-L241)[\[17\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L251-L251)[\[18\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L222-L222)[\[19\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L242-L242)[\[20\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L253-L253)[\[21\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L262-L262)[\[22\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L268-L268)[\[23\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L290-L290)[\[24\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/LanguageToggleGrid.ts#L27-L27)[\[25\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/LanguageToggleGrid.ts#L28-L28)[\[26\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/DetectionEngineSection.ts#L19-L19)[\[27\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/DetectorConfigurationSection.ts#L25-L25)[\[28\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L19-L19)[\[29\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L59-L59)[\[30\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L71-L71)[\[31\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L83-L83)[\[32\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L95-L95)[\[33\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L139-L139)[\[34\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/ProcessingScopeSection.ts#L20-L20)[\[35\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/TriggerBehaviorSection.ts#L20-L20)
Use sentence case for UI text.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/CommandManager.ts#L67-L67)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/HistoryActions.ts#L207-L207)[\[3\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/AdvancedSettingsSection.ts#L89-L89)[\[4\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L98-L98)[\[5\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L133-L133)
Unexpected confirm.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/EventHandlers.ts#L47-L47)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/plugin/EventHandlers.ts#L49-L49)[\[3\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L52-L55)[\[4\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L245-L256)[\[5\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L322-L325)[\[6\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L327-L330)[\[7\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DragDropHandler.ts#L105-L113)[\[8\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DragDropHandler.ts#L129-L136)[\[9\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/LanguageToggleGrid.ts#L30-L32)[\[10\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/LanguageToggleGrid.ts#L34-L36)[\[11\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/LanguageToggleGrid.ts#L70-L81)
Promise returned in function argument where a void return was expected.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryEntryManager.ts#L230-L230)[\[2\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L207-L207)
`substr` is deprecated. A legacy feature for browser compatibility

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/services/history/HistoryValidation.ts#L251-L251)
This assertion is unnecessary since it does not change the type of the expression.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/DynamicSettingsTab.ts#L59-L59)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/HistorySettingsSection.ts#L97-L97)
Async arrow function has no 'await' expression.



---

### Optional

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/code-analyzer/CodeAnalyzer.ts#L17-L17)
'lines' is assigned a value but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/PatternMatchingDetector.ts#L139-L139)
'error' is defined but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/language-detector/engine/DetectionOrchestrator.ts#L1-L1)
'ILanguageDetector' is defined but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/core/syntax-applier/SyntaxApplier.ts#L123-L123)
'cleanFence' is assigned a value but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/history/StatisticsModal.ts#L182-L182)
'color' is assigned a value but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L59-L59)
'title' is assigned a value but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L60-L60)
'desc' is assigned a value but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/components/DetectorConfigCard.ts#L193-L193)
'valueSpan' is assigned a value but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/DetectionEngineSection.ts#L21-L21)
'registeredDetectors' is assigned a value but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/DetectionEngineSection.ts#L22-L22)
'detectionOrder' is assigned a value but never used.

[\[1\]](https://github.com/bueckerlars/obsidian-codeblock-language-detector/blob/d892e745592dca55fb4a17e5eb6ec3611956642c/src/ui/settings/sections/DetectorConfigurationSection.ts#L27-L27)
'descEl' is assigned a value but never used.

