Skip to content

[FeatureRequest] Allow to configure glob options #316

Closed
@loynoir

Description

@loynoir

Feature Request

Would be nice to be able to configure glob options. 😄

{ cwd: rootPath, nodir: true, absolute: true, strict: false },

Use case

For example, glob options follow: true.

I use pnpm to manage shell dependency to avoid doppelgangers. 😄

But, pnpm use symlink...

Alternative

Glob here is about sourcing files, existing sourcing file pattern allowed by shellcheck.

# src/foo.sh

# shellcheck source-path=../node_modules/MODULE_NAME
BASE=/path/to/node_modules/MODULE_NAME
source "${BASE}"/lib/bar1.sh
source "${BASE}"/lib/bar2.sh
...

Maybe when found syntax

source ${VARIABLE}/SUBPATH

Let bashls source

path.join(
  path.resolve(
    path.dirname(CURRENTFILE), 
    SHELLCHECK_SOURCE_PATH_ELEMENT
  ),
  SUBPATH
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions