Bug fix for #38 and #8
User perspective
Fixes a problem with too many open files when process all relevant .editorconfig files for the status command or for the handling of spelling_language in the check command.
Developer perspective
Collecting the ConfigFile instances from ConfigFiles::open in a vector means that all these instances of file handles are open at the same time! This can lead to too many open file handles for the process / system.
A "Too many open files" already occurs on my local machine (not in the CI) when running the tests
files::tests::get_target_files::test_get_target_files_bool_options
files::tests::get_editorconfig_files::test_get_editorconfig_files_bool_options
(However, only if I run all tests and not if I run them separately.)
This problem was introduced with commit 5263ffc.
Bug fix for #38 and #8
### User perspective
Fixes a problem with too many open files when process all relevant `.editorconfig` files for the `status` command or for the handling of `spelling_language` in the `check` command.
### Developer perspective
Collecting the ConfigFile instances from ConfigFiles::open in a vector means that all these instances of file handles are open at the same time! This can lead to too many open file handles for the process / system.
A "Too many open files" already occurs on my local machine (not in the CI) when running the tests
```
files::tests::get_target_files::test_get_target_files_bool_options
files::tests::get_editorconfig_files::test_get_editorconfig_files_bool_options
```
(However, only if I run all tests and not if I run them separately.)
This problem was introduced with commit 5263ffc.