Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Use linter.command for formating too #809

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 6 additions & 2 deletions packages/language-server-ruby/src/formatters/RuboCop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ export default class RuboCop extends BaseFormatter {
protected FORMATTED_OUTPUT_REGEX = new RegExp(`^${this.FORMATTED_OUTPUT_DELIMITER}$`, 'm');

get cmd(): string {
const command = 'rubocop';
return this.isWindows() ? command + '.bat' : command;
if (this.lintConfig.command) {
return this.lintConfig.command;
} else {
const command = 'rubocop';
return this.isWindows() ? command + '.bat' : command;
}
}

get args(): string[] {
Expand Down