dot-config / dot-config.github.io

dot-config promotes use of .config folders for project level settings
https://dot-config.github.io/
MIT License
44 stars 6 forks source link

Clarify what to do in case of conflict #16

Open plexus opened 8 months ago

plexus commented 8 months ago

I'm very happy to see this initiative, as a tool author I was looking to see if something like this existed. I'm happy it does, and I'll be adopting this for starters in Kaocha, a test runner for Clojure.

One thing that I think would be worth stating explicitly is how tools should behave if a config file exists both at the top level of the project and in . config

Reasonable options

bbatsov commented 8 months ago

I was just thinking about this myself (for RuboCop) and there it made most sense to have the top-level take precedence (just because you can have it's configuration at every level of a directory structure), but for most cases I think it'd be best to go with option 1 as the safest one.