Paul Sokolovsky | 638caf3 | 2023-07-02 13:43:56 +0300 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2023 Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | # Template to produce index.html for the "delta" build. |
| 8 | |
Arthur She | c0b86f5 | 2025-04-03 08:11:23 -0700 | [diff] [blame^] | 9 | DETAIL_REPORT="" |
| 10 | if [ -d "./new_issues_html/by_service" ]; then |
| 11 | DETAIL_REPORT=" <ul> |
| 12 | <li><a href='new_issues_html/by_service.html#strictness/service/first_file&strictness{\"select\":true,\"selection\":{\"hiddenAreaKinds\":[],\"hiddenSubareaKinds\":[],\"show\":true,\"selector\":{\"enabled\":true,\"negated\":false,\"kind\":2,\"children\":[{\"enabled\":true,\"negated\":false,\"kind\":0,\"domain\":\"kind\",\"inputs\":[{\"enabled\":true,\"text\":\"violation\"}]}]}}}'>Report by issue strictness (Mandatory/Required/Advisory) (violations)</a> |
| 13 | <li><a href='new_issues_html/by_service.html#strictness/service/first_file&strictness'>Report by issue strictness (Mandatory/Required/Advisory) (all)</a> |
| 14 | </ul>" |
| 15 | fi |
| 16 | |
Paul Sokolovsky | 638caf3 | 2023-07-02 13:43:56 +0300 | [diff] [blame] | 17 | cat <<EOF >index.html |
| 18 | <html> |
| 19 | <body> |
| 20 | <h1>MISRA Delta reports for the patch</h1> |
| 21 | |
| 22 | <p> |
| 23 | Patch: <a href="${GERRIT_CHANGE_URL}/${GERRIT_PATCHSET_NUMBER}">${GERRIT_CHANGE_URL}/${GERRIT_PATCHSET_NUMBER}</a><br /> |
| 24 | CI Build: <a href="${BUILD_URL}">${BUILD_URL}</a> |
| 25 | </p> |
Arthur She | c0b86f5 | 2025-04-03 08:11:23 -0700 | [diff] [blame^] | 26 | <ul> |
Paul Sokolovsky | 638caf3 | 2023-07-02 13:43:56 +0300 | [diff] [blame] | 27 | <li><a href="misra_delta.txt">Cumulative TXT report</a> |
| 28 | <li><a href="diff_output/">Per MISRA rule TXT reports</a> |
Paul Sokolovsky | 561d717 | 2023-09-02 00:01:02 +0300 | [diff] [blame] | 29 | <li><a href='resolved_issues_html/by_service.html#first_file/service&kind{"select":true,"selection":{"hiddenAreaKinds":[],"hiddenSubareaKinds":[],"show":false,"selector":{"enabled":true,"negated":false,"kind":2,"children":[{"enabled":true,"negated":false,"kind":0,"domain":"kind","inputs":[{"enabled":true,"text":"information"}]},{"enabled":true,"negated":false,"kind":0,"domain":"service","inputs":[{"enabled":true,"text":"MC3R1.R5.9"}]},{"enabled":true,"negated":false,"kind":0,"domain":"service","inputs":[{"enabled":true,"text":"MC3R1.R8.3"}]}]}}}'>Resolved issues, groupped per file changed (HTML).</a> |
Arthur She | c0b86f5 | 2025-04-03 08:11:23 -0700 | [diff] [blame^] | 30 | <li> <a href='new_issues_html/by_service.html#first_file/service&kind{"select":true,"selection":{"hiddenAreaKinds":[],"hiddenSubareaKinds":[],"show":false,"selector":{"enabled":true,"negated":false,"kind":2,"children":[{"enabled":true,"negated":false,"kind":0,"domain":"kind","inputs":[{"enabled":true,"text":"information"}]},{"enabled":true,"negated":false,"kind":0,"domain":"service","inputs":[{"enabled":true,"text":"MC3R1.R5.9"}]},{"enabled":true,"negated":false,"kind":0,"domain":"service","inputs":[{"enabled":true,"text":"MC3R1.R8.3"}]}]}}}'>New issues, groupped per file changed (HTML).</a> |
| 31 | ${DETAIL_REPORT} |
| 32 | </ul> |
Paul Sokolovsky | 638caf3 | 2023-07-02 13:43:56 +0300 | [diff] [blame] | 33 | </body> |
| 34 | </html> |
| 35 | EOF |