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

refactor: Clean up ADR parsing #53

Merged
merged 4 commits into from
Sep 23, 2023
Merged

refactor: Clean up ADR parsing #53

merged 4 commits into from
Sep 23, 2023

Conversation

mrwilson
Copy link
Owner

@mrwilson mrwilson commented Sep 23, 2023

The code currently reads files and parses ADRs in the same place, and has a bit a of Primitive Obsession by using dict as a return type.

This changeset addresses both these things by introducing an Adr dataclass and separating file reading from parsing the ADR format.

These changes are a necessary prerequisite to implementing #52 because the parsing isn't sufficiently general.

@mrwilson mrwilson merged commit 5728786 into master Sep 23, 2023
@mrwilson mrwilson deleted the refactor-adr-object branch September 23, 2023 10:42
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.

1 participant