|
25 | 25 | from pysonar_scanner.configuration.configuration_loader import CliConfigurationLoader |
26 | 26 | from pysonar_scanner.configuration.properties import ( |
27 | 27 | SONAR_HOST_URL, |
| 28 | + SONAR_PYTHON_BANDIT_REPORT_PATHS, |
| 29 | + SONAR_PYTHON_FLAKE8_REPORT_PATHS, |
| 30 | + SONAR_PYTHON_MYPY_REPORT_PATHS, |
| 31 | + SONAR_PYTHON_RUFF_REPORT_PATHS, |
28 | 32 | SONAR_REGION, |
29 | 33 | SONAR_SCANNER_API_BASE_URL, |
30 | 34 | SONAR_SCANNER_ARCH, |
|
151 | 155 | SONAR_PYTHON_SKIP_UNCHANGED: True, |
152 | 156 | SONAR_PYTHON_XUNIT_REPORT_PATH: "path/to/xunit/report", |
153 | 157 | SONAR_PYTHON_XUNIT_SKIP_DETAILS: True, |
| 158 | + SONAR_PYTHON_MYPY_REPORT_PATHS: "path/to/mypy/reports", |
| 159 | + SONAR_PYTHON_BANDIT_REPORT_PATHS: "path/to/bandit/reports", |
| 160 | + SONAR_PYTHON_FLAKE8_REPORT_PATHS: "path/to/flake8/reports", |
| 161 | + SONAR_PYTHON_RUFF_REPORT_PATHS: "path/to/ruff/reports", |
154 | 162 | SONAR_MODULES: "module1,module2", |
155 | 163 | } |
156 | 164 |
|
@@ -328,6 +336,14 @@ def test_impossible_os_choice(self): |
328 | 336 | "--sonar-python-xunit-report-path", |
329 | 337 | "path/to/xunit/report", |
330 | 338 | "--sonar-python-xunit-skip-details", |
| 339 | + "--sonar-python-mypy-report-paths", |
| 340 | + "path/to/mypy/reports", |
| 341 | + "--sonar-python-bandit-report-paths", |
| 342 | + "path/to/bandit/reports", |
| 343 | + "--sonar-python-flake8-report-paths", |
| 344 | + "path/to/flake8/reports", |
| 345 | + "--sonar-python-ruff-report-paths", |
| 346 | + "path/to/ruff/reports", |
331 | 347 | "--sonar-modules", |
332 | 348 | "module1,module2", |
333 | 349 | ], |
@@ -401,6 +417,10 @@ def test_all_cli_args(self): |
401 | 417 | "-Dsonar.python.skipUnchanged=true", |
402 | 418 | "-Dsonar.python.xunit.reportPath=path/to/xunit/report", |
403 | 419 | "-Dsonar.python.xunit.skipDetails=true", |
| 420 | + "-Dsonar.python.mypy.reportPaths=path/to/mypy/reports", |
| 421 | + "-Dsonar.python.bandit.reportPaths=path/to/bandit/reports", |
| 422 | + "-Dsonar.python.flake8.reportPaths=path/to/flake8/reports", |
| 423 | + "-Dsonar.python.ruff.reportPaths=path/to/ruff/reports", |
404 | 424 | "-Dsonar.modules=module1,module2", |
405 | 425 | ], |
406 | 426 | ) |
|
0 commit comments