Skip to content

Add shell script diagnostics support (shellcheck) #2

Description

@aakashrajput

What

Same file/mechanism as the Ruby diagnostics issue (src/tools/diagnostics.ts, commandFor()) — .sh/.bash files currently get no diagnostics at all.

Where to start

if ([".sh", ".bash"].includes(ext)) {
  if (onPath("shellcheck")) return ["shellcheck", "-f", "gcc", absPath];
  return null;
}

Acceptance criteria

Same shape as the Ruby issue: silent skip when shellcheck isn't installed, never blocks, add a couple of unit tests.

Why it's a good first issue

Independent of the Ruby diagnostics issue — pick whichever language you'd rather work with; both are separate, non-conflicting PRs.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions