Skip to content

Commit 0c7b4f2

Browse files
committed
fix test
1 parent 6505671 commit 0c7b4f2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

crates/emmylua_code_analysis/resources/schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,11 @@
425425
"description": "preferred-local-alias",
426426
"type": "string",
427427
"const": "preferred-local-alias"
428+
},
429+
{
430+
"description": "readonly",
431+
"type": "string",
432+
"const": "read-only"
428433
}
429434
]
430435
},

crates/emmylua_code_analysis/src/diagnostic/checker/readonly_check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl Checker for ReadOnlyChecker {
1717
for ast_node in root.descendants::<LuaAst>() {
1818
match ast_node {
1919
LuaAst::LuaAssignStat(assign_stat) => {
20-
check_assignt_stat(context, semantic_model, &assign_stat);
20+
check_assign_stat(context, semantic_model, &assign_stat);
2121
}
2222
// need check?
2323
LuaAst::LuaFuncStat(_) => {}
@@ -53,7 +53,7 @@ fn check_and_report_semantic_id(
5353
Some(())
5454
}
5555

56-
fn check_assignt_stat(
56+
fn check_assign_stat(
5757
context: &mut DiagnosticContext,
5858
semantic_model: &SemanticModel,
5959
assign_stat: &LuaAssignStat,

0 commit comments

Comments
 (0)