code: def violations(self):
          
          return self._all_violations if self.config.fail_on == FAIL_ON_ANY else self._diff_violations
docs: Returns either the diff violations or all violations depending on configuration.