Skip to content

Commit

Permalink
Add Swift style guide directions
Browse files Browse the repository at this point in the history
As there are no exceptions at this moment, it only points to Google's
style guide.

Bug: N/A
Change-Id: Ie5102b3152e38394d0482203dfeb57bfc94c648e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2555461
Reviewed-by: Mike Pinkerton <pinkerton@chromium.org>
Commit-Queue: Javier Flores <javierrobles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834813}
  • Loading branch information
Javier Ernesto Flores Robles authored and Chromium LUCI CQ committed Dec 8, 2020
1 parent 252314f commit a89d00b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions styleguide/styleguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* [Chromium C++ style guide](c++/c++.md)
* See also: [C++ Dos and Don'ts](c++/c++-dos-and-donts.md) for Chromium best-practices.
* [Chromium Objective-C style guide](objective-c/objective-c.md)
* [Chromium Swift style guide](swift/swift.md)
* [Java style guide for Android](java/java.md)
* [Chromium Python style guide](python/python.md)
* [GN style guide](https://gn.googlesource.com/gn/+/master/docs/style_guide.md) for build files.
Expand Down
2 changes: 2 additions & 0 deletions styleguide/swift/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
javierrobles@chromium.org
pinkerton@chromium.org
10 changes: 10 additions & 0 deletions styleguide/swift/swift.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Chromium Swift style guide

_For other languages, please see the [Chromium style guides](https://chromium.googlesource.com/chromium/src/+/master/styleguide/styleguide.md)._

Chromium follows the
[Google Swift style guide](https://google.github.io/swift/)
no exceptions at this point.

[swift-format](https://github.com/apple/swift-format)
can be used to automatically format Swift code.

0 comments on commit a89d00b

Please sign in to comment.