dlang-community / dfmt

Dfmt is a formatter for D source code
Boost Software License 1.0
202 stars 46 forks source link

passing .editorconfig via --editorconfig=/path/to/.editorconfig #160

Open timotheecour opened 9 years ago

timotheecour commented 9 years ago

this would make it easier to share .editorconfig across different projects; or is there a better way? the docs regarding .editorconfig are not the clearest

qznc commented 8 years ago

When opening a file, EditorConfig plugins look for a file named .editorconfig in the directory of the opened file and in every parent directory. A search for .editorconfig files will stop if the root filepath is reached or an EditorConfig file with root=true is found.

That is what EditorConfig says.

How do you imagine to share the file with multiple projects? If they are in different repositories, then it makes sense to have a copy in each repo anyways. If you have multiple projects within a repository, then you have a common parent directory where you can put the shared file.

JohanEngelen commented 8 years ago

Functionality like this is needed for editor integration, where you'd want to specify a file/path assumption for input passed through stdin. See #202 .