Hi all,
I wanted to use Mypy report in my sonarcloud, after i configure Mypy i can’t see sonarcloud show the report of Mypy.
My setup as below:
azure-pipelines.yml
$ mypy --strict --linecoverage-report=coverage-reports .
shopping_cart.py:11: error: Function is missing a return type annotation [no-untyped-def]
shopping_cart.py:25: error: Function is missing a type annotation [no-untyped-def]
request_web.py:10: error: Function is missing a return type annotation [no-untyped-def]
request_web.py:19: error: Call to untyped function "url_google" in typed context [no-untyped-call]
Found 4 errors in 2 files (checked 4 source files)
mypy.ini
[mypy]
exclude = (?x)(^test_*)
sonar-project.properties
sonar.python.mypy.reportPaths=coverage-reports/coverage.json
Sonarcloud - External Analyzers
But above error that i got after generating mypy
, it didn’t show in Sonarcloud,
Kindly assit.