feat: format diagnostic (#895)
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
{%- if use_xml_format -%}
|
||||
{%- if diagnostics -%}
|
||||
<diagnostic_field_description>
|
||||
lnum: The starting line of the diagnostic (1-indexed)
|
||||
end_lnum: The final line of the diagnostic (1-indexed)
|
||||
col: The starting column of the diagnostic (1-indexed)
|
||||
end_col: The final column of the diagnostic (1-indexed)
|
||||
content: The diagnostic content
|
||||
start_line: The starting line of the diagnostic (1-indexed)
|
||||
end_line: The final line of the diagnostic (1-indexed)
|
||||
severity: The severity of the diagnostic
|
||||
message: The diagnostic text
|
||||
source: The source of the diagnostic
|
||||
</diagnostic_field_description>
|
||||
<diagnostics>
|
||||
@@ -16,12 +14,10 @@ source: The source of the diagnostic
|
||||
{%- else -%}
|
||||
{%- if diagnostics -%}
|
||||
DIAGNOSTIC_FIELD_DESCRIPTION:
|
||||
lnum: The starting line of the diagnostic (1-indexed)
|
||||
end_lnum: The final line of the diagnostic (1-indexed)
|
||||
col: The starting column of the diagnostic (1-indexed)
|
||||
end_col: The final column of the diagnostic (1-indexed)
|
||||
content: The diagnostic content
|
||||
start_line: The starting line of the diagnostic (1-indexed)
|
||||
end_line: The final line of the diagnostic (1-indexed)
|
||||
severity: The severity of the diagnostic
|
||||
message: The diagnostic text
|
||||
source: The source of the diagnostic
|
||||
|
||||
DIAGNOSTICS:
|
||||
|
||||
Reference in New Issue
Block a user