mirror of
https://github.com/apple/swift-log
synced 2026-11-28 04:14:20 +00:00
Motivation: Swift 5.3 will keep `#file` == `#filePath` but starts warning if you pass `#file` to an argument that's `#filePath` defaulted (XCTest). Modification: - Replace `#file` with `(#file)` to silence the warning. In Swift 5.3 `#file` == `#filePath`. Result: No warnings
16 lines
247 B
Plaintext
16 lines
247 B
Plaintext
# file options
|
|
|
|
--swiftversion 5.0
|
|
--exclude .build
|
|
|
|
# format options
|
|
|
|
--self insert
|
|
--patternlet inline
|
|
--stripunusedargs unnamed-only
|
|
--ifdef no-indent
|
|
|
|
# rules
|
|
|
|
--disable redundantParens # https://github.com/nicklockwood/SwiftFormat/issues/638
|