From: Jan Macku Date: Mon, 7 Aug 2023 13:11:00 +0000 (+0200) Subject: ci(lint): exclude `.in` files from ShellCheck lint X-Git-Tag: v255-rc1~800 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97eb82682126e7f3ee956a025078ea2b801955cb;p=thirdparty%2Fsystemd.git ci(lint): exclude `.in` files from ShellCheck lint Exclude all `.in` files because they may contain unsupported syntax, and they have to be preprocessed first. For example: ```sh Error: SHELLCHECK_WARNING: ./src/rpm/systemd-update-helper.in:130:37: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it. ``` Related to: https://github.com/systemd/systemd/pull/28521 --- diff --git a/.github/workflows/differential-shellcheck.yml b/.github/workflows/differential-shellcheck.yml index 6f4b69d8a78..4b40d397a35 100644 --- a/.github/workflows/differential-shellcheck.yml +++ b/.github/workflows/differential-shellcheck.yml @@ -30,4 +30,6 @@ jobs: - name: Differential ShellCheck uses: redhat-plumbers-in-action/differential-shellcheck@ac4483d8c6713bd2011037f44fe626989468af74 with: + # exclude all `.in` files because they may contain unsupported syntax, and they have to be preprocessed first + exclude-path: '**/*.in' token: ${{ secrets.GITHUB_TOKEN }}