diff --git a/.github/oxid-esales/defaults/defaults.yaml b/.github/oxid-esales/defaults/defaults.yaml index 79ed3e25..0cac1f25 100644 --- a/.github/oxid-esales/defaults/defaults.yaml +++ b/.github/oxid-esales/defaults/defaults.yaml @@ -594,9 +594,9 @@ sonarcloud: project_name: 'oxideshop_ce' # Parameters passed to the scanner parameters: | - -Dsonar.language=php - -Dsonar.scm.provider=git - -Dsonar.sources=source + -Dsonar.language=php \ + -Dsonar.scm.provider=git \ + -Dsonar.sources=source \ -Dsonar.tests=tests # DEPRECATED: (we use a separate config for this now) for the internal run, leave the project key empty if you don't have a need @@ -604,9 +604,9 @@ sonarcloud: internal_project_key: 'OXID-eSales_oxideshop_ce_internal' internal_project_name: 'oxideshop_ce_internal' internal_parameters: | - -Dsonar.language=php - -Dsonar.scm.provider=git - -Dsonar.sources=source/Internal + -Dsonar.language=php \ + -Dsonar.scm.provider=git \ + -Dsonar.sources=source/Internal \ -Dsonar.tests=tests # See docs/actions/start_shop.md and docs/actions/phpcs.md for more information. diff --git a/.github/oxid-esales/defaults/defaults.yml b/.github/oxid-esales/defaults/defaults.yml index 79ed3e25..0cac1f25 100644 --- a/.github/oxid-esales/defaults/defaults.yml +++ b/.github/oxid-esales/defaults/defaults.yml @@ -594,9 +594,9 @@ sonarcloud: project_name: 'oxideshop_ce' # Parameters passed to the scanner parameters: | - -Dsonar.language=php - -Dsonar.scm.provider=git - -Dsonar.sources=source + -Dsonar.language=php \ + -Dsonar.scm.provider=git \ + -Dsonar.sources=source \ -Dsonar.tests=tests # DEPRECATED: (we use a separate config for this now) for the internal run, leave the project key empty if you don't have a need @@ -604,9 +604,9 @@ sonarcloud: internal_project_key: 'OXID-eSales_oxideshop_ce_internal' internal_project_name: 'oxideshop_ce_internal' internal_parameters: | - -Dsonar.language=php - -Dsonar.scm.provider=git - -Dsonar.sources=source/Internal + -Dsonar.language=php \ + -Dsonar.scm.provider=git \ + -Dsonar.sources=source/Internal \ -Dsonar.tests=tests # See docs/actions/start_shop.md and docs/actions/phpcs.md for more information. diff --git a/.github/oxid-esales/defaults/defaults_light.yaml b/.github/oxid-esales/defaults/defaults_light.yaml index f1425f89..1ded7ba6 100644 --- a/.github/oxid-esales/defaults/defaults_light.yaml +++ b/.github/oxid-esales/defaults/defaults_light.yaml @@ -393,9 +393,9 @@ sonarcloud: project_name: 'oxideshop_ce' # Parameters passed to the scanner parameters: | - -Dsonar.language=php - -Dsonar.scm.provider=git - -Dsonar.sources=source + -Dsonar.language=php \ + -Dsonar.scm.provider=git \ + -Dsonar.sources=source \ -Dsonar.tests=tests # yamllint validates the github actions/testplan yaml files diff --git a/.github/oxid-esales/defaults/defaults_light.yml b/.github/oxid-esales/defaults/defaults_light.yml index f1425f89..1ded7ba6 100644 --- a/.github/oxid-esales/defaults/defaults_light.yml +++ b/.github/oxid-esales/defaults/defaults_light.yml @@ -393,9 +393,9 @@ sonarcloud: project_name: 'oxideshop_ce' # Parameters passed to the scanner parameters: | - -Dsonar.language=php - -Dsonar.scm.provider=git - -Dsonar.sources=source + -Dsonar.language=php \ + -Dsonar.scm.provider=git \ + -Dsonar.sources=source \ -Dsonar.tests=tests # yamllint validates the github actions/testplan yaml files diff --git a/.github/oxid-esales/defaults/module.yaml b/.github/oxid-esales/defaults/module.yaml index a0f2f7a6..b8d0e643 100644 --- a/.github/oxid-esales/defaults/module.yaml +++ b/.github/oxid-esales/defaults/module.yaml @@ -37,9 +37,9 @@ runslim: sonarcloud: strip_path: '/var/www/vendor/{{ .Data.global.org}}/{{ .Data.global.name }}/' parameters: | - -Dsonar.language=php - -Dsonar.scm.provider=git - -Dsonar.sources=src + -Dsonar.language=php \ + -Dsonar.scm.provider=git \ + -Dsonar.sources=src \ -Dsonar.tests=tests finish: diff --git a/.github/oxid-esales/defaults/module.yml b/.github/oxid-esales/defaults/module.yml index a0f2f7a6..b8d0e643 100644 --- a/.github/oxid-esales/defaults/module.yml +++ b/.github/oxid-esales/defaults/module.yml @@ -37,9 +37,9 @@ runslim: sonarcloud: strip_path: '/var/www/vendor/{{ .Data.global.org}}/{{ .Data.global.name }}/' parameters: | - -Dsonar.language=php - -Dsonar.scm.provider=git - -Dsonar.sources=src + -Dsonar.language=php \ + -Dsonar.scm.provider=git \ + -Dsonar.sources=src \ -Dsonar.tests=tests finish: diff --git a/docs/actions/sonarcloud.md b/docs/actions/sonarcloud.md index 4530c766..164e45a9 100644 --- a/docs/actions/sonarcloud.md +++ b/docs/actions/sonarcloud.md @@ -33,12 +33,12 @@ Project key in sonarcloud. Project name in sonarcloud. **sonarcloud_parameters:** *not required*, *default:* - - -Dsonar.language=php - - -Dsonar.sources=source - - -Dsonar.tests=tests - - -Dsonar.sourceEncoding=UTF-8 - - -Dsonar.php.coverage.reportPaths=tests/coverage.xml - - -Dsonar.cpd.php.minimumTokens=25 + - -Dsonar.language=php \ + - -Dsonar.sources=source \ + - -Dsonar.tests=tests \ + - -Dsonar.sourceEncoding=UTF-8 \ + - -Dsonar.php.coverage.reportPaths=tests/coverage.xml \ + - -Dsonar.cpd.php.minimumTokens=25 \ - -Dsonar.cpd.php.minimumLines=5 Parameters passed to the scanner. diff --git a/sonarcloud/action.yaml b/sonarcloud/action.yaml index e3cd2a0b..b4d5c0a9 100644 --- a/sonarcloud/action.yaml +++ b/sonarcloud/action.yaml @@ -40,10 +40,10 @@ inputs: required: false description: 'Parameters passed to the scanner' default: | - -Dsonar.language=php - -Dsonar.sources=source - -Dsonar.tests=tests - -Dsonar.cpd.php.minimumTokens=25 + -Dsonar.language=php \ + -Dsonar.sources=source \ + -Dsonar.tests=tests \ + -Dsonar.cpd.php.minimumTokens=25 \ -Dsonar.cpd.php.minimumLines=5 sonar_token: type: string