summaryrefslogtreecommitdiff
path: root/Meta/lint-shell-scripts.sh
AgeCommit message (Collapse)Author
2022-10-16Meta: Allow shellcheck to search sourced files in the script directoryTim Schumacher
2022-04-18Base: Add some default completions to shellrcAli Mohammad Pur
2022-03-20Everywhere: Move tests to /home/anon/TestsBrian Gianforcaro
2022-01-17Meta: Skip shellcheck for Ports in pre-commit hookBrian Gianforcaro
Shellcheck barfs on many of the patterns we use in port scripts, the check is already disabled when we run the script in CI, so we might as well disable the check for pre-commit as well.
2021-11-02Meta: Add a check to ensure grep -P stays gonethislooksfun
grep -P does not work on macOS, but grep -E does.
2021-11-01Base: Add new system-mode that just generates manpagesBen Wiederhake
2021-05-05Meta: Enable linting of shell scripts under ToolchainBrian Gianforcaro
Now that everything under Toolchain is shellcheck clean, remove it from the exception list.
2021-02-28Base/CI: Boot serenity in CI in a mode that runs tests on targetAndrew Kaster
Build a new version of Serenity in CI that doesn't have all the debug symbols on, or we'd be waiting a very long time to boot. Insert a TestRunner entry into SystemServer.ini that will run a shell script that runs tests in /bin and /usr/Tests and shuts down the system in the new self-test boot mode. Also make sure enough basic services are started in self-test such that the tests will actually run properly.
2021-01-22Meta: Get building on NixOS (#5005)Jonathan Turner
2021-01-12Shell: Move to Userland/Shell/Andreas Kling
2021-01-10Meta: Only complain about linter tools if relevant files have changedAndrew Kaster
2020-12-27Meta: Update lint-{clang-format,shell-scripts}.sh to take a list of filesLinus Groh
This should speed up pre-commit a bit as only files that are staged will be processed, and clang-format and shellcheck are only invoked once, not for every file. When no arguments are given (e.g. on CI), it still uses 'git ls-files'.
2020-12-27Meta: Set 'pipefail' option correctly in shell scriptsLinus Groh
This needs '-o' to work correctly. Also update the shebang to bash in some scripts as shellcheck was complaining about pipefail not being a POSIX shell thing otherwise.
2020-11-01Meta: lint-shell-scripts: Exit if shellcheck is not installedBrendan Coles
2020-10-03Everywhere: Fix more typosLinus Groh
2020-07-05Meta: Do not run shellcheck on our Shell's scriptsAnotherTest
2020-05-29Meta: update lint-shell-scripts.sh so that it does not search in Build/Emanuele Torre
We now use git-ls-files(1) instead of find(1).
2020-05-07Meta: We don't need to ignore run-tests in lint-shell-scripts.shEmanuele Torre
2020-03-25Meta: Ignore the LibJS test runner script when lintingAndreas Kling
Making this work in the absence of bash is more cumbersome than simply skipping it at the moment.
2020-02-10Meta: Integrate Shellcheck into TravisShannon Booth
lint-shell-scripts searches over the repository looking for shell scripts. On those found, shellcheck is run against them. If any linting fails print those warnings and exit with a non-zero exit code. Run this script automatically in Travis.