Feature description
Support the EndOfLine for the .editorconfig files:
- lint: Check that the files use the correct end of line character(s)
- fix: Change the end of line character(s) for files which uses the wrong one
When Reading and writing the files the charset property have to be respected. Especially, writing with the wrong charset maybe break the encoding in files. See also #3. If the property is not set, utf8 is maybe the best default. (Is there some default specified for EditorConfig?)
Benefits
To ensure the correct line breaks in all files, if the EndOfLine property is set via .editorconfig.
Resources
- ec4rs - Crate to access the EditorConfig properties of files
- Documentation of the property
### Feature description
Support the `EndOfLine` for the `.editorconfig` files:
- lint: Check that the files use the correct end of line character(s)
- fix: Change the end of line character(s) for files which uses the wrong one
When Reading and writing the files the `charset` property have to be respected. Especially, writing with the wrong `charset` maybe break the encoding in files. See also #3. If the property is not set, `utf8` is maybe the best default. (Is there some default specified for EditorConfig?)
### Benefits
To ensure the correct line breaks in all files, if the `EndOfLine` property is set via `.editorconfig`.
### 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.EndOfLine.html)
- [in the specification](https://spec.editorconfig.org/#supported-pairs)