Arthur She | ce0323a | 2025-04-01 21:12:02 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2022 Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | # Template to produce index.html for the "full" build. |
| 8 | |
| 9 | if [ -n "${TF_CONFIG}" ]; then |
| 10 | build_config="TF-A Config: ${TF_CONFIG}<br />" |
| 11 | fi |
| 12 | |
| 13 | cat <<EOF >index.html |
| 14 | <html> |
| 15 | <body> |
| 16 | <h1>MISRA reports</h1> |
| 17 | |
| 18 | <p> |
| 19 | ${build_config} |
| 20 | CI Build: <a href="${BUILD_URL}">${BUILD_URL}</a> |
| 21 | </p> |
| 22 | |
| 23 | Reports: |
| 24 | <ul> |
| 25 | <li><a href='ECLAIR/full_html/by_service.html#service/first_file&kind{"select":true,"selection":{"hiddenAreaKinds":[],"hiddenSubareaKinds":[],"show":true,"selector":{"enabled":true,"negated":false,"kind":1,"children":[{"enabled":true,"negated":false,"kind":0,"domain":"strictness","inputs":[{"enabled":true,"text":"mandatory"}]},{"enabled":true,"negated":false,"kind":0,"domain":"kind","inputs":[{"enabled":true,"text":"violation"}]}]}}}'>Mandatory rules - violations</a> |
| 26 | <li><a href='ECLAIR/full_html/by_service.html#service/first_file&kind{"select":true,"selection":{"hiddenAreaKinds":[],"hiddenSubareaKinds":[],"show":true,"selector":{"enabled":true,"negated":false,"kind":1,"children":[{"enabled":true,"negated":false,"kind":0,"domain":"strictness","inputs":[{"enabled":true,"text":"mandatory"}]},{"enabled":true,"negated":false,"kind":0,"domain":"kind","inputs":[{"enabled":true,"text":"violation"},{"enabled":true,"text":"caution"}]}]}}}'>Mandatory rules - violations & cautions</a> |
| 27 | <li><a href='ECLAIR/full_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> |
| 28 | <li><a href='ECLAIR/full_html/by_service.html#strictness/service/first_file&strictness'>Report by issue strictness (Mandatory/Required/Advisory) (all)</a> |
| 29 | </ul> |
| 30 | |
| 31 | <ul> |
| 32 | <li><a href="ECLAIR/full_html/index.html">Default ECLAIR report</a> |
| 33 | <li><a href="ECLAIR/full_txt/">Default ECLAIR report (plain text)</a> |
| 34 | </ul> |
| 35 | |
| 36 | <span style="font-size: 75%"> |
| 37 | <p> |
| 38 | ECLAIR terminology cheatsheet: |
| 39 | </p> |
| 40 | <ul> |
| 41 | <li>"violation" is formally proven issue |
| 42 | <li>"caution" is <i>not</i> formally proven issue, may be a false positive |
| 43 | <li>"information" is <i>not an issue</i> (from MISRA rules PoV), just FYI aka "know your codebase better" |
| 44 | </ul> |
| 45 | </span> |
| 46 | |
| 47 | </body> |
| 48 | </html> |
| 49 | EOF |