Skip to content

Commit

Permalink
Develop (#168)
Browse files Browse the repository at this point in the history
* updated codacy scanning workflow with new tests values

* updated codacy setting for branch scanning

* Updated readme, added codacy badge
  • Loading branch information
RafalSalwa committed Apr 19, 2024
1 parent 790e5a3 commit ba2dff7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
engines:
hadolint:
markdownlint:
phpcs:
php_version: 8.2
phpmd:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ github_actions_static_analysis:
phpcs_gh:
vendor/bin/phpcs --standard=config/analysis/phpcs.xml --report=checkstyle | cs2pr

.PHONY: lint test_unit
sonar_static_analysis:
.PHONY: sonar_static_analysis
sonar_static_analysis: lint tests
-vendor/bin/psalm --report=./var/reports/psalm.sonarqube.json --config=config/analysis/psalm.xml
-vendor/bin/phpstan analyse --configuration=config/analysis/phpstan.neon --error-format=json > ./var/reports/phpstan.sonarqube.report.json || true
sonar-scanner -Dsonar.host.url=${SONAR_HOST} -Dsonar.token=${SONAR_TOKEN}
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ External services

Codacy:
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7621ab51388d4f4aa5b0528030eb5f57)](https://app.codacy.com/gh/RafalSalwa/interview-client-php/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/7621ab51388d4f4aa5b0528030eb5f57)](https://app.codacy.com/gh/RafalSalwa/interview-client-php/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)

SonarQube: [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=RafalSalwa_Shop&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=RafalSalwa_Shop)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=RafalSalwa_Shop&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=RafalSalwa_Shop)
Expand Down
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# must be unique in a given SonarQube instance
sonar.projectKey=Shopping-App

sonar.projectKey=RafalSalwa_Shop
sonar.organization=rafalsalwa
# --- optional properties ---
sonar.projectName=Shopping-App
sonar.language=php
Expand Down

0 comments on commit ba2dff7

Please sign in to comment.