| Total Complexity | 1 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 0 | ||
| 1 | # Copyright 2022, Red Hat, Inc. |
||
| 2 | # SPDX-License-Identifier: LGPL-2.1-or-later |
||
| 3 | 1 | from dataclasses import asdict, dataclass |
|
| 4 | |||
| 5 | |||
| 6 | 1 | @dataclass |
|
| 7 | 1 | class RuleWarning: |
|
| 8 | 1 | text: str |
|
| 9 | 1 | category: str = "" |
|
| 10 | |||
| 11 | 1 | def as_dict(self): |
|
| 12 | return asdict(self) |
||
| 13 |