File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -47,3 +47,24 @@ fluent-bundle = { version = "0.15.3", path = "fluent-bundle" }
47
47
fluent-fallback = { version = " 0.7.1" , path = " fluent-fallback" }
48
48
fluent-pseudo = { version = " 0.3.2" , path = " fluent-pseudo" }
49
49
fluent-syntax = { version = " 0.11.1" , path = " fluent-syntax" }
50
+
51
+ [workspace .metadata .typos .default ]
52
+ locale = " en-us"
53
+ extend-ignore-re = [
54
+ " (?s)(#|//|/\\ *)\\ s*typos: ignore start.*?\\ n\\ s*(#|//|/\\ *)\\ s*typos: ignore end" ,
55
+ ]
56
+
57
+ [workspace .metadata .typos .default .extend-words ]
58
+ travelled = " travelled" # sadly part of a public API and fixing would be a breaking change
59
+ nd = " nd" # appears frequently in inline test messages
60
+
61
+ [workspace .metadata .typos .files ]
62
+ ignore-hidden = false
63
+ extend-exclude = [
64
+ " /.git" ,
65
+ " fluent-bundle/benches/**/*.ftl" ,
66
+ " fluent-bundle/examples/**/*.ftl" ,
67
+ " fluent-syntax/tests/fixtures/**/*.ftl" ,
68
+ " fluent-syntax/tests/fixtures/**/*.json" ,
69
+ " fluent-testing/resources/**/*.ftl" ,
70
+ ]
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ use fluent_syntax::ast::Pattern;
4
4
#[ test]
5
5
fn test_builtin_number ( ) {
6
6
// 1. Create bundle
7
+ // typos: ignore start
7
8
let ftl_string = String :: from (
8
9
r#"
9
10
count = { NUMBER($num, type: "cardinal") ->
@@ -17,6 +18,7 @@ order = { NUMBER($num, type: "ordinal") ->
17
18
[few] {$num}rd
18
19
}
19
20
"# ,
21
+ // typos: ignore end
20
22
) ;
21
23
22
24
let mut bundle = FluentBundle :: default ( ) ;
You can’t perform that action at this time.
0 commit comments