-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Enable SC2185 again #4022
Enable SC2185 again #4022
Conversation
Travis-CI still seems to use ShellCheck 0.46 now. I think we should wait for next Travis-CI image update. |
shellcheck 0.4.6 is available yet shellcheck 0.3.3 is what Ubuntu 14.04 uses. We should leverage a more modern version using some other technique. Perhaps the docker technique explained here? https:/koalaman/shellcheck/wiki/TravisCI Or is there a modern PPA available? |
I don't know, currently the |
@zapashcanon I vote we close this out for now. We can always follow up with it with it when our build system gets updated. @lukas-w has a PR open for switching us to Circle-CI/docker images but I don't see a benefit in keeping it open. |
I don't know, I'd maybe rather leave it open so I don't forget it should be fixed as I often check my opened PR list here ; and I'll try to relaunch the build sometimes to see if SC has been updated. |
Normally I'd agree.... but in this case I think it's smarter to wait until the CI environment changes as Ubuntu 14.04 seems to have no intentions of updating this package and a change to the CI environment requires this PR to be rebased anyway, which seems like overkill for a one-liner. |
Actually... perhaps we can have the latest using PPA "pinning". https://help.ubuntu.com/community/PinningHowto |
Ok... here's how we pin it from the future 18.04. I've tested this on 14.04 and seems to work just fine. sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ bionic universe"
sudo sh -c 'echo "Package: shellcheck\nPin: release n=bionic\nPin-Priority: 999\n" > /etc/apt/preferences.d/ubuntu-bionic-pin-999'
# update, install
sudo apt-get update
sudo apt-get install shellcheck
shellcheck --version
# ShellCheck - shell script analysis tool
# version: 0.4.6
# license: GNU General Public License, version 3
# website: http://www.shellcheck.net Note, for small utilities like |
Edit: Reverted d7aeee0, Ubuntu 18.04 still doesn't have the right version a year later. 😢 |
Edit: Nevermind, a year later, I'm rediscovering the original bug due to 18.04 still not having the updated version. |
Ok, I'm stumbling on the original bug. Turns out, even Ubuntu 18.04 doesn't ship with As an aside, the bash completion does't pass shellcheck but it's ignored because we only scan two directories. Changing to scan all directories with a |
Edit: @tresf, repurposed this PR.
Original:
Reusing this PR to shellcheck all lmms directories up to 3 directories deep.