<commit_before>SHELL := /bin/bash
test: bashate perlcheck rubycheck pythoncheck rounduptest flake8 python_unittest jjb_test

bashate:
	cd scripts && \
	for f in \
	    *.sh mkcloud mkchroot repochecker \
	    jenkins/{update_automation,*.sh} \
	    ../hostscripts/ci1/* ../mkcloudruns/*/[^R]*;\
	do \
	    echo "checking $$f"; \
	    bash -n $$f || exit 3; \
	    bashate --ignore E006,E010,E011,E020,E042 $$f || exit 4; \
	    ! grep $$'\t' $$f || exit 5; \
	done

perlcheck:
	cd scripts && \
	for f in `find -name \*.pl` jenkins/{apicheck,grep,japi}; \
	do \
	    perl -wc $$f || exit 2; \<commit_msg>tests: check for evil tab characters<commit_after>SHELL := /bin/bash
test: filecheck bashate perlcheck rubycheck pythoncheck rounduptest flake8 python_unittest jjb_test

filecheck:
	! git ls-tree -r HEAD --name-only | grep -v Makefile | xargs grep $$'\t'

bashate:
	cd scripts && \
	for f in \
	    *.sh mkcloud mkchroot repochecker \
	    jenkins/{update_automation,*.sh} \
	    ../hostscripts/ci1/* ../mkcloudruns/*/[^R]*;\
	do \
	    echo "checking $$f"; \
	    bash -n $$f || exit 3; \
	    bashate --ignore E006,E010,E011,E020,E042 $$f || exit 4; \
	    ! grep $$'\t' $$f || exit 5; \
	done

perlcheck:
	cd scripts && \
	for f in `find -name \*.pl` jenkins/{apicheck,grep,japi}; \
	do \
	    perl -wc $$f || exit 2; \
{'fraction_non_alphanumeric': 0.16905660377358492, 'fraction_numerical': 0.03169811320754717, 'mean_word_length': 2.6130790190735693, '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': '1280523', 'n_tokens_mistral': 584, 'n_tokens_neox': 502, 'n_words': 140}