Skip to content

Conflicting instructions in sections for a given file #74

@mipo256

Description

@mipo256

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions