Configuration hierarchical composability #10954
Labels
needs-design
Requires discussion with the dev team before attempting a fix.
Priority:2
Work that is important, but not critical for the release
triaged
Context
Analogy to Roslyn
globalconfig
s asked by couple users during initial demos.Being able to set 'policies' centrally via package is currently missing.
Possible goals
Example of usage
ForbidSettingUnderscoreProperty
, that will flag assigning to the property starting with underscoremicrosoft.buildcheck.AB1234.whitelist=_propA,_propB
microsoft.buildcheck.AB1234.whitelist=_propC
would allow the whitelists to be joined
The actual implementation and exposing would need to be designed and thought through (e.g. should the additivity be explicitly opt-ed in in the .editorconfig, the Checks might then receive enumeration of setting per single key)
The additional scenario that this then unlocks is: "Can we create and distribute
.editorconfig
file via nuget packages, so that users can apply it and get preconfigured behavior as a base for their build" - this is not possible today, as only.editorconfig
files in the code hierarchy are being recognized (obj and nuget cache are ignored). This would need design as well (what is the priority, opt-in/out, etc.)The text was updated successfully, but these errors were encountered: