From 1a2e455f7ed22d6b81346adabdde8312e98e1039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sch=C3=B6dler?= Date: Sat, 10 Jun 2023 17:18:49 +0200 Subject: [PATCH] Removes unnecessary whitespace in license --- LICENSE | 2 +- src/controllers/viewController.ts | 2 +- src/icons.ts | 2 +- src/main.ts | 2 +- src/model/suggestion.ts | 2 +- src/services/indexingService.test.ts | 2 +- src/services/indexingService.ts | 3 ++- src/services/loggingService.ts | 6 +++--- src/services/settingsService.ts | 2 +- src/services/suggestionsService.ts | 2 +- src/services/tokenizationService.test.ts | 2 +- src/services/tokenizationService.ts | 4 +--- src/services/utilsService.test.ts | 2 +- src/services/utilsService.ts | 4 +--- src/settings.ts | 2 +- src/view/view.ts | 2 +- 16 files changed, 19 insertions(+), 22 deletions(-) diff --git a/LICENSE b/LICENSE index e72bfdd..3d57ccc 100644 --- a/LICENSE +++ b/LICENSE @@ -641,7 +641,7 @@ the "copyright" line and a pointer to where the full notice is found. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License diff --git a/src/controllers/viewController.ts b/src/controllers/viewController.ts index 8810361..fb861ed 100644 --- a/src/controllers/viewController.ts +++ b/src/controllers/viewController.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { Editor } from 'obsidian'; diff --git a/src/icons.ts b/src/icons.ts index f534e13..6b59816 100644 --- a/src/icons.ts +++ b/src/icons.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { addIcon } from 'obsidian'; diff --git a/src/main.ts b/src/main.ts index cf5f954..43b1140 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { App, CachedMetadata, MarkdownView, Plugin, PluginManifest, TAbstractFile, TFile } from 'obsidian'; diff --git a/src/model/suggestion.ts b/src/model/suggestion.ts index 00d88df..065ef72 100644 --- a/src/model/suggestion.ts +++ b/src/model/suggestion.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { EditorPosition } from 'obsidian'; diff --git a/src/services/indexingService.test.ts b/src/services/indexingService.test.ts index fd709ae..d8e3d5b 100644 --- a/src/services/indexingService.test.ts +++ b/src/services/indexingService.test.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { CachedMetadata, FileStats, HeadingCache, TFile, TFolder, TagCache, Vault } from 'obsidian'; diff --git a/src/services/indexingService.ts b/src/services/indexingService.ts index 2dd1a91..318ba6d 100644 --- a/src/services/indexingService.ts +++ b/src/services/indexingService.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { CacheItem, CachedMetadata, TAbstractFile, TFile, Vault } from 'obsidian'; @@ -15,6 +15,7 @@ import { CrossbowLoggingService } from './loggingService'; import { CrossbowSettingsService } from './settingsService'; type CacheEntryLookup = { [key: string]: CacheEntry }; + export type SourceCacheEntryLookupMap = { [key: TFile['path']]: CacheEntryLookup }; export interface CacheEntry { diff --git a/src/services/loggingService.ts b/src/services/loggingService.ts index 82d512a..ec9f4e4 100644 --- a/src/services/loggingService.ts +++ b/src/services/loggingService.ts @@ -7,16 +7,16 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { CrossbowSettingsService } from './settingsService'; export class CrossbowLoggingService { - public constructor(private readonly settingsService: CrossbowSettingsService) {} - private static LOGGER_PREFIX = '🏹: '; + public constructor(private readonly settingsService: CrossbowSettingsService) {} + public debugLog(message: string): void { this.settingsService.getSettings().useLogging && console.log(CrossbowLoggingService.LOGGER_PREFIX + message); } diff --git a/src/services/settingsService.ts b/src/services/settingsService.ts index 14d1d13..edb3ee8 100644 --- a/src/services/settingsService.ts +++ b/src/services/settingsService.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. export interface CrossbowPluginSettings { diff --git a/src/services/suggestionsService.ts b/src/services/suggestionsService.ts index 506bbf7..7b646d6 100644 --- a/src/services/suggestionsService.ts +++ b/src/services/suggestionsService.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { TFile } from 'obsidian'; diff --git a/src/services/tokenizationService.test.ts b/src/services/tokenizationService.test.ts index 29b804a..61fdf7f 100644 --- a/src/services/tokenizationService.test.ts +++ b/src/services/tokenizationService.test.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. /* eslint-disable no-useless-escape */ // Reson: `testFile` diff --git a/src/services/tokenizationService.ts b/src/services/tokenizationService.ts index 5c3639e..207be89 100644 --- a/src/services/tokenizationService.ts +++ b/src/services/tokenizationService.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { Editor, EditorPosition } from 'obsidian'; @@ -31,8 +31,6 @@ const MARKDOWN_CODE_BLOCK_REGEX = /```[\s\S]+?```/g; // const MARKDOWN_STRIKETROUGH_REGEX = /~(.*?)~/g; export class CrossbowTokenizationService { - public constructor() {} - private readonly SKIP_REGEX = /\s/; public getWordLookupFromEditor(targetEditor: Editor): WordLookup { diff --git a/src/services/utilsService.test.ts b/src/services/utilsService.test.ts index 5dfaf3e..5aa5d39 100644 --- a/src/services/utilsService.test.ts +++ b/src/services/utilsService.test.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { CrossbowUtilsService } from './utilsService'; diff --git a/src/services/utilsService.ts b/src/services/utilsService.ts index 3f36e95..ecde921 100644 --- a/src/services/utilsService.ts +++ b/src/services/utilsService.ts @@ -7,12 +7,10 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. export class CrossbowUtilsService { - constructor() {} - // folders names (or paths, separated by "/"). (Whitepaces around commas will be trimmed) public toArrayOfPaths(pathArrayLike: string): string[] { return pathArrayLike diff --git a/src/settings.ts b/src/settings.ts index 4ec130a..b586eec 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { App, PluginSettingTab, Setting } from 'obsidian'; diff --git a/src/view/view.ts b/src/view/view.ts index 5ec71e2..b8557df 100644 --- a/src/view/view.ts +++ b/src/view/view.ts @@ -7,7 +7,7 @@ // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. import { Editor, ItemView, WorkspaceLeaf } from 'obsidian';