Bot releases are hidden (Show)
Full Changelog: https://github.com/airbnb/swift/compare/1.0.6...1.0.7
Published by calda 10 months ago
@unchecked Sendable
by @calda in https://github.com/airbnb/swift/pull/237
--lint
flag by @calda in https://github.com/airbnb/swift/pull/242
--shortoptionals always
option explicitly since default was updated to except-properties
by @calda in https://github.com/airbnb/swift/pull/251
sortImports
rule instead of deprecated sortedImports
rule by @calda in https://github.com/airbnb/swift/pull/252
if
or switch
expressions by @calda in https://github.com/airbnb/swift/pull/253
Full Changelog: https://github.com/airbnb/swift/compare/1.0.5...1.0.6
Published by calda about 1 year ago
package
keyword to list of declaration categories by @calda in https://github.com/airbnb/swift/pull/232
internal
keyword from declarations with internal access control by @calda in https://github.com/airbnb/swift/pull/233
forEach { ... }
method by @calda in https://github.com/airbnb/swift/pull/234
Full Changelog: https://github.com/airbnb/swift/compare/1.0.4...1.0.5
Published by calda over 1 year ago
Full Changelog: https://github.com/airbnb/swift/compare/1.0.3...1.0.4
Published by calda almost 2 years ago
prefer-opaque-generic-parameters
XCTest example to pass through file
and line
by @bachand in https://github.com/airbnb/swift/pull/204
Package.swift
to explicitly not support Linux by @calda in https://github.com/airbnb/swift/pull/206
async
, throws
) should be written on the line after the closing paren by @calda in https://github.com/airbnb/swift/pull/205
Full Changelog: https://github.com/airbnb/swift/compare/1.0.2...1.0.3
Published by calda about 2 years ago
if let
optional unwrapping syntax (https://github.com/airbnb/swift/pull/192)--swift-format
and --exclude
arguments (https://github.com/airbnb/swift/pull/182).package(url: "https://github.com/airbnb/swift", from: "1.0.0")
as invalid.// swift-tools-version
comment in your Package.swift
file. You can customize this by calling the plugin with a --swift-version
argument.XcodeCommandPlugin
to support using the package plugin in Xcode 14 project workspacesPublished by calda about 2 years ago
This repo now includes a Swift Package Manager command plugin that you can use to automatically reformat or lint your package according to the style guide. To use this command plugin with your package, all you need to do is add this repo as a dependency:
dependencies: [
.package(url: "https://github.com/airbnb/swift", from: "1.0.0"),
]
and then run the format
command plugin in your package directory:
$ swift package format
# Supported in Xcode 14+. Prompts for permission to write to the package directory.
$ swift package format
# When using the Xcode 13 toolchain, or a noninteractive shell, you must use:
$ swift package --allow-writing-to-package-directory format
# To just lint without reformatting, you can use `--lint`:
$ swift package format --lint
# By default the command plugin runs on the entire package directory.
# You can exclude directories using `exclude`:
$ swift package format --exclude Tests
# Alternatively you can explicitly list the set of paths and/or SPM targets:
$ swift package format --paths Sources Tests Package.swift
$ swift package format --targets AirbnbSwiftFormatTool