Skip to content

Commit 4f741e6

Browse files
committed
VED-79: Resolve sonar issues
1 parent 26fdc42 commit 4f741e6

File tree

5 files changed

+2
-16
lines changed

5 files changed

+2
-16
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
run: |
113113
poetry install
114114
poetry run coverage run -m unittest discover || echo "mns_subscription tests failed" >> ../failed_tests.txt
115+
poetry run coverage report -m
115116
poetry run coverage xml -o ../mns_subscription-coverage.xml
116117
117118
- name: Run unittest with redis_sync

azure/azure-pr-pipeline.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ extends:
4040
- template: ./templates/post-deploy.yml
4141
parameters:
4242
aws_account_type: 'dev'
43-
- script: |
44-
echo "Creating MNS subscription..."
45-
python3 backend/src/mns/subscribe.py
46-
displayName: "Subscribe SQS to MNS signal"
4743
- environment: internal-dev-sandbox
4844
proxy_path: sandbox
4945
jinja_templates:

azure/templates/post-deploy.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ steps:
7777
displayName: Apply Terraform
7878
workingDirectory: "$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)"
7979
retryCountOnTaskFailure: 2
80-
- bash: |
81-
echo "Creating MNS subscription..."
82-
python3 mns_subscription/src/subscribe_mns.py
83-
displayName: "Subscribe SQS to MNS signal"
8480
8581
- bash: |
8682
set -ex

mns_subscription/pyproject.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
[project]
2-
name = "mns-subscription"
3-
version = "0.1.0"
4-
description = "subscription to nhs number change event"
5-
6-
71
[tool.poetry]
82
name = "mns-subscription"
93
version = "0.1.0"
104
description = ""
115
authors = ["Your Name <[email protected]>"]
12-
license = "MIT"
136
packages = [{include = "src"}]
147

158
[tool.poetry.dependencies]

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sonar.host.url=https://sonarcloud.io
55
sonar.python.version=3.11
66
sonar.exclusions=**/e2e/**,**/e2e_batch/**,**/temporary_sandbox/**,**/devtools/**,**/proxies/**,**/scripts/**,**/terraform/**,**/tests/**,redis_sync/src/log_decorator.py
77
sonar.python.coverage.reportPaths=backend-coverage.xml,delta-coverage.xml,ack-lambda-coverage.xml,filenameprocessor-coverage.xml,recordforwarder-coverage.xml,recordprocessor-coverage.xml,mesh_processor-coverage.xml,redis_sync-coverage.xml,mns_subscription-coverage.xml
8-
sonar.cpd.exclusions=**/cache.py,**/authentication.py,**/test_cache.py,**/test_authentication.py
8+
sonar.cpd.exclusions=**/cache.py,**/authentication.py,**/test_cache.py,**/test_authentication.py,**/mns_service.py,**/errors.py
99
sonar.issue.ignore.multicriteria=exclude_snomed_urls,exclude_hl7_urls
1010
sonar.issue.ignore.multicriteria.exclude_snomed_urls.ruleKey=python:S5332
1111
sonar.issue.ignore.multicriteria.exclude_snomed_urls.resourceKey=**http://snomed\.info/sct**

0 commit comments

Comments
 (0)