Skip to content

Commit e01c626

Browse files
committed
udpate
1 parent a1c7bbf commit e01c626

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

.typos.toml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# If there are words that you think should not be treated as typo.
22
# Please list here along with a comment.
3+
4+
[default]
5+
extend-ignore-re = [
6+
"(?Rm)^.*(#|//)\\s*typos:disable-line$",
7+
"(#|//)\\s*typos:ignore-next-line\\n.*",
8+
]
9+
310
[default.extend-words]
411
# Preserved for NdJson
512
Nd = "Nd"
@@ -17,20 +24,9 @@ between_dows = "between_dows"
1724

1825
into_flate2 = "into_flate2"
1926

20-
# Intentional typos used in SQL error suggestion test cases
21-
tabl = "tabl"
22-
23-
[default]
24-
extend-ignore-identifiers-re = ["^*{6}"]
25-
2627
[files]
2728
extend-exclude = [
2829
"**/Cargo.toml",
2930
"benchmark/",
3031
"tests/",
3132
]
32-
33-
[type.utils]
34-
extend-glob = ["utils.rs"]
35-
# test
36-
extend-identifiers = {abd = "abd"}

src/meta/raft-store/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ mod tests {
118118
#[test]
119119
fn test_prefix_right_bound_basic() {
120120
// Basic functionality test
121-
assert_eq!(prefix_right_bound("abc"), Some(s("abd")));
121+
assert_eq!(prefix_right_bound("abc"), Some(s("abd"))); // typos:disable-line
122122
}
123123

124124
#[test]

src/query/ast/src/parser/error_suggestion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ mod tests {
242242
fn test_typo_corrections() {
243243
// Typo corrections - may return multiple suggestions if scores are close
244244
assert_eq!(
245-
suggest_correction("show tabl"),
245+
suggest_correction("show tabl"), // typos:disable-line
246246
Some("Did you mean `SHOW TABLE FUNCTIONS` or `SHOW TABLES`?".to_string())
247247
);
248248
assert_eq!(
@@ -316,7 +316,7 @@ mod tests {
316316
fn test_edit_distance() {
317317
assert_eq!(edit_distance("show", "show"), 0);
318318
assert_eq!(edit_distance("tempare", "temporary"), 3);
319-
assert_eq!(edit_distance("tabl", "tables"), 2);
319+
assert_eq!(edit_distance("tabl", "tables"), 2); // typos:disable-line
320320
}
321321

322322
#[test]

src/query/config/src/mask.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ mod tests {
338338

339339
let masked_config = config.mask_display();
340340
assert_eq!(masked_config.oss_access_key_id, "*************y_id");
341-
assert_eq!(masked_config.oss_access_key_secret, "****************ecret");
341+
assert_eq!(masked_config.oss_access_key_secret, "****************ecret"); // typos:disable-line
342342
assert_eq!(
343343
masked_config.oss_server_side_encryption_key_id,
344344
"**************************_key_id"

0 commit comments

Comments
 (0)