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

Add 'fix' subcommand #45

Closed
wants to merge 2 commits into from
Closed

Conversation

mmcclimon
Copy link
Contributor

I've taken a stab at this; it's not quite ready yet but I figured I'd open this anyway.

I suspect that at the very least, we'll want to reconsider the "both" moniker. I'll keep poking at this tomorrow; I'm not totally convinced it even works just yet, and it definitely needs tests and docs.

Soon, I will add another command type that's neither lint nor tidy, which
means this assertion needs to be a little more flexible.
I don't think this is quite right yet, and it needs a lot of docs and
probably more tests.

I also suspect the "both" type should be reconsidered.
@autarch
Copy link
Member

autarch commented Mar 8, 2023

This looks like a reasonable start. One thing I'd note is that AFAICT the code for tidying and fixing is very similar (which makes sense). There's probably an opportunity for more deduplication here, both in method bodies and in types.

I think most of run_one_tidier and run_one_fixer could be shared, as well as the fix and tidy. All that differs between them is the exact arguments to the executable (I think).

@mmcclimon
Copy link
Contributor Author

Given discussion in #44, I'm going to not go any further with this.

@mmcclimon mmcclimon closed this Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants