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

Commit

Permalink
Merge pull request #575 from guzart/feature/reek-stdin-filename-arg
Browse files Browse the repository at this point in the history
Add Stdin-filename arg to Reek linter
  • Loading branch information
wingrunr21 authored Feb 23, 2020
2 parents fdc33a3 + 4e4fa1e commit f672675
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/language-server-ruby/src/linters/Reek.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { URI } from 'vscode-uri';
import BaseLinter from './BaseLinter';
import { Diagnostic, DiagnosticSeverity } from 'vscode-languageserver';

Expand All @@ -24,7 +25,8 @@ export default class Reek extends BaseLinter {
}

get args(): string[] {
return ['-f', 'json'];
const documentPath = URI.parse(this.document.uri);
return ['-f', 'json', '--stdin-filename', documentPath.fsPath];
}

protected processResults(data): Diagnostic[] {
Expand Down

0 comments on commit f672675

Please sign in to comment.