Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non breaking refactors #1314

Merged
merged 5 commits into from
Feb 15, 2022
Merged

non breaking refactors #1314

merged 5 commits into from
Feb 15, 2022

Conversation

nschejtman
Copy link
Contributor

  • Moved avoidError from ModelTraversalRegistry to RecursionErrorRegister
  • Split ShapeTraversalRegistry from ModelTraversalRegistry with Shape specific logic
  • Refactor: aggregate allowList logic into allow method
  • Some refactors: - Split recursionAndError method into single responsibility method calls - Rename RegisterCriteria -> ThrowRecursionValidationCriteria (more specific) - Rename shouldFailIfRecursive -> foundRecursion (does not necessarily fail) - Rename recursionError -> checkRecursionError (checks if an error should be thrown)
  • Add some TODO comments with required refactors

 - Split recursionAndError method into single responsibility method calls
 - Rename RegisterCriteria -> ThrowRecursionValidationCriteria (more specific)
 - Rename shouldFailIfRecursive -> foundRecursion (does not necessarily fail)
 - Rename recursionError -> checkRecursionError (checks if an error should be thrown)
@nschejtman nschejtman merged commit 43bd47f into develop Feb 15, 2022
@nschejtman nschejtman deleted the non-breaking-refactors branch February 15, 2022 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants