-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Shellcheck shows warnings for the wrapper shell script #26160
Comments
Thank you for providing a valid report. The issue is in the backlog of the relevant team, but this area of Gradle is currently not a focus one, so it might take a while before a fix is made. |
We have this test that actually runs Shellcheck and should have supposedly failed. I wonder where the disconnect is with what I observe in IntelliJ. Line 196 in f6d8c16
|
|
And actually
|
However, the test should not be skipped on build agents. |
Yes, I also checked it locally, and to my surprise the test passes. At the same time, the original issue stands and users will see Shellcheck warnings in their projects after upgrading to Gradle 8.3+ wrapper. I believe it's a bad UX. We could potentially just add the SC2039 to the disabled list, and do a manual validation in the IDE, since the test does not seem to be able to catch it. |
Try something like this?
|
Current Behavior
The
gradlew
wrapper scripts for Gradle 8.3 (and the current 8.4 snapshot version of Gradle) contain warnings detected by Shellcheck integration with IntelliJ IDEA (via bundled Shell Script plugin).Expected Behavior
No shell script warnings are reported
Context (optional)
This is annoying also because IDEA detects those warnings as a part of the commit checks and points the user to them. The users are not supposed to edit the wrapper scripts, so there is no good way of fixing that rather than disabling the Shellcheck, which is most likely not desired.
One check is already ignored for those lines, and I guess we need to add another ignore for the https://github.com/koalaman/shellcheck/wiki/SC2039
Steps to Reproduce
Generate a any project with
gradle init
and run Shellcheck on thegradlew
Gradle version
8.4 master
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: