How would I create settings per Profile/Ruleset.
We have Rulesets per release. (When checking in code for release 4.1, Ruleset "4.1" is used etc.)
Now I have created a rule which checks some unwanted code, but it should only do so for codes "a,b,c" from 4.1 onwards and "a,b,c,d,e,f" from 4.2 onwards.
In the prolint.properties.p I can add settings, but they are for all profiles.
I would like some settings in the profile-directory.
Any suggestions on how to implement this?
- Adding a prolint.properties.p in the profile-directory introduces the problem of deleting the properties from the super when changing rulesets
- theRule has no input parameter ProfileDirectory or CustomProfile as far as I know. And prolint.p:GetProfileDirectory has no output parameter So I can't even use "run in calling-proc" to get the ProfileDirectory and reading some config from there.
- Adding a persist-directory to the profile-directory perhaps? And adding the run in prolint.p, this would load and unload the procedure.