Skip to content

Commit

Permalink
Update SonarTask.php (#1855)
Browse files Browse the repository at this point in the history
* Update SonarTask.php

Updated banner

* Update src/Phing/Task/Ext/Analyzer/Sonar/SonarTask.php

Accepted suggestion

Co-authored-by: Dan Wallis <[email protected]>

---------

Co-authored-by: Dan Wallis <[email protected]>
  • Loading branch information
feamsr00 and fredden authored Sep 5, 2024
1 parent 418821c commit 4d895d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Phing/Task/Ext/Analyzer/Sonar/SonarTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private function validateExecutable()

$isOk = false;
foreach ($output as $line) {
if (preg_match('/Sonar(Qube )?Scanner \d+\\.\d+/', $line) === 1) {
if (preg_match('/Sonar(Qube )?Scanner( CLI)? \d+\\.\d+/', $line) === 1) {
$isOk = true;
break;
}
Expand Down

0 comments on commit 4d895d2

Please sign in to comment.