Skip to content

How to resolve shellcheck:SC1091 in both VisualStudio and SonarQube #44

@pwagland

Description

@pwagland

Rule shellcheck:SC1091: Not following: properties.sh: openBinaryFile: does not exist (No such file or directory)

The normal way to resolve this is something like:

# shellcheck source=properties.sh
. "${SRC_ROOT}/Build/properties.sh"

In VisualStudio, this works perfectly, as it uses the the directory of the file as the search directory. However, this plugin under SonarQube doesn't, and so can't find this file. I assume that it is using the base of the project as the search directory? However, that means that I get different results when running locally, and running the scan on the server.

How is this normally resolved? I cannot see any way to configure this in the plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions