Minimum Distance Or Overlap
Dock: Design Rule Checker
Two layers with a distance less than a entered value are marked as a violation. If shapes are overlapping, it is not marked as an error. It is adjustable, whether violation away from the overlap (in the example on the left) should be marked as an error.
For general setup like check region and error layer please see the DesignRuleChecker documentation.