<commit_before>make: lint complexity cover

test:
	@./node_modules/.bin/mocha --reporter spec --check-leaks -u exports spec/*.spec*.js

watch:
	@./node_modules/.bin/mocha --reporter min --check-leaks --watch spec/*.spec*.js

lint:
	# Lint (passes when empty):
	@./node_modules/.bin/jshint index.js spec/*.spec*.js
	@./node_modules/.bin/jscs ./index.js --reporter=inline
	

complexity:
	# Complexity (passes when empty):
	@./node_modules/.bin/cr -l --maxcyc 15 --format minimal --silent index.js

cover:
	# Cover (and test):
	@./node_modules/.bin/istanbul cover --report html ./node_modules/.bin/_mocha -- -- --reporter min --check-leaks -u exports spec/*.spec*.js<commit_msg>Added spec files to Makefile, to be tested by JSCodeStyleChecker<commit_after>make: lint complexity cover

test:
	@./node_modules/.bin/mocha --reporter spec --check-leaks -u exports spec/*.spec*.js

watch:
	@./node_modules/.bin/mocha --reporter min --check-leaks --watch spec/*.spec*.js

lint:
	# Lint (passes when empty):
	@./node_modules/.bin/jshint index.js spec/*.spec*.js
	@./node_modules/.bin/jscs index.js spec/*.spec*.js --reporter=inline
	

complexity:
	# Complexity (passes when empty):
	@./node_modules/.bin/cr -l --maxcyc 15 --format minimal --silent index.js

cover:
	# Cover (and test):
	@./node_modules/.bin/istanbul cover --report html ./node_modules/.bin/_mocha -- -- --reporter min --check-leaks -u exports spec/*.spec*.js
{'fraction_non_alphanumeric': 0.17526501766784452, 'fraction_numerical': 0.0028268551236749115, 'mean_word_length': 3.164705882352941, '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': '3324290', 'n_tokens_mistral': 514, 'n_tokens_neox': 501, 'n_words': 125}