Skip to content

Commit

Permalink
Update ignore SonarQube
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamara committed Dec 9, 2024
1 parent 5e4908d commit 01f4e30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
l: '{{ adyenFrontendData.ratepay.location }}'
};
</script>
{#
NOSONAR: This block is excluded from Sonar analysis because the script is provided by
Device Fingerprinting method.
#}
<script type="text/javascript" src="https://d.ratepay.com/{{adyenFrontendData.ratepay.snippetId}}/di.js"></script>
{# This block is excluded from Sonar analysis because the script is provided by Device Fingerprinting method. #}
<script type="text/javascript" src="https://d.ratepay.com/{{adyenFrontendData.ratepay.snippetId}}/di.js">{# //NOSONAR #}</script>
{% endif %}
4 changes: 2 additions & 2 deletions src/Util/RatePayDeviceFingerprintParamsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public function getToken(): string
if (!$this->requestStack->getSession()->get(self::TOKEN_SESSION_KEY)) {
$this->requestStack->getSession()->set(
self::TOKEN_SESSION_KEY,
//NOSONAR This is excluded from Sonar analysis because md5 is used to generate a unique token.
md5($this->requestStack->getSession()->get('sessionId') . '_' . microtime())
// This is excluded from Sonar analysis because md5 is used to generate a unique token.
md5($this->requestStack->getSession()->get('sessionId') . '_' . microtime())//NOSONAR
);
}

Expand Down

0 comments on commit 01f4e30

Please sign in to comment.