diff --git a/PRESUBMIT.py b/PRESUBMIT.py index c0357a1c9ea..f5c63637c69 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -63,6 +63,7 @@ def CheckPatchFormatted(input_api, output_api): '--presubmit', '--python', '--no-rust-fmt', + '--no-swift-format', ] # Make sure the passed --upstream branch is applied to git cl format. diff --git a/build/commands/lib/util.js b/build/commands/lib/util.js index 4669630e9bd..76d257e76f1 100644 --- a/build/commands/lib/util.js +++ b/build/commands/lib/util.js @@ -735,6 +735,8 @@ const util = { args.push('--no-rust-fmt') if (options.swift) args.push('--swift-format') + else + args.push('--no-swift-format') util.run(cmd, args, cmd_options) },