violatedEdits function

Check data against constraints