From b353d78dd04b07c708dcb6f957550980b3205dc3 Mon Sep 17 00:00:00 2001 From: Ruben Guerra Marin Date: Sat, 11 Jul 2026 00:06:27 +0200 Subject: [PATCH] Fixed vsg linter not using full path --- src/colibri/linter/vsg.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/colibri/linter/vsg.ts b/src/colibri/linter/vsg.ts index c0162303..d7d4f352 100644 --- a/src/colibri/linter/vsg.ts +++ b/src/colibri/linter/vsg.ts @@ -82,10 +82,12 @@ export class Vsg extends Base_linter { const code_file_normalized = file_path.replace(' ', '\\ '); const json_file_file_normalized = junit_file.replace(' ', '\\ '); - let command = `vsg -f ${code_file_normalized} --all_phases --js ${json_file_file_normalized}`; + const binary_path = options.path ? `${options.path}/${this.binary}` : this.binary; + + let command = `${binary_path} -f ${code_file_normalized} --all_phases --js ${json_file_file_normalized}`; if (options.argument !== ""){ // eslint-disable-next-line max-len - command = `vsg -f ${code_file_normalized} --all_phases -c ${options.argument} --js ${json_file_file_normalized}`; + command = `${binary_path} -f ${code_file_normalized} --all_phases -c ${options.argument} --js ${json_file_file_normalized}`; } const msg = `Linting with command: ${command} `;