You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would let shellcheck translate "source /usr/lib/shell/db-functions" to "source /home/knirch/linux-dist/usr/lib/shell/db-function"
I do know about the source=file directive, but it's going to add lots of noise;
$ shellcheck -f gcc $(git grep -l '^#!/bin/bash' ) | grep -c SC1091
628
I could perhaps move some parts to dotfiles, but that would sadly remove the benefit of source checking.
The text was updated successfully, but these errors were encountered:
With 301705e you can now do this with -P "$PWD", which changes the search path both for what's considered the root in absolute paths, and for the base path of relative paths.
This should probably also be part of the new .shellcheckrc functionality, but isn't yet.
It might|would be nice if something like
knirch@traktor:~/source/linux-dist$ shellcheck -x --root-path=$PWD -f gcc $(git grep -l '^#!/bin/bash')
would let shellcheck translate "source /usr/lib/shell/db-functions" to "source /home/knirch/linux-dist/usr/lib/shell/db-function"
I do know about the source=file directive, but it's going to add lots of noise;
$ shellcheck -f gcc $(git grep -l '^#!/bin/bash' ) | grep -c SC1091
628
I could perhaps move some parts to dotfiles, but that would sadly remove the benefit of source checking.
The text was updated successfully, but these errors were encountered: