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

Remove JvmLocalCache now that everything is round-trippable on its own #2088

Merged
merged 8 commits into from
Apr 7, 2024

Conversation

nedtwigg
Copy link
Member

@nedtwigg nedtwigg commented Apr 4, 2024

@nedtwigg nedtwigg marked this pull request as ready for review April 4, 2024 20:05
@nedtwigg nedtwigg requested a review from Goooler April 4, 2024 20:05
Copy link
Member

@jbduncan jbduncan left a comment

Choose a reason for hiding this comment

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

Other than @Goooler's comment and my nit-picking comment below, this PR LGTM!

@@ -151,10 +151,10 @@ void customRunToFixMessage() throws Exception {
@Test
void whitespaceProblem() throws Exception {
Bundle spotless = create(setFile("testFile").toContent("A \nB\t\nC \n"));
spotless.task.addStep(FormatterStep.createNeverUpToDate("trimTrailing", input -> {
spotless.task.setSteps(List.of(FormatterStep.createNeverUpToDate("trimTrailing", input -> {
Copy link
Member

Choose a reason for hiding this comment

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

I'm tempted to revert this code change and all other addStep -> setStep changes. WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can see an argument for setSteps(FormatterStep... steps) to remove the manual List.of, but I think the mutable-naming addStep is bad. It's used only for a few tests, which is why I just did the List.of.

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough! I have no strong opinions either way, so I'm happy to continue with setSteps.

@nedtwigg nedtwigg merged commit 7262511 into main Apr 7, 2024
24 checks passed
@nedtwigg nedtwigg deleted the feat/remove-live-cache branch April 7, 2024 22:45
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