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

feat: explain command #4

Merged
merged 7 commits into from
Jun 3, 2024
Merged

feat: explain command #4

merged 7 commits into from
Jun 3, 2024

Conversation

a-frantz
Copy link
Member

@a-frantz a-frantz commented May 31, 2024

All the functionality changes here are quite straightforward. I added a new dependency, colored, in order to get some "prettier" explain output. Maybe there's more we can do in that direction?

@a-frantz a-frantz requested review from peterhuene and adthrasher May 31, 2024 21:59
@a-frantz a-frantz self-assigned this May 31, 2024
src/commands/explain.rs Outdated Show resolved Hide resolved
@a-frantz a-frantz marked this pull request as ready for review June 3, 2024 14:36
Co-Authored-By: Andrew Thrasher <1165729+adthrasher@users.noreply.github.com>
Copy link
Member

@adthrasher adthrasher left a comment

Choose a reason for hiding this comment

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

Looks good, though I'm hoping Peter has a clever solution to avoid the two match statements.

@peterhuene
Copy link
Collaborator

I think we can live with the two match statements for now, as I don't think we can chain the two iterators together since they're different concrete types due to the E type parameter.

The solution will be to have a single list of lint rules moving forward in the new implementation, where everything is based off the AST.

I'm hoping that we might even put them in their own crate, such as wdl-lint.

README.md Outdated Show resolved Hide resolved
Co-Authored-By: Andrew Thrasher <1165729+adthrasher@users.noreply.github.com>
@a-frantz a-frantz merged commit f4cc42b into main Jun 3, 2024
4 checks passed
@a-frantz a-frantz deleted the feat/explain branch June 3, 2024 18:24
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.

3 participants