Skip to content

Commit

Permalink
Concatenate sonarcloud additional parameters to be one command string
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Dec 10, 2024
1 parent 6a55aa2 commit 887084c
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 34 deletions.
12 changes: 6 additions & 6 deletions .github/oxid-esales/defaults/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -594,19 +594,19 @@ 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
# for this second run with different settings
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.
Expand Down
12 changes: 6 additions & 6 deletions .github/oxid-esales/defaults/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -594,19 +594,19 @@ 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
# for this second run with different settings
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.
Expand Down
6 changes: 3 additions & 3 deletions .github/oxid-esales/defaults/defaults_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/oxid-esales/defaults/defaults_light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/oxid-esales/defaults/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/oxid-esales/defaults/module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions docs/actions/sonarcloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
8 changes: 4 additions & 4 deletions sonarcloud/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 887084c

Please sign in to comment.