Feature description
Support the indent_style, indent_size and tab_width for the .editorconfig files:
- lint: Check that all indentation respect the properties.
- fix: Adjust all indentation to respect the properties.
When Reading and writing the files the charset and EndOfLine properties have to be respected. Especially, writing with the wrong settings maybe break the rules of the other properties in the files. See also #3 and #4. If these properties are not set, a suitable default has to be used (same as in #5).
Benefits
To ensure that all files follow the indentation rules set via .editorconfig.
Resources
- ec4rs - Crate to access the EditorConfig properties of files
- Documentation of the properties
- in the crate:
- in the specification
- Specification how the properties have to be handled together
### Feature description
Support the `indent_style`, `indent_size` and `tab_width` for the `.editorconfig` files:
- lint: Check that all indentation respect the properties.
- fix: Adjust all indentation to respect the properties.
When Reading and writing the files the `charset` and `EndOfLine` properties have to be respected. Especially, writing with the wrong settings maybe break the rules of the other properties in the files. See also #3 and #4. If these properties are not set, a suitable default has to be used (same as in #5).
### Benefits
To ensure that all files follow the indentation rules set via `.editorconfig`.
### Resources
- [ec4rs](https://crates.io/crates/ec4rs) - Crate to access the EditorConfig properties of files
- Documentation of the properties
- in the crate:
- [ident_style](https://docs.rs/ec4rs/latest/ec4rs/property/enum.IndentStyle.html)
- [indent_size](https://docs.rs/ec4rs/latest/ec4rs/property/enum.IndentSize.html)
- [tab_width](https://docs.rs/ec4rs/latest/ec4rs/property/enum.TabWidth.html)
- [in the specification](https://spec.editorconfig.org/#supported-pairs)
- [Specification how the properties have to be handled together](https://spec.editorconfig.org/#indentation-non-normative)