This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lukasz.langa
Recipients lukasz.langa, terry.reedy
Date 2021-08-09.14:25:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628519119.84.0.207841633275.issue44854@roundup.psfhosted.org>
In-reply-to
Content
> I did not see anything in the EditorConfig guide about what happens when .editorconfig does not start with root = true and another file is found.

Good question. The docs do mention this but the information is scattered across the website. The key points are:

> EditorConfig files are read top to bottom and the most recent rules found take precedence. Properties from matching EditorConfig sections are applied in the order they were read, so properties in closer files take precedence.

> 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.

In other words, unless root=True is specified, the editor will keep looking for .editorconfig also in parent directories as well and composing the config from all files it found.
History
Date User Action Args
2021-08-09 14:25:19lukasz.langasetrecipients: + lukasz.langa, terry.reedy
2021-08-09 14:25:19lukasz.langasetmessageid: <1628519119.84.0.207841633275.issue44854@roundup.psfhosted.org>
2021-08-09 14:25:19lukasz.langalinkissue44854 messages
2021-08-09 14:25:19lukasz.langacreate