Removes unnecessary whitespace in license

This commit is contained in:
Simon Schödler 2023-06-10 17:18:49 +02:00
parent 005021e4fb
commit 1a2e455f7e
16 changed files with 19 additions and 22 deletions

View file

@ -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, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of 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. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { Editor } from 'obsidian'; import { Editor } from 'obsidian';

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { addIcon } from 'obsidian'; import { addIcon } from 'obsidian';

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { App, CachedMetadata, MarkdownView, Plugin, PluginManifest, TAbstractFile, TFile } from 'obsidian'; import { App, CachedMetadata, MarkdownView, Plugin, PluginManifest, TAbstractFile, TFile } from 'obsidian';

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { EditorPosition } from 'obsidian'; import { EditorPosition } from 'obsidian';

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { CachedMetadata, FileStats, HeadingCache, TFile, TFolder, TagCache, Vault } from 'obsidian'; import { CachedMetadata, FileStats, HeadingCache, TFile, TFolder, TagCache, Vault } from 'obsidian';

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { CacheItem, CachedMetadata, TAbstractFile, TFile, Vault } from 'obsidian'; import { CacheItem, CachedMetadata, TAbstractFile, TFile, Vault } from 'obsidian';
@ -15,6 +15,7 @@ import { CrossbowLoggingService } from './loggingService';
import { CrossbowSettingsService } from './settingsService'; import { CrossbowSettingsService } from './settingsService';
type CacheEntryLookup = { [key: string]: CacheEntry }; type CacheEntryLookup = { [key: string]: CacheEntry };
export type SourceCacheEntryLookupMap = { [key: TFile['path']]: CacheEntryLookup }; export type SourceCacheEntryLookupMap = { [key: TFile['path']]: CacheEntryLookup };
export interface CacheEntry { export interface CacheEntry {

View file

@ -7,16 +7,16 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { CrossbowSettingsService } from './settingsService'; import { CrossbowSettingsService } from './settingsService';
export class CrossbowLoggingService { export class CrossbowLoggingService {
public constructor(private readonly settingsService: CrossbowSettingsService) {}
private static LOGGER_PREFIX = '🏹: '; private static LOGGER_PREFIX = '🏹: ';
public constructor(private readonly settingsService: CrossbowSettingsService) {}
public debugLog(message: string): void { public debugLog(message: string): void {
this.settingsService.getSettings().useLogging && console.log(CrossbowLoggingService.LOGGER_PREFIX + message); this.settingsService.getSettings().useLogging && console.log(CrossbowLoggingService.LOGGER_PREFIX + message);
} }

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
export interface CrossbowPluginSettings { export interface CrossbowPluginSettings {

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { TFile } from 'obsidian'; import { TFile } from 'obsidian';

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
/* eslint-disable no-useless-escape */ // Reson: `testFile` /* eslint-disable no-useless-escape */ // Reson: `testFile`

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { Editor, EditorPosition } from 'obsidian'; import { Editor, EditorPosition } from 'obsidian';
@ -31,8 +31,6 @@ const MARKDOWN_CODE_BLOCK_REGEX = /```[\s\S]+?```/g;
// const MARKDOWN_STRIKETROUGH_REGEX = /~(.*?)~/g; // const MARKDOWN_STRIKETROUGH_REGEX = /~(.*?)~/g;
export class CrossbowTokenizationService { export class CrossbowTokenizationService {
public constructor() {}
private readonly SKIP_REGEX = /\s/; private readonly SKIP_REGEX = /\s/;
public getWordLookupFromEditor(targetEditor: Editor): WordLookup { public getWordLookupFromEditor(targetEditor: Editor): WordLookup {

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { CrossbowUtilsService } from './utilsService'; import { CrossbowUtilsService } from './utilsService';

View file

@ -7,12 +7,10 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
export class CrossbowUtilsService { export class CrossbowUtilsService {
constructor() {}
// folders names (or paths, separated by "/"). (Whitepaces around commas will be trimmed) // folders names (or paths, separated by "/"). (Whitepaces around commas will be trimmed)
public toArrayOfPaths(pathArrayLike: string): string[] { public toArrayOfPaths(pathArrayLike: string): string[] {
return pathArrayLike return pathArrayLike

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { App, PluginSettingTab, Setting } from 'obsidian'; import { App, PluginSettingTab, Setting } from 'obsidian';

View file

@ -7,7 +7,7 @@
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // 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. // GNU General Public License for more details.
import { Editor, ItemView, WorkspaceLeaf } from 'obsidian'; import { Editor, ItemView, WorkspaceLeaf } from 'obsidian';