From eeaf4c4fa07be20af55aec3c78859adbae48ffe8 Mon Sep 17 00:00:00 2001 From: meanmail Date: Tue, 24 Sep 2024 15:41:46 +0200 Subject: [PATCH] Add directory flags for running linters in build script Updated the build script to include the '-d' flags when running Python and Java linters. This ensures the correct directory context is applied for each language linter, improving the accuracy of lint checks. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 87dbf451..4b5f788b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,12 +80,12 @@ jobs: - name: Check installed module can run python linters run: | cd /review - /hyperstyle/bin/python -m hyperstyle.src.python.review.run_tool test/resources/inspectors/python/case39_no_issues.py + /hyperstyle/bin/python -m hyperstyle.src.python.review.run_tool -d=ij_python test/resources/inspectors/python/case39_no_issues.py - name: Check installed module can run java linters run: | cd /review - /hyperstyle/bin/python -m hyperstyle.src.python.review.run_tool test/resources/inspectors/java/test_algorithm_with_scanner.java + /hyperstyle/bin/python -m hyperstyle.src.python.review.run_tool -d=ij_java test/resources/inspectors/java/test_algorithm_with_scanner.java - name: Check installed module can run js linters run: |