Hello @lpb,
Not exactly, but I do like your idea also and upvoted it.
With mine, it is within a project, although that rule can be global.