AbsaOSS/enceladus

Refactor Validation Utils

Offen

#57 geöffnet am 02.12.2018

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Scala (16 Forks)auto 404
Conformancegood first issuepriority: undecidedrefactoring

Repository-Metriken

Stars
 (33 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

We have two separate ValidationExceptions:

  • za.co.absa.enceladus.conformance.interpreter.rules.ValidationException (only used in Standardization)
  • za.co.absa.enceladus.utils.validation.ValidationException (only used in Conformance) Conformance also dips into za.co.absa.enceladus.utils.validation.ValidationUtils before throwing its own ValidationException, which blurs the line between which ValidationException is responsible for what.

Good design dictates a clear separation between the two or a unification.

There is also some code duplication in conformance rules, specifically aimed at validation, that would best be extracted to a common location.

Contributor Guide