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>
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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments