Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/colibri/linter/vsg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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} `;
Expand Down