Skip to content

json-parser: basic support for ShellCheck's JSON output - #83

Merged
kdudka merged 1 commit into
csutils:mainfrom
kdudka:shellcheck-json
Oct 3, 2022
Merged

json-parser: basic support for ShellCheck's JSON output#83
kdudka merged 1 commit into
csutils:mainfrom
kdudka:shellcheck-json

Conversation

@kdudka

@kdudkakdudka commented Sep 8, 2022

Copy link
Copy Markdown
Member

... which is produced by shellcheck --format=json1 ...

@kdudka

Copy link
Copy Markdown
MemberAuthor

I think this is safe to be merged. We can extend the support for ShellCheck's JSON output in subsequent merge requests.

@kdudka
kdudka marked this pull request as ready for review September 30, 2022 08:31
@kdudka
kdudka requested a review from lzaoralSeptember 30, 2022 08:31

@jamackujamacku left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kdudka Thank you. Only one small thing. I think the commit message should say --format=json1 instead of only json as mentioned in:

kdudka added a commit to kdudka/csdiff that referenced this pull request Sep 30, 2022
... which is produced by `shellcheck --format=json1 ...`
Fixes: csutils#75Closes: csutils#83
@kdudka

Copy link
Copy Markdown
MemberAuthor

@jamacku Good catch! Fixed.

@lzaorallzaoral left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks great but I'd drop the Fixes: from the commit message. The issue was specifically asking about handling of ShellCheck's suggestions which are still marked as a TODO.

Edit: Maybe Related: is more appropriate.

... which is produced by `shellcheck --format=json1 ...`
Related: csutils#75Closes: csutils#83
@kdudka

Copy link
Copy Markdown
MemberAuthor

@lzaoral You are right. Fixed.

@lzaorallzaoral left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @kdudka!

@kdudkakdudka closed this in 3ab6fbfOct 3, 2022
@kdudka
kdudka merged commit 3ab6fbf into csutils:mainOct 3, 2022
@kdudka

Copy link
Copy Markdown
MemberAuthor

@lzaoral Note that using Related: in the commit message does not prevent GitHub from closing the issue.

@lzaoral

Copy link
Copy Markdown
Member

Sorry, @kdudka. I did not know that and it is a rather stupid behaviour.

@kdudka

kdudka commented Oct 5, 2022

Copy link
Copy Markdown
MemberAuthor

My bad. The issue was explicitly linked with the pull request on GitHub. The use of Related: in the commit message was in fact unrelated to my observation. @lzaoral Thank you for pointing it out!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please add support for ShellCheck JSON format

3 participants

@kdudka@lzaoral@jamacku