<commit_before># Go to the root dir 
Dir.chdir __dir__ # this file 
Dir.chdir ".."    # up one

for each_file in Dir["syntaxes/**.tmLanguage.json"]
    Process.wait(Process.spawn("node", "lint/index.js", each_file))
end<commit_msg>add exit code check to lint<commit_after># Go to the root dir 
Dir.chdir __dir__ # this file 
Dir.chdir ".."    # up one

for each_file in Dir["syntaxes/**.tmLanguage.json"]
    exit_code = Process.wait(Process.spawn("node", "lint/index.js", each_file))
    if exit_code != 0
        exit(exit_code)
    end
end
{'fraction_non_alphanumeric': 0.13837638376383765, 'fraction_numerical': 0.0018450184501845018, 'mean_word_length': 3.6016949152542375, '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': '7100786', 'n_tokens_mistral': 199, 'n_tokens_neox': 195, 'n_words': 52}