File tree Expand file tree Collapse file tree 4 files changed +11
-15
lines changed Expand file tree Collapse file tree 4 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 1
1
# If there are words that you think should not be treated as typo.
2
2
# 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
+
3
10
[default .extend-words ]
4
11
# Preserved for NdJson
5
12
Nd = " Nd"
@@ -17,20 +24,9 @@ between_dows = "between_dows"
17
24
18
25
into_flate2 = " into_flate2"
19
26
20
- # Intentional typos used in SQL error suggestion test cases
21
- tabl = " tabl"
22
-
23
- [default ]
24
- extend-ignore-identifiers-re = [" ^*{6}" ]
25
-
26
27
[files ]
27
28
extend-exclude = [
28
29
" **/Cargo.toml" ,
29
30
" benchmark/" ,
30
31
" tests/" ,
31
32
]
32
-
33
- [type .utils ]
34
- extend-glob = [" utils.rs" ]
35
- # test
36
- extend-identifiers = {abd = " abd" }
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ mod tests {
118
118
#[ test]
119
119
fn test_prefix_right_bound_basic ( ) {
120
120
// 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
122
122
}
123
123
124
124
#[ test]
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ mod tests {
242
242
fn test_typo_corrections ( ) {
243
243
// Typo corrections - may return multiple suggestions if scores are close
244
244
assert_eq ! (
245
- suggest_correction( "show tabl" ) ,
245
+ suggest_correction( "show tabl" ) , // typos:disable-line
246
246
Some ( "Did you mean `SHOW TABLE FUNCTIONS` or `SHOW TABLES`?" . to_string( ) )
247
247
) ;
248
248
assert_eq ! (
@@ -316,7 +316,7 @@ mod tests {
316
316
fn test_edit_distance ( ) {
317
317
assert_eq ! ( edit_distance( "show" , "show" ) , 0 ) ;
318
318
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
320
320
}
321
321
322
322
#[ test]
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ mod tests {
338
338
339
339
let masked_config = config. mask_display ( ) ;
340
340
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
342
342
assert_eq ! (
343
343
masked_config. oss_server_side_encryption_key_id,
344
344
"**************************_key_id"
You can’t perform that action at this time.
0 commit comments