Skip to content

Commit f6b78ea

Browse files
ghislainpiotWohops
authored andcommitted
SONARPY-2445 Update rule metadata
1 parent 77268c2 commit f6b78ea

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S6554.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,5 @@ <h4>Compliant solution</h4>
2626
</pre>
2727
<h2>Resources</h2>
2828
<h3>Documentation</h3>
29-
<p><a
30-
href="https://docs.djangoproject.com/en/4.1/ref/models/instances/#django.db.models.Model">https://docs.djangoproject.com/en/4.1/ref/models/instances/#django.db.models.Model</a>.<em>str</em>[Django
31-
Model.<em>str</em>()]</p>
29+
<p><a href="https://docs.djangoproject.com/en/4.1/ref/models/instances/#django.db.models.Model.<em>str</em>">Django Model.<em>str</em>()</a></p>
3230

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S6662.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ <h4>Compliant solution</h4>
3131
<h2>Resources</h2>
3232
<h3>Documentation</h3>
3333
<ul>
34-
<li> Python Documentation - <a
35-
href="https://docs.python.org/3/reference/datamodel.html#object">https://docs.python.org/3/reference/datamodel.html#object</a>.<em>hash</em>[object.<em>hash</em>] </li>
34+
<li> Python Documentation - <a href="https://docs.python.org/3/reference/datamodel.html#object.<em>hash</em>">object.<em>hash</em></a> </li>
3635
<li> Python Documentation - <a href="https://docs.python.org/3/library/functions.html#hash">the hash built-in function</a> </li>
3736
</ul>
3837

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S6663.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ <h4>Compliant solution</h4>
3434
</pre>
3535
<h2>Resources</h2>
3636
<h3>Documentation</h3>
37-
<p>Python Documentation - <a
38-
href="https://docs.python.org/3/library/operator.html#operator">https://docs.python.org/3/library/operator.html#operator</a>.<em>index</em>[<em>index</em>
39-
method]</p>
37+
<p>Python Documentation - <a href="https://docs.python.org/3/library/operator.html#operator.<em>index</em>"><em>index</em> method</a></p>
4038

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S6984.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<p>This rule raises an issue when an incorrect pattern is provided to an <code>einops</code> operation.</p>
22
<h2>Why is this an issue?</h2>
33
<p>The <code>einops</code> library provides a powerful and flexible way to manipulate tensors using the Einstein summation convention. The
4-
<code>einops</code> uses a different convention than the <a href="https://rockt.github.io/2018/04/30/einsum">traditional</a> one. In particular, the
5-
axis names can be more than one letter long and are separated by spaces.</p>
4+
<code>einops</code> uses a different convention than the <a href="https://ejenner.com/post/einsum/">traditional</a> one. In particular, the axis names
5+
can be more than one letter long and are separated by spaces.</p>
66
<h2>How to fix it</h2>
77
<p>Correct the syntax of the <code>einops</code> operation by balancing the parentheses and following the convention.</p>
88
<h3>Code examples</h3>

sonarpedia.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"languages": [
44
"PY"
55
],
6-
"latest-update": "2024-12-09T16:18:13.818106Z",
6+
"latest-update": "2024-12-18T08:52:22.754053003Z",
77
"options": {
88
"no-language-in-filenames": true,
99
"preserve-filenames": true

0 commit comments

Comments
 (0)