<commit_before>#!/bin/sh -e

# compile everything
echo "compile"
go install -v ./...

# call source code checker for each directory
dirs=`ls -d */`
echo "goimports"
for dir in $dirs
do
  test -z "$(goimports -l -w ${dir} | tee /dev/stderr)"
done

echo "golint"
for dir in $dirs
do
  test -z "$(golint ${dir}... | tee /dev/stderr)"
done

echo "go tool vet"<commit_msg>adjust test script<commit_after>#!/bin/sh -e

# compile everything
echo "compile"
go install -v ./cmd/...

# call source code checker for each directory
dirs=`ls -d */ | grep -v templates | grep -v vendor`
echo "goimports"
for dir in $dirs
do
  test -z "$(goimports -l -w ${dir} | tee /dev/stderr)"
done

echo "golint"
for dir in $dirs
do
  test -z "$(golint ${dir}... | tee /dev/stderr)"
done

echo "go tool vet"
{'fraction_non_alphanumeric': 0.16282051282051282, 'fraction_numerical': 0.0, 'mean_word_length': 3.154255319148936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4830868', 'n_tokens_mistral': 309, 'n_tokens_neox': 290, 'n_words': 112}