Skip to content

Commit

Permalink
fix(language-server-ruby): pass valid filenames to RuboCop
Browse files Browse the repository at this point in the history
Closes rubyide#227.
  • Loading branch information
senhalil authored Jun 16, 2022
1 parent dc81c80 commit d849517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-server-ruby/src/formatters/RuboCop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class RuboCop extends BaseFormatter {

get args(): string[] {
const documentPath = URI.parse(this.document.uri);
const args = ['-s', `'${documentPath.fsPath}'`, '-a'];
const args = ['-s', documentPath.fsPath, '-a'];
return args;
}

Expand Down

0 comments on commit d849517

Please sign in to comment.