From 7436e8b75bab6e2a1584e64645f6613150e88638 Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Wed, 23 Feb 2022 02:40:43 -0600 Subject: [PATCH] Add sonarcloud integration --- .gitattributes | 1 + README.md | 28 +++++++++++++++++++++++----- docs/CHANGELOG.md | 1 + sonar-project.properties | 10 ++++++++++ 4 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 sonar-project.properties diff --git a/.gitattributes b/.gitattributes index 2e11b91..fd0da76 100644 --- a/.gitattributes +++ b/.gitattributes @@ -19,3 +19,4 @@ /phpstan.neon.dist export-ignore /phpunit.xml.dist export-ignore /psalm.xml.dist export-ignore +/sonar-project.properties export-ignore diff --git a/README.md b/README.md index fa3da0a..ac06ec9 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,15 @@ # phpcfdi/sat-estado-cfdi-http-psr [![Source Code][badge-source]][source] +[![Packagist PHP Version Support][badge-php-version]][php-version] +[![Discord][badge-discord]][discord] [![Latest Version][badge-release]][release] [![Software License][badge-license]][license] [![Build Status][badge-build]][build] +[![Reliability][badge-reliability]][reliability] +[![Maintainability][badge-maintainability]][maintainability] +[![Code Coverage][badge-coverage]][coverage] +[![Violations][badge-violations]][violations] [![Total Downloads][badge-downloads]][downloads] > Consulta el estado de un CFDI en el webservice del SAT usando HTTP (PSR-17 y PSR-18) @@ -109,13 +115,25 @@ and licensed for use under the MIT License (MIT). Please see [LICENSE][] for mor [todo]: https://github.com/phpcfdi/sat-estado-cfdi-http-psr/blob/main/docs/TODO.md [source]: https://github.com/phpcfdi/sat-estado-cfdi-http-psr +[php-version]: https://packagist.org/packages/phpcfdi/sat-estado-cfdi-http-psr +[discord]: https://discord.gg/aFGYXvX [release]: https://github.com/phpcfdi/sat-estado-cfdi-http-psr/releases [license]: https://github.com/phpcfdi/sat-estado-cfdi-http-psr/blob/main/LICENSE [build]: https://github.com/phpcfdi/sat-estado-cfdi-http-psr/actions/workflows/build.yml?query=branch:main +[reliability]:https://sonarcloud.io/component_measures?id=phpcfdi_sat-estado-cfdi-http-psr&metric=Reliability +[maintainability]: https://sonarcloud.io/component_measures?id=phpcfdi_sat-estado-cfdi-http-psr&metric=Maintainability +[coverage]: https://sonarcloud.io/component_measures?id=phpcfdi_sat-estado-cfdi-http-psr&metric=Coverage +[violations]: https://sonarcloud.io/project/issues?id=phpcfdi_sat-estado-cfdi-http-psr&resolved=false [downloads]: https://packagist.org/packages/phpcfdi/sat-estado-cfdi-http-psr -[badge-source]: https://img.shields.io/badge/source-phpcfdi/sat--estado--cfdi--http--psr-blue?style=flat-square -[badge-release]: https://img.shields.io/github/release/phpcfdi/sat-estado-cfdi-http-psr?style=flat-square -[badge-license]: https://img.shields.io/github/license/phpcfdi/sat-estado-cfdi-http-psr?style=flat-square -[badge-build]: https://img.shields.io/github/workflow/status/phpcfdi/sat-estado-cfdi-http-psr/build/main?style=flat-square -[badge-downloads]: https://img.shields.io/packagist/dt/phpcfdi/sat-estado-cfdi-http-psr?style=flat-square +[badge-source]: https://img.shields.io/badge/source-phpcfdi/sat--estado--cfdi--http--psr-blue?logo=github +[badge-discord]: https://img.shields.io/discord/459860554090283019?logo=discord +[badge-php-version]: https://img.shields.io/packagist/php-v/phpcfdi/sat-estado-cfdi-http-psr?logo=php +[badge-release]: https://img.shields.io/github/release/phpcfdi/sat-estado-cfdi-http-psr?logo=git +[badge-license]: https://img.shields.io/github/license/phpcfdi/sat-estado-cfdi-http-psr?logo=open-source-initiative +[badge-build]: https://img.shields.io/github/workflow/status/phpcfdi/sat-estado-cfdi-http-psr/build/main?logo=github-actions +[badge-reliability]: https://sonarcloud.io/api/project_badges/measure?project=phpcfdi_sat-estado-cfdi-http-psr&metric=reliability_rating +[badge-maintainability]: https://sonarcloud.io/api/project_badges/measure?project=phpcfdi_sat-estado-cfdi-http-psr&metric=sqale_rating +[badge-coverage]: https://img.shields.io/sonar/coverage/phpcfdi_sat-estado-cfdi-http-psr/main?logo=sonarcloud&server=https%3A%2F%2Fsonarcloud.io +[badge-violations]: https://img.shields.io/sonar/violations/phpcfdi_sat-estado-cfdi-http-psr/main?format=long&logo=sonarcloud&server=https%3A%2F%2Fsonarcloud.io +[badge-downloads]: https://img.shields.io/packagist/dt/phpcfdi/sat-estado-cfdi-http-psr?logo=packagist diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 7d3aea9..a2a591d 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -20,6 +20,7 @@ versión, aunque sí su incorporación en la rama principal de trabajo. Generalm - Se actualiza la dependencia de desarrollo `phpcfdi/cfdi-expresiones:^3.0`. - Se deja de utilizar Scrutinizer CI. Gracias Scrutinizer CI. - El flujo de integración continua se cambia de pasos a trabajos. +- Se agrega la integración con *sonarcloud*. ### Version 1.0.2 2021-11-04 diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..a5dc13d --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,10 @@ +sonar.organization=phpcfdi +sonar.projectKey=phpcfdi_sat-estado-cfdi-http-psr +sonar.sourceEncoding=UTF-8 +sonar.language=php +sonar.sources=src +sonar.tests=tests +sonar.exclusions=vendor/,tools/,build/,tests/_files/ +sonar.working.directory=build/.scannerwork +sonar.php.tests.reportPath=build/sonar-junit.xml +sonar.php.coverage.reportPaths=build/sonar-coverage.xml