Skip to content

Commit

Permalink
ci(lint): exclude .in files from ShellCheck lint
Browse files Browse the repository at this point in the history
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: systemd/systemd#28521

(cherry picked from commit 97eb826)

Related: RHEL-1086
  • Loading branch information
jamacku committed Nov 3, 2023
1 parent 34adeef commit be89350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/differential-shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ jobs:
- name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v4
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 }}

0 comments on commit be89350

Please sign in to comment.