<commit_before>dependencies:
  cache_directories:
    - "~/.cabal"
    - "~/shellcheck"

  pre:
    - sudo apt-get install cabal-install
    - cabal update
    - git clone https://github.com/koalaman/shellcheck && cd shellcheck && cabal install

test:
  override:
    - ~/.cabal/bin/shellcheck -e SC1091 -x aursec/bin/*
<commit_msg>Improve shellcheck output in CI<commit_after>dependencies:
  cache_directories:
    - "~/.cabal"
    - "~/shellcheck"

  pre:
    - sudo apt-get install cabal-install
    - cabal update
    - git clone https://github.com/koalaman/shellcheck && cd shellcheck && cabal install

test:
  override:
    - mkdir -p $CIRCLE_TEST_REPORTS/shellcheck
    - ~/.cabal/bin/shellcheck -e SC1091 -x aursec/bin/*
    - ~/.cabal/bin/shellcheck -e SC1091 -xf checkstyle aursec/bin/* > $CIRCLE_TEST_REPORTS/shellcheck/check.xml

{'fraction_non_alphanumeric': 0.13079667063020214, 'fraction_numerical': 0.014268727705112961, 'mean_word_length': 2.8447488584474887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '440676', 'n_tokens_mistral': 320, 'n_tokens_neox': 301, 'n_words': 64}