Document the repository formatting command (#58458) - #58458
Open
cortinico wants to merge 10 commits into
Open
Conversation
|
@cortinico has exported this pull request. If you are a Meta employee, you can view the originating Diff in D119487619. |
meta-codesync Bot
pushed a commit
that referenced
this pull request
Sep 10, 2026
Summary: Pull Request resolved: #58458 Document `yarn format`, `yarn format-check`, every `format-<language>` / `format-check-<language>` command, and the prerequisite checks that warn and skip unavailable language toolchains. Changelog: [Internal] Differential Revision: D119487619
meta-codesync
Bot
force-pushed
the
export-D119487619
branch
from
September 10, 2026 16:56
85dfaac to
a86fafd
Compare
meta-codesync Bot
pushed a commit
that referenced
this pull request
Sep 10, 2026
Summary: Pull Request resolved: #58458 Document `yarn format`, `yarn format-check`, every `format-<language>` / `format-check-<language>` command, and the prerequisite checks that warn and skip unavailable language toolchains. Changelog: [Internal] Differential Revision: D119487619
meta-codesync
Bot
force-pushed
the
export-D119487619
branch
from
September 10, 2026 17:02
a86fafd to
a8b0ab4
Compare
meta-codesync Bot
pushed a commit
that referenced
this pull request
Sep 10, 2026
Summary: Pull Request resolved: #58458 Document `yarn format`, `yarn format-check`, every `format-<language>` / `format-check-<language>` command, and the prerequisite checks that warn and skip unavailable language toolchains. Changelog: [Internal] Differential Revision: D119487619
meta-codesync
Bot
force-pushed
the
export-D119487619
branch
from
September 10, 2026 17:18
a8b0ab4 to
ddbfbad
Compare
meta-codesync Bot
pushed a commit
that referenced
this pull request
Sep 10, 2026
Summary: Pull Request resolved: #58458 Document `yarn format`, `yarn format-check`, every `format-<language>` / `format-check-<language>` command, and the prerequisite checks that warn and skip unavailable language toolchains. Changelog: [Internal] Differential Revision: D119487619
meta-codesync
Bot
force-pushed
the
export-D119487619
branch
from
September 10, 2026 17:25
ddbfbad to
f3d711d
Compare
Summary: Use the public Prettier configuration for the complete OSS JavaScript and documentation surface. Expose `yarn format-javascript` and `yarn format-check-javascript`, and compose them into the repository-wide commands. Changelog: [Internal] Differential Revision: D119487610
Summary: Add npm-driven clang-format commands for exported C-family sources. Expose `yarn format-cpp` and `yarn format-check-cpp`, and compose them into the repository-wide commands. The wrapper automatically selects the repository-provided formatter for its environment. Changelog: [Internal] Differential Revision: D119487611
Summary: Add `yarn format-kotlin` and `yarn format-check-kotlin` using the npm `ktfmt` package and its bundled formatter jar. This adds the offline package mirror and workspace lock entry without changing existing Kotlin source formatting or Gradle configuration. The wrapper discovers a suitable JDK when available and otherwise prints environment-specific Java 17 setup guidance before skipping Kotlin. allow-large-files: The npm package intentionally contains the upstream ktfmt executable jar so offline and public installs use the same formatter. Changelog: [Internal] Differential Revision: D119487612
Summary: Remove the ktfmt Gradle plugin and its task wiring now that Kotlin formatting is provided by the repository npm command. Changelog: [Internal] Differential Revision: D119504761
Summary: Add `yarn format-java` and `yarn format-check-java` using the npm `google-java-format` package, which bundles google-java-format 1.23.0. This removes the Gradle build dependency and adds the offline package mirror and workspace lock entries. The wrapper discovers a suitable JDK when available and otherwise prints environment-specific Java 17 setup guidance before skipping Java. Changelog: [Internal] Differential Revision: D119487613
Summary: Add `yarn format-python` and `yarn format-check-python` using Ruff, and compose them into the repository-wide commands. The wrapper selects a repository-provided Ruff binary when available or bootstraps pinned Ruff through Python 3 and pip. Missing tools produce environment-specific setup guidance before Python is skipped. Changelog: [Internal] Differential Revision: D119487614
Summary: Add `yarn format-swift` and `yarn format-check-swift` using Apple swift-format, and compose them into the repository-wide commands. The wrapper selects a repository-provided formatter when available or uses swift-format 6.3 or newer from the Swift toolchain. Missing tools produce environment-specific setup guidance before Swift is skipped. Changelog: [Internal] Differential Revision: D119487615
Summary: Reformat the Kotlin and Kotlin Gradle sources with the npm-backed ktfmt 0.59.0 command after Arcanist formatting has been disabled for OSS-exported sources. Changelog: [Internal] Differential Revision: D119504762
Summary: Add a GitHub Actions formatting check that runs the repository-wide formatter check and posts line-level suggested fixes through the GitHub API for files that need reformatting. Changelog: [Internal] Differential Revision: D119487616
Summary: Pull Request resolved: #58458 Document `yarn format`, `yarn format-check`, every `format-<language>` / `format-check-<language>` command, and the prerequisite checks that warn and skip unavailable language toolchains. Changelog: [Internal] Differential Revision: D119487619
meta-codesync
Bot
force-pushed
the
export-D119487619
branch
from
September 11, 2026 12:44
f3d711d to
52c1aa5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Document
yarn format,yarn format-check, everyformat-<language>/format-check-<language>command, and the prerequisite checks that warn and skip unavailable language toolchains.Changelog: [Internal]
Differential Revision: D119487619