File tree Expand file tree Collapse file tree 5 files changed +6
-11
lines changed
python-checks/src/main/resources/org/sonar/l10n/py/rules/python Expand file tree Collapse file tree 5 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,5 @@ <h4>Compliant solution</h4>
26
26
</ pre >
27
27
< h2 > Resources</ h2 >
28
28
< 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 >
32
30
Original file line number Diff line number Diff line change @@ -31,8 +31,7 @@ <h4>Compliant solution</h4>
31
31
< h2 > Resources</ h2 >
32
32
< h3 > Documentation</ h3 >
33
33
< 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 >
36
35
< li > Python Documentation - < a href ="https://docs.python.org/3/library/functions.html#hash "> the hash built-in function</ a > </ li >
37
36
</ ul >
38
37
Original file line number Diff line number Diff line change @@ -34,7 +34,5 @@ <h4>Compliant solution</h4>
34
34
</ pre >
35
35
< h2 > Resources</ h2 >
36
36
< 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 >
40
38
Original file line number Diff line number Diff line change 1
1
< p > This rule raises an issue when an incorrect pattern is provided to an < code > einops</ code > operation.</ p >
2
2
< h2 > Why is this an issue?</ h2 >
3
3
< 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 >
6
6
< h2 > How to fix it</ h2 >
7
7
< p > Correct the syntax of the < code > einops</ code > operation by balancing the parentheses and following the convention.</ p >
8
8
< h3 > Code examples</ h3 >
Original file line number Diff line number Diff line change 3
3
"languages" : [
4
4
" PY"
5
5
],
6
- "latest-update" : " 2024-12-09T16:18:13.818106Z " ,
6
+ "latest-update" : " 2024-12-18T08:52:22.754053003Z " ,
7
7
"options" : {
8
8
"no-language-in-filenames" : true ,
9
9
"preserve-filenames" : true
You can’t perform that action at this time.
0 commit comments