For bugs with existing features
Here's a snippet or screenshot that shows the problem:
#!/bin/sh
# shellcheck source=path/log.sh
source "${VAR}/path/log.sh"
log_info "message"
Here's what shellcheck currently says:
^-- SC2218 (error): This function is only defined later. Move the definition up.
Here's what I wanted or expected to see:
As it is defined in the sourced log.sh it should be accepted without issues.
(VAR is actually the current dir)
0.10.0 worked.
For bugs with existing features
shellcheck --versionor "online"): 0.11.0Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
^-- SC2218 (error): This function is only defined later. Move the definition up.
Here's what I wanted or expected to see:
As it is defined in the sourced log.sh it should be accepted without issues.
(VAR is actually the current dir)
0.10.0 worked.