<commit_before>#! /bin/bash
LOGS_BASE=$(grep -rnw './ignite-base/App' -e '\s console.log' | wc -l)
echo 'Warning: console.log() count in ignite-base:' $LOGS_BASE

# Template code should mirror active base project
# Except in the known instances where names differ
# This rule enforces that tempaltes are kept up to date!
ONE_LINE_DIFFERENT=4
# index.android.js
DIFF_COUNT=$(diff ./ignite-base/index.android.js ./ignite-base/index.js.template | wc -l | grep $ONE_LINE_DIFFERENT)
if [[ $DIFF_COUNT -ne ONE_LINE_DIFFERENT ]]; then
  echo 'Base index.android.js does not match index.js.template'
  exit 1
fi
# index.ios.js
DIFF_COUNT=$(diff ./ignite-base/index.ios.js ./ignite-base/index.js.template | wc -l | grep $ONE_LINE_DIFFERENT)
if [[ $DIFF_COUNT -ne ONE_LINE_DIFFERENT ]]; then
  echo 'Base index.ios.js does not match index.js.template'
  exit 1
fi
# package.json
DIFF_COUNT=$(diff ./ignite-base/package.json ./ignite-base/package.json.template | wc -l | grep $ONE_LINE_DIFFERENT)
if [[ $DIFF_COUNT -ne ONE_LINE_DIFFERENT ]]; then
  echo 'Base package.json does not match package.json.template'
  exit 1
fi

# latest
npm i -g babel-eslint
npm i -g standard

# Check cli for compliance
standard ./ignite-cli/src/**.*
# Check generator for compliance
standard ./ignite-generator/src/**.*
# Check base app for standard compliance
cd ./ignite-base && standard ./App/**.*<commit_msg>update firedrill to run tests<commit_after>#! /bin/bash
LOGS_BASE=$(grep -rnw './ignite-base/App' -e '\s console.log' | wc -l)

if [[ $LOGS_BASE -gt 0 ]]; then
  echo 'Warning: console.log() count in ignite-base:' $LOGS_BASE
fi

# Template code should mirror active base project
# Except in the known instances where names differ
# This rule enforces that tempaltes are kept up to date!
ONE_LINE_DIFFERENT=4
# index.android.js
DIFF_COUNT=$(diff ./ignite-base/index.android.js ./ignite-base/index.js.template | wc -l | grep $ONE_LINE_DIFFERENT)
if [[ $DIFF_COUNT -ne ONE_LINE_DIFFERENT ]]; then
  echo 'Base index.android.js does not match index.js.template'
  exit 1
fi
# index.ios.js
DIFF_COUNT=$(diff ./ignite-base/index.ios.js ./ignite-base/index.js.template | wc -l | grep $ONE_LINE_DIFFERENT)
if [[ $DIFF_COUNT -ne ONE_LINE_DIFFERENT ]]; then
  echo 'Base index.ios.js does not match index.js.template'
  exit 1
fi
# package.json
DIFF_COUNT=$(diff ./ignite-base/package.json ./ignite-base/package.json.template | wc -l | grep $ONE_LINE_DIFFERENT)
if [[ $DIFF_COUNT -ne ONE_LINE_DIFFERENT ]]; then
  echo 'Base package.json does not match package.json.template'
  exit 1
fi

# latest
npm i -g babel-eslint
npm i -g standard

# Check cli for compliance
standard ./ignite-cli/src/**.*
# Check generator for compliance
standard ./ignite-generator/src/**.*

# Run checks specific to ignite-base
cd ./ignite-base
# Check base app for standard compliance
standard ./App/**.*
# Run tests on base app
ava
{'fraction_non_alphanumeric': 0.12833853624696498, 'fraction_numerical': 0.003121748178980229, 'mean_word_length': 3.998266897746967, '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': '3981079', 'n_tokens_mistral': 1018, 'n_tokens_neox': 995, 'n_words': 306}