From 7bcffcb96c28e1ea86c039b8cddc43d4db651ee9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Dec 2025 03:49:20 +0000 Subject: [PATCH] Fix linting jobs to properly fail on errors Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d7de4c..9298f24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: # Run clang-format in check mode (dry-run) find backend frontends/qt6 frontends/cli -name "*.cpp" -o -name "*.h" -o -name "*.hpp" | \ xargs clang-format --dry-run --Werror || \ - (echo "C++ code formatting issues found. Run 'clang-format -i' on the files." && exit 0) + (echo "❌ C++ code formatting issues found. Run 'clang-format -i' on the files." && exit 1) else echo "No C++ files found to check." fi @@ -58,7 +58,7 @@ jobs: working-directory: frontends/nextjs run: | # Run TypeScript compiler check - bun run tsc --noEmit || echo "TypeScript check completed with warnings" + bun run tsc --noEmit lint-python: name: Lint Python Code @@ -79,7 +79,7 @@ jobs: # Check if there are any Python files if find scripts -name "*.py" | grep -q .; then echo "Linting Python code..." - ruff check scripts/ || echo "Linting completed with warnings" + ruff check scripts/ else echo "No Python files found to lint." fi