HTML annotation for compiled source code
| 49 | |
| 50 | |
| 51 | class Annotation: |
| 52 | """HTML annotation for compiled source code""" |
| 53 | |
| 54 | def __init__(self, message: str, priority: int = 1) -> None: |
| 55 | # Message as HTML that describes an issue and/or how to fix it. |
| 56 | # Multiple messages on a line may be concatenated. |
| 57 | self.message = message |
| 58 | # If multiple annotations are generated for a single line, only report |
| 59 | # the highest-priority ones. Some use cases generate multiple annotations, |
| 60 | # and this can be used to reduce verbosity by hiding the lower-priority |
| 61 | # ones. |
| 62 | self.priority = priority |
| 63 | |
| 64 | |
| 65 | op_hints: Final = { |
no outgoing calls
no test coverage detected
searching dependent graphs…