AppStream.ValidatorIssue¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.ValidatorIssue(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.ValidatorIssue
.
- get_explanation()¶
- Returns:
the explanation
- Return type:
Get an extended explanation on this issue, or return
None
if none is available.New in version 0.12.8.
- get_filename()¶
- Returns:
the filename
- Return type:
The name of the file this issue was found in.
- get_hint()¶
- Returns:
the hint
- Return type:
Get a short context hint for this issue.
New in version 0.12.8.
- get_line()¶
- Returns:
the line number where this issue occured, or -1 if unknown.
- Return type:
Gets the line number where this issue was found.
- get_location()¶
- Returns:
the location hint as string.
- Return type:
Builds a string containing all information about the location where this issue occured that we know about.
- get_severity()¶
- Returns:
- Return type:
Gets the severity of this issue.
- get_tag()¶
- Returns:
the tag
- Return type:
Gets the issue tag string for this issue.
New in version 0.12.8.
- set_explanation(explanation)¶
- Parameters:
explanation (
str
) – the explanation.
Set explanatory text for this issue.
New in version 0.12.8.
- set_filename(fname)¶
- Parameters:
fname (
str
) – the filename.
Sets the name of the file the issue was found in.
- set_line(line)¶
- Parameters:
line (
int
) – the line number.
Sets the line number where this issue was found.
- set_severity(severity)¶
- Parameters:
severity (
AppStream.IssueSeverity
) – theAppStream.IssueSeverity
.
Sets the severity for this issue.