-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please separate the issue of unused functions from SC2317 (Command appears to be unreachable) #2966
Comments
Bug present at d80fdfa9e8e as well as the current HEAD (04a8624). not sure what version "but not on the release." refers to, probably something before 0.10.0 as that falls between the two hashes above and both those show the same output locally. |
I have tried v0.10.0 on Windows and I didn't get any "info". |
So there 2 possibilities:
|
Interesting. |
Sorry, I had an rc file in my repository and didn't remember it. Now with |
The line does appear to be unreachable, but ShellCheck should probably still not warn about uninvoked functions. |
Just noticed now that all infos refer to the unused function. In my opinion there should be a separate SC code (with a more clear message) for the unused functions (and just one per function). |
@ale5000-git maybe you can clean up the original report here and retitle the issue to make it to the point? or close and open new if that's preferred. |
I am actually seeing |
@stevecj |
Unreachable functions now have a separate SC2329, and unreachable commands within them will no longer emit SC2317. This also fixes |
@koalaman it looks like this change is included in version 0.10.0 in snap but not in the release on github. Would it be possible to release a 0.10.1 to be aligned again? |
The change is in git master HEAD and is not part of any official release. If you follow the guide in the README you will use the edge channel and that is built rolling. To follow the releases you need to snap install from stable/default instead. The release will come when deemed necessary (some might even argue that nine months is well overdue though =)). |
For bugs
shellcheck --version
or "online"): onlineHere's a snippet or screenshot that shows the problem:
Script: https://github.com/micro5k/microg-unofficial-installer/blob/ecf1f9b/utils/device-info.sh
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
Function is unused.
Edit: Updated.
The text was updated successfully, but these errors were encountered: