-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsonar-project.properties
More file actions
68 lines (62 loc) · 3.31 KB
/
Copy pathsonar-project.properties
File metadata and controls
68 lines (62 loc) · 3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
sonar.projectKey=City-of-Helsinki_kultus-api
sonar.organization=city-of-helsinki
sonar.python.version=3.12
sonar.python.coverage.reportPaths=coverage.xml
sonar.exclusions=**/migrations/*,pipelines/**/*
sonar.test.inclusions=**/tests/**/*
# Set up rule ignores (List of comma separated unique values, e.g. "e1,e2,e3"):
sonar.issue.ignore.multicriteria=e1,e2,e3,e4,e5,e6,e7
# Ignore duplicate styles in email templates they can contain such for
# maximizing compatibility with old email clients.
#
# Rule: css:S4656
# Name: "Properties should not be duplicated"
# URL: https://rules.sonarsource.com/css/RSPEC-4656/
sonar.issue.ignore.multicriteria.e1.ruleKey=css:S4656
sonar.issue.ignore.multicriteria.e1.resourceKey=notification_importers/templates/email/*.html
# Ignore deprecated attributes in email templates as they can contain such
# for maximizing compatibility with old email clients.
#
# Rule: Web:S1827
# Name: "Attributes deprecated in HTML5 should not be used"
# URL: https://rules.sonarsource.com/web/RSPEC-1827/
sonar.issue.ignore.multicriteria.e2.ruleKey=Web:S1827
sonar.issue.ignore.multicriteria.e2.resourceKey=notification_importers/templates/email/*.html
# Ignore deprecated elements in email templates as they can contain such
# for maximizing compatibility with old email clients.
#
# NOTE: The rule key that came up in CI pipeline was Web:UnsupportedTagsInHtml5Check
# but the rule key that seemed to match in online documentation is Web:S1083.
# Ignoring both to be sure.
#
# Rule: Web:S1083 / Web:UnsupportedTagsInHtml5Check
# Name: "Elements deprecated in HTML5 should not be used"
# URL: https://rules.sonarsource.com/web/RSPEC-1083/
sonar.issue.ignore.multicriteria.e3.ruleKey=Web:S1083
sonar.issue.ignore.multicriteria.e3.resourceKey=notification_importers/templates/email/*.html
sonar.issue.ignore.multicriteria.e4.ruleKey=Web:UnsupportedTagsInHtml5Check
sonar.issue.ignore.multicriteria.e4.resourceKey=notification_importers/templates/email/*.html
# Ignore table header requirements in email templates as they use
# tables for layout purposes to maximize compatibility with old email clients.
#
# Rule: Web:S5256
# Name: "Tables should have headers"
# URL: https://rules.sonarsource.com/web/RSPEC-5256/
sonar.issue.ignore.multicriteria.e5.ruleKey=Web:S5256
sonar.issue.ignore.multicriteria.e5.resourceKey=notification_importers/templates/email/*.html
# Ignore wrapping of <li> inside <ul> warnings in change list templates as
# they use Django's default admin/change_list.html and object-tools-items block
# which gets wrapped with <ul>, see
# https://github.com/django/django/blob/4.2.18/django/contrib/admin/templates/admin/change_list.html#L44-L48
#
# NOTE: The rule key that came up in CI pipeline was Web:ItemTagNotWithinContainerTagCheck
# but the rule key that seemed to match in online documentation is Web:S1093.
# Ignoring both to be sure.
#
# Rule: Web:ItemTagNotWithinContainerTagCheck / Web:S1093
# Name: ""<li>" and "<dt>" item tags should be in "<ul>", "<ol>" or "<dl>" container tags"
# URL: https://rules.sonarsource.com/web/RSPEC-1093/
sonar.issue.ignore.multicriteria.e6.ruleKey=Web:ItemTagNotWithinContainerTagCheck
sonar.issue.ignore.multicriteria.e6.resourceKey=**/templates/**/*_change*list.html
sonar.issue.ignore.multicriteria.e7.ruleKey=Web:S1093
sonar.issue.ignore.multicriteria.e7.resourceKey=**/templates/**/*_change*list.html