Resolves #6
User perspective
Include the insert_final_newline property into the check and fix command.
It is handled after the trim_trailing_whitespace property to avoid two final newlines in the last line only contains whitespace characters. This would occur because a line with only whitespace characters does not fulfill the required for a final newline (see also message for commit 374c38a5a6).
Developer perspective
While adding the support for this further EditorConfig property some refactoring needs occurs to reduce code duplication. Beside these refactoring commits also the outdated tests/resources/README.md was adjusted in this Pull Request.
Resolves #6
### User perspective
Include the `insert_final_newline` property into the `check` and `fix` command.
It is handled after the `trim_trailing_whitespace` property to avoid two final newlines in the last line only contains whitespace characters. This would occur because a line with only whitespace characters does not fulfill the required for a final newline (see also message for commit 374c38a5a6b70f259c8add4d4bab47100137a00e).
### Developer perspective
While adding the support for this further EditorConfig property some refactoring needs occurs to reduce code duplication. Beside these refactoring commits also the outdated `tests/resources/README.md` was adjusted in this Pull Request.