Skip to content

Commit fa14fb0

Browse files
committed
checkpatchCommit(): fix log format violation
By design linter is run from the directory where the repo containing commit is located. And in case when there is no '--show-types' option passed the resulting log violates expected format and parseCheckpatchLog() doesn't see what it should. Forcing the option fixes the problem.
1 parent 776ca03 commit fa14fb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/checkpatchProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export default class CheckpatchProvider implements vscode.CodeActionProvider {
197197
if (commitValue && commitValue.description) {
198198
let log = '';
199199
let args = this.linterConfig.args.slice();
200+
args.push('--show-types');
200201
args.push('--showfile');
201202
args.push('-g');
202203
args.push(commitValue.description);

0 commit comments

Comments
 (0)