Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 3f82860

Browse files
committed
Treat messages of level note as info
Treat the messages of type `note` as type `info`, otherwise they would be treated as error when displayed to the user. Currently, Shellcheck treats any message that is not `error` or `warning` as a `note`. Closes #96
1 parent 4e3c909 commit 3f82860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default {
6363
const messages = [];
6464
let match = regex.exec(output);
6565
while (match !== null) {
66-
const type = match[3];
66+
const type = match[3] !== 'note' ? match[3] : 'info';
6767
if (showAll || type === 'warning' || type === 'error') {
6868
const line = Number.parseInt(match[1], 10) - 1;
6969
const col = Number.parseInt(match[2], 10) - 1;

0 commit comments

Comments
 (0)