Skip to content

Refactor format task to take --check#3205

Closed
JordonPhillips wants to merge 1 commit into
mainfrom
refactor-inline-check
Closed

Refactor format task to take --check#3205
JordonPhillips wants to merge 1 commit into
mainfrom
refactor-inline-check

Conversation

@JordonPhillips

@JordonPhillips JordonPhillips commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This refactors the inline smithyFormat task to accept a --check argument instead of reading a gradle property. This is done because it prevents check-mode from being toggled on when you're not explicitly running the check task.

The task had to be updated from a fully-inline definition to a more static definition to be able to accept an explicit arg like that.

See also: smithy-lang/smithy-gradle-plugin#168

This is in draft until the above is released because we need the gradle task to also be supporting --check.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@JordonPhillips JordonPhillips requested a review from a team as a code owner July 7, 2026 10:55
@JordonPhillips JordonPhillips requested a review from yasmewad July 7, 2026 10:55
@JordonPhillips JordonPhillips added the no-changelog-needed This PR doesn't require a changelog entry, so the changelog automation tool should not run on it. label Jul 7, 2026
@smithy-lang smithy-lang deleted a comment from github-actions Bot Jul 7, 2026
@JordonPhillips JordonPhillips force-pushed the refactor-inline-check branch 2 times, most recently from 915f270 to a3e7be8 Compare July 7, 2026 11:02
This refactors the inline smithyFormat task to accept a `--check`
argument instead of reading a gradle property. This is done because
it prevents check-mode from being toggled on when you're not
explicitly running the check task.

The task had to be updated from a fully-inline definition to a
more static definition to be able to accept an explicit arg like
that.
@JordonPhillips JordonPhillips force-pushed the refactor-inline-check branch from a3e7be8 to 997bea7 Compare July 7, 2026 11:12
@JordonPhillips JordonPhillips marked this pull request as draft July 7, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed This PR doesn't require a changelog entry, so the changelog automation tool should not run on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant