Skip to content

Commit

Permalink
Move SwiftFormat options to a config file (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard authored Aug 8, 2024
1 parent 66dd81c commit e24b5c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Formatting Options - Mimic Google style
--indent 2
--maxwidth 100
--wrapparameters afterfirst

# Disabled Rules

# Too many of our swift files have simplistic examples. While technically
# it's correct to remove the unused argument labels, it makes our examples
# look wrong.
--disable unusedArguments

# We prefer trailing braces.
--disable wrapMultilineStatementBraces
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

import XCTest
@testable import GoogleUtilities
import XCTest

class GULAppEnvironmentUtilTest: XCTestCase {
func testIsAppExtension() throws {
Expand Down

0 comments on commit e24b5c4

Please sign in to comment.