Skip to content

Commit 5bed5a9

Browse files
committed
checkpatchProvider: Support --strict option
When using `--strict`, checkpatch outputs more, i.e, it is more strict. In this case, the tag used is "CHECK". With this, messages like this will pop up: "PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis" Signed-off-by: Nuno Sa <noname.nuno@gmail.com>
1 parent 3ea8a99 commit 5bed5a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/checkpatchProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default class CheckpatchProvider implements vscode.CodeActionProvider {
8989
private parseCheckpatchLog(log: string, basePath: string): number {
9090
const dictionary: { [fileUri: string]: vscode.Diagnostic[] } = {};
9191

92-
var re = /(WARNING|ERROR): ?(.+):(.+)?(?:\n|\r\n|)#\d+: FILE: (.*):(\d+):/g;
92+
var re = /(WARNING|ERROR|CHECK): ?(.+):(.+)?(?:\n|\r\n|)#\d+: FILE: (.*):(\d+):/g;
9393
var matches;
9494
while (matches = re.exec(log)) {
9595
let type = matches[2];

0 commit comments

Comments
 (0)