mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
add reference to -latest command line option --source-path
15
SC1090.md
15
SC1090.md
@@ -22,3 +22,18 @@ Use a [[Directive]] to point shellcheck to a fixed location it can read instead.
|
||||
### Exceptions:
|
||||
|
||||
If you don't care that ShellCheck is unable to account for the file, specify `# shellcheck source=/dev/null`.
|
||||
|
||||
|
||||
***
|
||||
|
||||
### 🚧 In [`shellcheck-latest`](https://shellcheck.storage.googleapis.com/index.html):
|
||||
|
||||
⚠️ this section references [functionality](https://github.com/koalaman/shellcheck/commit/301705edea829c5153c43bf52215d09b5e00d182) not yet in the **`stable`** release.
|
||||
|
||||
#### shellcheck -P *SOURCEPATH*, --source-path=*SOURCEPATH*
|
||||
|
||||
`shellcheck -P dir1:dir2/libs`
|
||||
|
||||
Specify paths to search for sourced files, separated by `:` on Unix and `;` on Windows. Absolute paths will also be rooted in these.
|
||||
|
||||
The special path ***`SCRIPTDIR`*** can be used to specify searching the currently checked script's directory, as in **`-P SCRIPTDIR`** or **`-P SCRIPTDIR/../libs`**. Subsequent `-P` flags accumulate and take precedence.
|
Reference in New Issue
Block a user