<commit_before>---
# The idea here is to run Shellcheck for each file, so violations can be fixed
# incrementally. As soon as a file has been fixed to pass shellcheck, it should
# no longer be allowed to fail.
#
# Once all files have been fixed, the jobs can all be replaced by one single run
# that checks all files at once.
#
# For discussion and further details see: https://github.com/bpkg/bpkg/issues/78

on:
  - push
  - pull_request

jobs:
  allowed_to_fail:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        file:
          - bpkg.sh
          - setup.sh
          - lib/init/init.sh
          - lib/install/install.sh
          - lib/json/JSON.sh
          - lib/suggest/suggest.sh
    steps:
      - uses: actions/checkout@v2
      - uses: pipeline-components/shellcheck@v0.7.0
        continue-on-error: true
        with:
          directory: ${{ matrix.file }}
          options: -f gcc -x lib/utils/utils.sh

  must_pass:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        file:
          - lib/getdeps/getdeps.sh
          - lib/list/list.sh
          - lib/package/package.sh
          - lib/show/show.sh
          - lib/term/term.sh
          - lib/update/update.sh
          - lib/utils/utils.sh<commit_msg>Change pipeline-components/shellcheck to latest version.<commit_after>---
# The idea here is to run Shellcheck for each file, so violations can be fixed
# incrementally. As soon as a file has been fixed to pass shellcheck, it should
# no longer be allowed to fail.
#
# Once all files have been fixed, the jobs can all be replaced by one single run
# that checks all files at once.
#
# For discussion and further details see: https://github.com/bpkg/bpkg/issues/78

on:
  - push
  - pull_request

jobs:
  allowed_to_fail:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        file:
          - bpkg.sh
          - setup.sh
          - lib/init/init.sh
          - lib/install/install.sh
          - lib/json/JSON.sh
          - lib/suggest/suggest.sh
    steps:
      - uses: actions/checkout@v2
      - uses: pipeline-components/shellcheck@v0.7.1
        continue-on-error: true
        with:
          directory: ${{ matrix.file }}
          options: -f gcc -x lib/utils/utils.sh

  must_pass:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        file:
          - lib/getdeps/getdeps.sh
          - lib/list/list.sh
          - lib/package/package.sh
          - lib/show/show.sh
          - lib/term/term.sh
          - lib/update/update.sh
          - lib/utils/utils.sh
{'fraction_non_alphanumeric': 0.098292220113852, 'fraction_numerical': 0.004554079696394687, 'mean_word_length': 1.76890756302521, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4999144', 'n_tokens_mistral': 834, 'n_tokens_neox': 817, 'n_words': 229}