commit | 7f39e3d1858ab69672cc9058313d9babf32226c3 | [log] [tgz] |
---|---|---|
author | Olivier Robin <olivierrobin@google.com> | Thu Apr 28 08:20:49 2022 +0000 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 28 08:20:49 2022 +0000 |
tree | 05636155e8bce9e6e3dc76181642b24852a3521d | |
parent | 381db68adc980da8e158f53405d25495c65aa8b2 [diff] [blame] |
Make swift-format default True on Mac hosts Also make swift lint strict to catch every formatting errors. Bug: 1263872 Change-Id: Ie717c1f03ec1a0257cafceecc2055767d0be2077 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3605589 Reviewed-by: Brian Ryner <bryner@google.com> Auto-Submit: Olivier Robin <olivierrobin@chromium.org> Commit-Queue: Olivier Robin <olivierrobin@chromium.org> Reviewed-by: Gavin Mak <gavinmak@google.com>
diff --git a/swift_format.py b/swift_format.py index 50536fe..219211d 100644 --- a/swift_format.py +++ b/swift_format.py
@@ -40,6 +40,8 @@ def IsSwiftFormatSupported(): + if sys.platform != 'darwin': + return False try: FindSwiftFormatToolInChromiumTree() return True