Add validating rules fired at block end. Fix issues detected by this linter.