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

diag: Add WithPath function and remove AttributeErrorDiagnostic and AttributeWarningDiagnostic types #219

Merged
merged 4 commits into from
Nov 3, 2021

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Oct 29, 2021

Closes #169

Instead of embedding path information directly in diagnostic types, it can instead be handled as a wrapper. This encourages a separation of concerns and simplifies implementations. Future enhancements, such as type checking wrapped diagnostics in #218, can enable advanced use cases.

…ttributeWarningDiagnostic types

Reference: #169

Instead of embedding path information directly in diagnostic types, it can instead be handled as a wrapper. This encourages a separation of concerns and simplifies implementations. Future enhancements, such as type checking wrapped diagnostics in #218, can enable advanced use cases.
@bflad bflad added enhancement New feature or request breaking-change This PR introduces a breaking change or the resolution of this issue may require a breaking change. diags Issues and pull requests about our diagnostics abstraction. labels Oct 29, 2021
@bflad bflad requested a review from a team October 29, 2021 16:04
Copy link
Contributor

@paddycarver paddycarver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable enough to me 👍

@bflad bflad added this to the v0.5.0 milestone Nov 3, 2021
@bflad bflad merged commit 16188d2 into main Nov 3, 2021
@bflad bflad deleted the bflad-f-diag-PathDiagnostic branch November 3, 2021 12:45
@github-actions
Copy link

github-actions bot commented Dec 4, 2021

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking-change This PR introduces a breaking change or the resolution of this issue may require a breaking change. diags Issues and pull requests about our diagnostics abstraction. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add SetPath Method to Diagnostic Type
2 participants