Allow to set multiple shells per-file and report aggregated diagnostics · Issue #1543 · vscode-shellcheck/vscode-shellcheck · GitHub
Skip to content

Allow to set multiple shells per-file and report aggregated diagnostics #1543

Open

Description

@felipecrs

I have a file that works in multiple shells, and is sourced not executed, so I don't want to put a shebang directive in it (also, a "shell" directive would imply it only works on one shell, and I'm not aware of how i can tell shellcheck i want to check multiple shells). I usually lint it on the command line with shellcheck -s sh path/to/file && shellcheck -s dash path/to/file && shellcheck -s bash path/to/file etc.

It would be great if:

  1. i could provide a filename in the extension settings, and override the shell (ie, the -s value) for it (Allow to set the shell per-file #214)
  2. i could provide multiples and have the extension warn me about the union of all the warnings

Originally posted by @felipecrs in #214 (comment)

Activity

  1. felipecrs commented on Oct 28, 2024

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions