fix: 🚨 Fix Deepsource warnings

This commit is contained in:
Jesse Wierzbinski 2025-07-07 05:08:34 +02:00
parent 2fffbcbede
commit 870b6dbe85
No known key found for this signature in database
13 changed files with 58 additions and 59 deletions

View file

@ -31,7 +31,7 @@ await build({
"@bull-board/ui",
// Excluded because Standard Schema imports those, but the code is never executed
"@valibot/to-json-schema",
"effect"
"effect",
],
});

View file

@ -53,7 +53,7 @@ export class PluginLoader {
* @returns {Promise<unknown>} - The parsed manifest content.
* @throws Will throw an error if the manifest file cannot be parsed.
*/
private async parseManifestFile(
private static async parseManifestFile(
manifestPath: string,
manifestFile: string,
): Promise<unknown> {
@ -118,7 +118,7 @@ export class PluginLoader {
}
const manifestPath = `${dir}/${plugin}/${manifestFile}`;
const manifest = await this.parseManifestFile(
const manifest = await PluginLoader.parseManifestFile(
manifestPath,
manifestFile,
);
@ -140,7 +140,7 @@ export class PluginLoader {
* @returns {Promise<Plugin<ZodTypeAny>>} - The loaded Plugin instance.
* @throws Will throw an error if the entrypoint's default export is not a Plugin.
*/
public async loadPlugin(
public static async loadPlugin(
dir: string,
entrypoint: string,
): Promise<Plugin<ZodTypeAny>> {
@ -197,7 +197,7 @@ export class PluginLoader {
return null;
}
const pluginInstance = await this.loadPlugin(
const pluginInstance = await PluginLoader.loadPlugin(
dir,
`${plugin}/index`,
);