From ef76937bb7b7fba98bf14e3084f979bf3659d760 Mon Sep 17 00:00:00 2001 From: Hong Jiarong Date: Mon, 8 Dec 2025 20:19:42 +0800 Subject: [PATCH] update tests' snaps --- .../snaps/dead_code@array_dict_usage.typ.snap | 7 ++-- .../snaps/dead_code@closure_capture.typ.snap | 7 ++-- .../dead_code@conditional_usage.typ.snap | 7 ++-- .../snaps/dead_code@contextual_usage.typ.snap | 7 ++-- .../dead_code@destructuring_array.typ.snap | 14 +++++--- .../dead_code@destructuring_dict.typ.snap | 14 +++++--- .../dead_code@destructuring_spread.typ.snap | 8 +++-- .../dead_code@function_as_value.typ.snap | 7 ++-- ...d_code@import_module_alias_unused.typ.snap | 7 ++-- .../dead_code@import_module_unused.typ.snap | 7 ++-- .../snaps/dead_code@imported_unused.typ.snap | 21 +++++++---- .../snaps/dead_code@imported_used.typ.snap | 7 ++-- .../snaps/dead_code@loop_variables.typ.snap | 7 ++-- .../snaps/dead_code@method_chain.typ.snap | 7 ++-- ..._code@module_item_wildcard_unused.typ.snap | 8 +++-- .../snaps/dead_code@multiple_unused.typ.snap | 35 +++++++++++++------ .../snaps/dead_code@nested_scope.typ.snap | 7 ++-- .../dead_code@pattern_destructure.typ.snap | 7 ++-- .../snaps/dead_code@shadowing.typ.snap | 7 ++-- .../snaps/dead_code@show_set_rules.typ.snap | 7 ++-- .../dead_code@underscore_prefix.typ.snap | 7 ++-- .../snaps/dead_code@unused_function.typ.snap | 7 ++-- .../snaps/dead_code@unused_parameter.typ.snap | 7 ++-- .../snaps/dead_code@unused_variable.typ.snap | 7 ++-- .../lint/snaps/test@assign_ok.typ.snap | 7 ++-- .../fixtures/lint/snaps/test@binary.typ.snap | 7 ++-- .../test@binary_type_compare_str.typ.snap | 7 ++-- ...est@binary_type_compare_str_input.typ.snap | 7 ++-- .../test@binary_type_compare_str_let.typ.snap | 7 ++-- .../lint/snaps/test@break_for.typ.snap | 7 ++-- .../lint/snaps/test@break_func_for.typ.snap | 7 ++-- .../lint/snaps/test@discard_array.typ.snap | 7 ++-- .../lint/snaps/test@discard_common.typ.snap | 7 ++-- .../snaps/test@discard_common_break.typ.snap | 7 ++-- .../snaps/test@discard_common_break2.typ.snap | 7 ++-- .../lint/snaps/test@discard_equation.typ.snap | 7 ++-- .../lint/snaps/test@discard_for.typ.snap | 14 +++++--- .../lint/snaps/test@discard_for2.typ.snap | 14 +++++--- .../lint/snaps/test@discard_for3.typ.snap | 14 +++++--- .../lint/snaps/test@discard_for4.typ.snap | 14 +++++--- .../lint/snaps/test@discard_for5.typ.snap | 14 +++++--- .../lint/snaps/test@discard_hello.typ.snap | 7 ++-- .../lint/snaps/test@discard_if.typ.snap | 7 ++-- .../lint/snaps/test@discard_if2.typ.snap | 7 ++-- .../lint/snaps/test@discard_join.typ.snap | 7 ++-- .../snaps/test@discard_join_partial.typ.snap | 7 ++-- .../snaps/test@discard_join_partial2.typ.snap | 7 ++-- .../lint/snaps/test@discard_set.typ.snap | 7 ++-- .../lint/snaps/test@discard_show.typ.snap | 7 ++-- .../snaps/test@discard_show_content.typ.snap | 7 ++-- .../lint/snaps/test@return_loop2.typ.snap | 7 ++-- .../lint/snaps/test@return_loop3.typ.snap | 14 +++++--- .../lint/snaps/test@return_partial.typ.snap | 7 ++-- .../lint/snaps/test@return_partial2.typ.snap | 7 ++-- .../snaps/test@return_partial_if.typ.snap | 7 ++-- .../lint/snaps/test@return_regular.typ.snap | 7 ++-- .../lint/snaps/test@show_good.typ.snap | 7 ++-- .../lint/snaps/test@show_good2.typ.snap | 7 ++-- .../lint/snaps/test@while_good.typ.snap | 7 ++-- .../lint/snaps/test@while_good2.typ.snap | 7 ++-- 60 files changed, 370 insertions(+), 150 deletions(-) diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@array_dict_usage.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@array_dict_usage.typ.snap index cceda0cee..78f1b7499 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@array_dict_usage.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@array_dict_usage.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/array_dict_usage.typ { "message": "unused variable: `unused`\nHint: consider removing this variable or prefixing with underscore: `_unused`", "range": "3:5:3:11", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@closure_capture.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@closure_capture.typ.snap index fc247507d..3ad41e72d 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@closure_capture.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@closure_capture.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/closure_capture.typ { "message": "unused variable: `unused_not_captured`\nHint: consider removing this variable or prefixing with underscore: `_unused_not_captured`", "range": "2:5:2:24", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@conditional_usage.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@conditional_usage.typ.snap index 7c4f9c1be..3cd8ff243 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@conditional_usage.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@conditional_usage.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/conditional_usage.typ { "message": "unused variable: `unused`\nHint: consider removing this variable or prefixing with underscore: `_unused`", "range": "4:5:4:11", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@contextual_usage.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@contextual_usage.typ.snap index aea1400cf..20141077e 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@contextual_usage.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@contextual_usage.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/contextual_usage.typ { "message": "unused variable: `unused_ctx`\nHint: consider removing this variable or prefixing with underscore: `_unused_ctx`", "range": "2:5:2:15", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_array.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_array.typ.snap index 683c9250c..ed34922c8 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_array.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_array.typ.snap @@ -8,14 +8,20 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/destructuring_array.typ { "message": "unused variable: `unused_x`\nHint: consider removing this variable or prefixing with underscore: `_unused_x`", "range": "6:15:6:23", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `c2`\nHint: consider removing this variable or prefixing with underscore: `_c2`", "range": "6:31:6:33", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_dict.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_dict.typ.snap index 8559fb197..51fec98ca 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_dict.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_dict.typ.snap @@ -8,14 +8,20 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/destructuring_dict.typ { "message": "unused variable: `unused_x`\nHint: consider removing this variable or prefixing with underscore: `_unused_x`", "range": "6:18:6:26", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `c2`\nHint: consider removing this variable or prefixing with underscore: `_c2`", "range": "6:37:6:39", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_spread.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_spread.typ.snap index c0caedaab..606412bb4 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_spread.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@destructuring_spread.typ.snap @@ -1,6 +1,5 @@ --- source: crates/tinymist-query/src/analysis.rs -assertion_line: 662 expression: "JsonRepr::new_redacted(result, &REDACT_LOC)" input_file: crates/tinymist-query/src/fixtures/dead_code/destructuring_spread.typ --- @@ -9,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/destructuring_spread.ty { "message": "unused variable: `unused_rest`\nHint: consider removing this variable or prefixing with underscore: `_unused_rest`", "range": "4:11:4:22", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@function_as_value.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@function_as_value.typ.snap index a4003b6e5..cfff5de8c 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@function_as_value.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@function_as_value.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/function_as_value.typ { "message": "unused function: `unused_callback`\nHint: consider removing this function or prefixing with underscore: `_unused_callback`", "range": "6:5:6:20", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@import_module_alias_unused.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@import_module_alias_unused.typ.snap index 57c42d917..3abaf867b 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@import_module_alias_unused.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@import_module_alias_unused.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/import_module_alias_unu { "message": "unused import: `util`\nHint: consider removing this unused import", "range": "2:19:2:23", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@import_module_unused.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@import_module_unused.typ.snap index 2b84f0819..5b0b8909c 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@import_module_unused.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@import_module_unused.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/import_module_unused.ty { "message": "unused module: `u`\nHint: imported modules should be used or the import should be removed", "range": "2:8:2:15", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@imported_unused.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@imported_unused.typ.snap index c08942180..dc784bcff 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@imported_unused.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@imported_unused.typ.snap @@ -8,20 +8,29 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/imported_unused.typ { "message": "unused import: `Bbar`\nHint: consider removing this unused import", "range": "2:24:2:28", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused import: `foo`\nHint: consider removing this unused import", "range": "2:30:2:33", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused module import\nHint: imported modules should be used or the import should be removed", "range": "2:1:2:33", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@imported_used.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@imported_used.typ.snap index de92cd2fa..074ab38b0 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@imported_used.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@imported_used.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/imported_used.typ { "message": "unused import: `foo`\nHint: consider removing this unused import", "range": "2:31:2:34", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@loop_variables.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@loop_variables.typ.snap index 2d34ea2fa..3e4e40068 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@loop_variables.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@loop_variables.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/loop_variables.typ { "message": "unused variable: `unused_item`\nHint: consider removing this variable or prefixing with underscore: `_unused_item`", "range": "1:5:1:16", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@method_chain.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@method_chain.typ.snap index 51e7b4263..4115a0589 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@method_chain.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@method_chain.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/method_chain.typ { "message": "unused variable: `unused_obj`\nHint: consider removing this variable or prefixing with underscore: `_unused_obj`", "range": "8:5:8:15", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@module_item_wildcard_unused.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@module_item_wildcard_unused.typ.snap index 2167b097c..b24e5dee6 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@module_item_wildcard_unused.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@module_item_wildcard_unused.typ.snap @@ -1,6 +1,5 @@ --- source: crates/tinymist-query/src/analysis.rs -assertion_line: 662 expression: "JsonRepr::new_redacted(result, &REDACT_LOC)" input_file: crates/tinymist-query/src/fixtures/dead_code/module_item_wildcard_unused.typ --- @@ -9,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/module_item_wildcard_un { "message": "unused module import\nHint: imported modules should be used or the import should be removed", "range": "2:1:2:18", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@multiple_unused.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@multiple_unused.typ.snap index acbee6d4d..0213993f4 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@multiple_unused.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@multiple_unused.typ.snap @@ -8,32 +8,47 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/multiple_unused.typ { "message": "unused variable: `unused1`\nHint: consider removing this variable or prefixing with underscore: `_unused1`", "range": "1:5:1:12", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `unused2`\nHint: consider removing this variable or prefixing with underscore: `_unused2`", "range": "2:5:2:12", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `unused3`\nHint: consider removing this variable or prefixing with underscore: `_unused3`", "range": "4:5:4:12", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused function: `unused_func1`\nHint: consider removing this function or prefixing with underscore: `_unused_func1`", "range": "6:5:6:17", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused function: `unused_func2`\nHint: consider removing this function or prefixing with underscore: `_unused_func2`", "range": "8:5:8:17", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@nested_scope.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@nested_scope.typ.snap index 32603e74e..f1c627424 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@nested_scope.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@nested_scope.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/nested_scope.typ { "message": "unused variable: `inner_unused`\nHint: consider removing this variable or prefixing with underscore: `_inner_unused`", "range": "4:6:4:18", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@pattern_destructure.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@pattern_destructure.typ.snap index a4dd23401..a366f231b 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@pattern_destructure.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@pattern_destructure.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/pattern_destructure.typ { "message": "unused variable: `unused_b`\nHint: consider removing this variable or prefixing with underscore: `_unused_b`", "range": "1:14:1:22", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@shadowing.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@shadowing.typ.snap index 4077a14d1..5ec2e7414 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@shadowing.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@shadowing.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/shadowing.typ { "message": "unused variable: `x`\nHint: consider removing this variable or prefixing with underscore: `_x`", "range": "1:5:1:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@show_set_rules.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@show_set_rules.typ.snap index cf8266f4b..fd94d4dda 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@show_set_rules.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@show_set_rules.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/show_set_rules.typ { "message": "unused variable: `unused_style`\nHint: consider removing this variable or prefixing with underscore: `_unused_style`", "range": "1:5:1:17", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@underscore_prefix.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@underscore_prefix.typ.snap index c0b435def..7cb01a3f7 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@underscore_prefix.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@underscore_prefix.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/underscore_prefix.typ { "message": "unused variable: `normal_unused`\nHint: consider removing this variable or prefixing with underscore: `_normal_unused`", "range": "4:5:4:18", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_function.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_function.typ.snap index 793b13632..dabe45b11 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_function.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_function.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/unused_function.typ { "message": "unused function: `unused_func`\nHint: consider removing this function or prefixing with underscore: `_unused_func`", "range": "1:5:1:16", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_parameter.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_parameter.typ.snap index db9b74dea..b44b97295 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_parameter.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_parameter.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/unused_parameter.typ { "message": "unused variable: `unused_param`\nHint: if this parameter is intentionally unused, prefix it with underscore: `_unused_param`", "range": "1:22:1:34", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_variable.typ.snap b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_variable.typ.snap index ae97198c5..67a915b7c 100644 --- a/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_variable.typ.snap +++ b/crates/tinymist-query/src/fixtures/dead_code/snaps/dead_code@unused_variable.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/dead_code/unused_variable.typ { "message": "unused variable: `unused_var`\nHint: consider removing this variable or prefixing with underscore: `_unused_var`", "range": "1:5:1:15", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@assign_ok.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@assign_ok.typ.snap index 0b796d52d..467a5d294 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@assign_ok.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@assign_ok.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/assign_ok.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@binary.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@binary.typ.snap index eddf56278..4b09a6d25 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@binary.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@binary.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/binary.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str.typ.snap index 6eb06ecf9..e9b4d18a9 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/binary_type_compare_str.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str_input.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str_input.typ.snap index 1c5760cf3..116093218 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str_input.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str_input.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/binary_type_compare_str_inpu { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str_let.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str_let.typ.snap index b49e62f4e..6a6095416 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str_let.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@binary_type_compare_str_let.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/binary_type_compare_str_let. { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@break_for.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@break_for.typ.snap index 362c6243e..f150c1f06 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@break_for.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@break_for.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/break_for.typ { "message": "unused variable: `value`\nHint: consider removing this variable or prefixing with underscore: `_value`", "range": "0:5:0:10", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@break_func_for.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@break_func_for.typ.snap index f5a87a702..b109b8d4f 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@break_func_for.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@break_func_for.typ.snap @@ -22,8 +22,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/break_func_for.typ { "message": "unused variable: `value`\nHint: consider removing this variable or prefixing with underscore: `_value`", "range": "0:5:0:10", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_array.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_array.typ.snap index 883be5f4e..a022b6b8d 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_array.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_array.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_array.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common.typ.snap index dea70e70b..e9d4f484c 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common.typ.snap @@ -20,8 +20,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_common.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common_break.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common_break.typ.snap index b67d3e374..2ebbc2d42 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common_break.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common_break.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_common_break.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common_break2.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common_break2.typ.snap index f5b66b897..092ffcce7 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common_break2.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_common_break2.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_common_break2.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_equation.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_equation.typ.snap index 445dd1229..df7032275 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_equation.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_equation.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_equation.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for.typ.snap index 2e1c8bd81..fb22cbb87 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for.typ.snap @@ -14,14 +14,20 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_for.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `i`\nHint: consider removing this variable or prefixing with underscore: `_i`", "range": "0:15:0:16", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for2.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for2.typ.snap index 817d88a89..c3dd234ba 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for2.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for2.typ.snap @@ -14,14 +14,20 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_for2.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `i`\nHint: consider removing this variable or prefixing with underscore: `_i`", "range": "0:15:0:16", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for3.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for3.typ.snap index 8ae354950..c1c236a56 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for3.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for3.typ.snap @@ -14,14 +14,20 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_for3.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `i`\nHint: consider removing this variable or prefixing with underscore: `_i`", "range": "0:15:0:16", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for4.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for4.typ.snap index 503e3359b..5dc9b5a55 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for4.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for4.typ.snap @@ -14,14 +14,20 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_for4.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `i`\nHint: consider removing this variable or prefixing with underscore: `_i`", "range": "0:15:0:16", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for5.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for5.typ.snap index 17e2bff47..2c346a0da 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for5.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_for5.typ.snap @@ -14,14 +14,20 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_for5.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `i`\nHint: consider removing this variable or prefixing with underscore: `_i`", "range": "0:15:0:16", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_hello.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_hello.typ.snap index 9828e8599..b908ddb41 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_hello.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_hello.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_hello.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_if.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_if.typ.snap index 0c257617a..8137ce3a1 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_if.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_if.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_if.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_if2.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_if2.typ.snap index 0740320b7..3adef77ef 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_if2.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_if2.typ.snap @@ -20,8 +20,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_if2.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join.typ.snap index 7a7f63399..d0d1d643e 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join.typ.snap @@ -20,8 +20,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_join.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join_partial.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join_partial.typ.snap index 1c129bec4..0115108fe 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join_partial.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join_partial.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_join_partial.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join_partial2.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join_partial2.typ.snap index 625b6426d..857355783 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join_partial2.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_join_partial2.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_join_partial2.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_set.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_set.typ.snap index dedcc7838..ee9373eeb 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_set.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_set.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_set.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_show.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_show.typ.snap index 560d7d41f..8b2ce826f 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_show.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_show.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_show.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_show_content.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_show_content.typ.snap index 7b6c3fbec..7c6f695f2 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_show_content.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@discard_show_content.typ.snap @@ -14,8 +14,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/discard_show_content.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_loop2.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_loop2.typ.snap index b24d4dca1..52167c473 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_loop2.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_loop2.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/return_loop2.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_loop3.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_loop3.typ.snap index 2d6d49585..d37d73d2d 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_loop3.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_loop3.typ.snap @@ -8,14 +8,20 @@ input_file: crates/tinymist-query/src/fixtures/lint/return_loop3.typ { "message": "unused function: `mul-mat`\nHint: consider removing this function or prefixing with underscore: `_mul-mat`", "range": "0:5:0:12", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] }, { "message": "unused variable: `matrix`\nHint: consider removing this variable or prefixing with underscore: `_matrix`", "range": "3:6:3:12", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial.typ.snap index 63fc30c62..fac2d0e40 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/return_partial.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial2.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial2.typ.snap index 1f34ae2d0..d142cd4d5 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial2.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial2.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/return_partial2.typ { "message": "unused function: `as-padding-dict`\nHint: consider removing this function or prefixing with underscore: `_as-padding-dict`", "range": "0:5:0:20", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial_if.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial_if.typ.snap index d98e5bfb2..85e657990 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial_if.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_partial_if.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/return_partial_if.typ { "message": "unused function: `get-op`\nHint: consider removing this function or prefixing with underscore: `_get-op`", "range": "0:5:0:11", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_regular.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_regular.typ.snap index a9cd930c8..bbb75c0cd 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@return_regular.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@return_regular.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/return_regular.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@show_good.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@show_good.typ.snap index 2369d1ae7..d933d2cbc 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@show_good.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@show_good.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/show_good.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@show_good2.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@show_good2.typ.snap index 372cf63f7..da5f15c41 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@show_good2.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@show_good2.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/show_good2.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@while_good.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@while_good.typ.snap index 10de37989..a162f59b1 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@while_good.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@while_good.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/while_good.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] } diff --git a/crates/tinymist-query/src/fixtures/lint/snaps/test@while_good2.typ.snap b/crates/tinymist-query/src/fixtures/lint/snaps/test@while_good2.typ.snap index 6677069f7..1a4fadf28 100644 --- a/crates/tinymist-query/src/fixtures/lint/snaps/test@while_good2.typ.snap +++ b/crates/tinymist-query/src/fixtures/lint/snaps/test@while_good2.typ.snap @@ -8,8 +8,11 @@ input_file: crates/tinymist-query/src/fixtures/lint/while_good2.typ { "message": "unused function: `f`\nHint: consider removing this function or prefixing with underscore: `_f`", "range": "0:5:0:6", - "severity": 2, - "source": "typst" + "severity": 4, + "source": "typst", + "tags": [ + 1 + ] } ] }