EditorConfig: Support spelling_language (validation only) #8

Closed
opened 2025-08-27 13:26:30 +02:00 by BaumiCoder · 0 comments
Owner

Feature description

Support the spelling_language for the .editorconfig files.

As a complete spell checking (parse the source code comments to only check them, allow defining own valid words in some dictionary, ...) is quite complex, it seems to out of scope for ecformat (at least for now). Therefore, ecformat should only validate that the value of spelling_language in every .editorconfig file is valid.

This should be done only ones per .editorconfig file and spelling_language inside, not for every file to which the property applies to. Maybe, the fix command only can to the same as the check command here, because the invalid value can be anything.

Benefits

To ensure that a valid language is set in the .editorconfig files, to allow editor to use the desired language for spell checking.

Resources

### Feature description Support the `spelling_language` for the `.editorconfig` files. As a complete spell checking (parse the source code comments to only check them, allow defining own valid words in some dictionary, ...) is quite complex, it seems to out of scope for ecformat (at least for now). Therefore, ecformat should only validate that the value of `spelling_language` in every `.editorconfig` file is valid. This should be done only ones per `.editorconfig` file and `spelling_language` inside, not for every file to which the property applies to. Maybe, the `fix` command only can to the same as the `check` command here, because the invalid value can be anything. ### Benefits To ensure that a valid language is set in the `.editorconfig` files, to allow editor to use the desired language for spell checking. ### Resources - [ec4rs](https://crates.io/crates/ec4rs) - Crate to access the EditorConfig properties of files - Documentation of the property - [in the crate](https://docs.rs/ec4rs/latest/ec4rs/property/enum.SpellingLanguage.html) - [in the specification](https://spec.editorconfig.org/#supported-pairs) - [Validation function in the crate](https://docs.rs/ec4rs/latest/ec4rs/language_tags/struct.LanguageTag.html#method.validate)
BaumiCoder added reference feature/8-spelling_language 2026-05-29 07:19:57 +02:00
BaumiCoder 2026-05-31 11:09:16 +02:00
  • closed this issue
  • removed the
    WIP
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BaumiCoder/ecformat#8
No description provided.