/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v0.78.3
scripts/circleci/analyze_code.sh
19 строк
690 B
Riccardo Cipolleschi
Fix analyze_code to use the proper PR number (#46548)
18 сен 2024, 12:57
18 сен 2024, 12:57
6d61899
Код
Авторство
О чём код?
#!/bin/bash # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. GITHUB_OWNER=${CIRCLE_PROJECT_USERNAME:-facebook} GITHUB_REPO=${CIRCLE_PROJECT_REPONAME:-react-native} export GITHUB_OWNER export GITHUB_REPO cat <(echo eslint; npm run lint --silent -- --format=json; echo flow; npm run flow-check --silent --json; echo google-java-format; node scripts/lint-java.js --diff) | node packages/react-native-bots/code-analysis-bot.js STATUS=$? if [ $STATUS == 0 ]; then echo "Code analyzed successfully." else echo "Code analysis failed, error status $STATUS." fi