dates should be valid keys (https://github.com/toml-lang/toml-test/blob/main/tests/valid/key/like-date.toml#L14) but taplo reports for that valid file a bunch of errors when you run taplo lint tests/valid/key/like-date.toml.
The problem seem to be date like table names [2002-01-02] and dotted keys 2002-01-02.2024-01-03.
Errors
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:14:3
│
14 │ a.2001-02-09.2001-02-10 = 8
│ ^^^^^^^^^^ expected identifier
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:14:13
│
14 │ a.2001-02-09.2001-02-10 = 8
│ ^ expected identifier
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:14:14
│
14 │ a.2001-02-09.2001-02-10 = 8
│ ^^^^^^^^^^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:14:25
│
14 │ a.2001-02-09.2001-02-10 = 8
│ ^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:14:27
│
14 │ a.2001-02-09.2001-02-10 = 8
│ ^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:15:1
│
15 │ 2001-02-11.a.2001-02-12 = 9
│ ^^^^^^^^^^ expected identifier
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:15:11
│
15 │ 2001-02-11.a.2001-02-12 = 9
│ ^ expected identifier
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:15:12
│
15 │ 2001-02-11.a.2001-02-12 = 9
│ ^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:15:13
│
15 │ 2001-02-11.a.2001-02-12 = 9
│ ^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:15:14
│
15 │ 2001-02-11.a.2001-02-12 = 9
│ ^^^^^^^^^^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:15:25
│
15 │ 2001-02-11.a.2001-02-12 = 9
│ ^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:15:27
│
15 │ 2001-02-11.a.2001-02-12 = 9
│ ^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:18:2
│
18 │ [2002-01-02]
│ ^^^^^^^^^^ expected identifier
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:18:12
│
18 │ [2002-01-02]
│ ^ expected identifier
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:21:2
│
21 │ [2002-01-02.2024-01-03]
│ ^^^^^^^^^^ expected identifier
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:21:12
│
21 │ [2002-01-02.2024-01-03]
│ ^ expected identifier
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:21:13
│
21 │ [2002-01-02.2024-01-03]
│ ^^^^^^^^^^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:21:23
│
21 │ [2002-01-02.2024-01-03]
│ ^ expected new line
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:24:3
│
24 │ [[2002-01-04]]
│ ^^^^^^^^^^ expected identifier
error: invalid TOML
┌─ /home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml:24:13
│
24 │ [[2002-01-04]]
│ ^ expected identifier
ERROR taplo:lint_files: invalid file error=syntax errors found path="/home/modprog/Development/Rust/toml-test/tests/valid/key/like-date.toml"
ERROR operation failed error=some files were not valid
dates should be valid keys (https://github.com/toml-lang/toml-test/blob/main/tests/valid/key/like-date.toml#L14) but taplo reports for that valid file a bunch of errors when you run
taplo lint tests/valid/key/like-date.toml.The problem seem to be date like table names
[2002-01-02]and dotted keys2002-01-02.2024-01-03.Errors