Skip to content

Commit

Permalink
sonarqube test
Browse files Browse the repository at this point in the history
  • Loading branch information
rostilos committed May 27, 2024
1 parent e4f1921 commit d54c5c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- sonarqube


jobs:
build:
name: Build and analyze
Expand All @@ -20,9 +19,9 @@ jobs:

- name: Set up SonarQube scanner
run: |
wget -qO- https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip > sonar-scanner.zip
wget -qO- https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-5.0.1.3006-linux.zip > sonar-scanner.zip
unzip sonar-scanner.zip -d /opt/
export PATH=/opt/sonar-scanner-4.6.2.2472-linux/bin:$PATH
export PATH=/opt/sonar-scanner-5.0.1.3006-linux/bin:$PATH
- uses: jitterbit/get-changed-files@v1
id: diff
Expand All @@ -38,7 +37,7 @@ jobs:
if [ -z "${{ steps.diff.outputs.modified }}" ]; then
echo "No modified files to analyze"
else
/opt/sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner \
/opt/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner \
-Dsonar.projectKey=magento2test \
-Dsonar.sources=. \
-Dsonar.inclusions=${{ steps.diff.outputs.modified }}
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Developer/Console/Command/DiInfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ class DiInfoCommand extends Command
/**
* Command name
*/
const COMMAND_NAME = 'dev:di:info'
const COMMAND_NAME = 'dev:di:info';

/**
* input name
*/
const CLASS_NAME = 'class';
const CLASS_NAME = 'class'

/**
* @var Information
Expand Down

0 comments on commit d54c5c3

Please sign in to comment.