Skip to content

Commit

Permalink
Try out the full one again
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed May 13, 2024
1 parent f122d76 commit df61619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .teamcity/_self/projects/WebApp.kt
Expand Up @@ -577,13 +577,13 @@ object CheckCodeStyleBranch : BuildType({
FILES_TO_LINT=`git diff --name-only --diff-filter=d refs/remotes/origin/trunk...HEAD | grep -E '\.[jt]sx?'`
# Avoid running more than 10 parallel eslint tasks as it could OOM
if [ "%run_full_eslint%" = "true" ] || [ "${'$'}FILES_TO_LINT" -gt 10 ]; then
if [ "%run_full_eslint%" = "true" ] || [ "${'$'}FILES_TO_LINT" -lt 10 ]; then
echo "Linting all files"
yarn run eslint --format checkstyle --output-file "./checkstyle_results/eslint/results.xml" .
else
# To avoid `ENAMETOOLONG` errors linting files, we have to lint them one by one,
# instead of passing the full list of files to eslint directly.
for file in "${'$'}FILES_TO_LINT"; do
for file in ${'$'}(git diff --name-only --diff-filter=d refs/remotes/origin/trunk...HEAD | grep -E '(\.[jt]sx?)${'$'}' || true); do
( echo "Linting ${'$'}file"
yarn run eslint --format checkstyle --output-file "./checkstyle_results/eslint/${'$'}{file//\//_}.xml" "${'$'}file" ) &
done
Expand Down

0 comments on commit df61619

Please sign in to comment.