Skip to content

Commit b4b79bb

Browse files
Manjusha.SManjusha.S
Manjusha.S
authored and
Manjusha.S
committed
ACQE-4111 : Exclude commented lines before pattern matching
1 parent e27e7db commit b4b79bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/StaticCheck/ActionGroupStandardsCheck.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function findErrorsInFileSet($files)
103103
$actionGroupReferencesDataArray = [];
104104
$actionGroupToArguments = [];
105105
$contents = $filePath->getContents();
106-
preg_match_all(self::STEP_KEY_REGEX_PATTERN, $contents, $actionGroupReferences);
106+
preg_match_all(self::STEP_KEY_REGEX_PATTERN, preg_replace('/<!--(.|\s)*?-->/', '', $contents), $actionGroupReferences);
107107
foreach ($actionGroupReferences[0] as $actionGroupReferencesData) {
108108
$actionGroupReferencesDataArray[] = trim(
109109
str_replace(['stepKey', '='], [""], $actionGroupReferencesData)

0 commit comments

Comments
 (0)