mirror of
https://github.com/grafana/grafana.git
synced 2025-01-06 14:13:11 -06:00
3c1f27b0e6
* Chore: reduces a lot of variable errors * Chore: reduces variable Editor errors * Chore: reduces variable Picker errors * Chore: reduce error count * Chore: reduces errors for ChangeEvent instead of FormEvent * Chore: reduces errors with CombinedState * Chore: reduces ComponentType errors * Chore: reduce errors in reducers * Chore: reduces misc errors * Chore: reduce AdhocPicker errors * Chore: reduce error limit * Update public/app/features/variables/adhoc/picker/AdHocFilterValue.tsx Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> * Chore: updates after PR comments * Chore: small refactor Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
14 lines
376 B
Bash
Executable File
14 lines
376 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo -e "Collecting code stats (typescript errors & more)"
|
|
|
|
ERROR_COUNT_LIMIT=452
|
|
ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strict true | grep -oP 'Found \K(\d+)')"
|
|
|
|
if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then
|
|
echo -e "Typescript strict errors $ERROR_COUNT exceeded $ERROR_COUNT_LIMIT so failing build"
|
|
exit 1
|
|
fi
|
|
|