Skip to content

Warn on invalid items in .toml files #1324

@Wilfred

Description

@Wilfred

Description

Currently typos errors on invalid section names in .typos.toml, but not invalid setting names.

Section name is an error:

[foo]
bar = "baz"
$ typos --dump-config -
TOML parse error at line 1, column 2
  |
1 | [foo]
  |  ^^^
unknown field `foo`, expected one of `files`, `default`, `type`

Setting is silently ignored:

[default]
bar = "baz"

Could typos warn or error in this case? This hides errors when you put a setting under [files] that should be under [default].

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions