Consider that we have file, located in /some/dir/MyFile.java
And we have the following .editorconfig file:
root = true
[/some/dir/*.java]
end_of_line = cr
[/**/MyFile.{java,js}]
end_of_line = lf
This is a very simple example to demonstrate the problem. The problem essentially is that any file X, such as /some/dir/MyFile.java in our example, could be potentially matched by multiple sections. And those sections can (the spec correctly does not forbid it) have conflicting instructions, such as an example above.
What we need to do:
The spec must clarify what we require the implementation to do in such case.