Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sonarcloud): ignore ul-wrapping of li with //NOSONAR, django does it
SonarCloud was raising a reliability issue on the <li> tag line: > Surround this <li> item tag by a <ul> or <ol> container one. > "<li>" and "<dt>" item tags should be in "<ul>", "<ol>" or "<dl>" > container tags Web:ItemTagNotWithinContainerTagCheck This is a false positive issue as Django's default admin/change_list.html wraps the object-tools-items inside <ul>...</ul> tag, see https://github.com/django/django/blob/4.2.18/django/contrib/admin/templates/admin/change_list.html#L44-L48 "//NOSONAR" is a bit of a blunt object, as it ignores all SonarCloud issues on the given line. Ignoring a specific SonarCloud rule for specific files using `sonar.issue.ignore.multicriteria` would possibly work also, and be more rule specific, although not as line specific. refs KK-1416
- Loading branch information