Deprecated Rules and Macros
The rules and macros described below are used to format, test and
copy Swift source files.
On this page:
swiftformat_binary(name , swiftformat_config , swiftformat_exclude , srcs , kwargs )
Defines a swift_binary
along with a swiftformat_pkg
.
PARAMETERS
Name
Description
Default Value
name
The name for the swift_binary as a string
.
none
swiftformat_config
A label
for the SwiftFormat config file.
None
swiftformat_exclude
A list
of files or glob patterns that should be ignored for formatting.
[]
srcs
The Swift sources that should be used by the swift_binary
and the swiftformat_pkg
.
None
kwargs
The attributes for swift_binary
.
none
RETURNS
None.
swiftformat_library(name , swiftformat_config , swiftformat_exclude , srcs , kwargs )
Defines a swift_library
along with a swiftformat_pkg
.
PARAMETERS
Name
Description
Default Value
name
The name for the swift_library as a string
.
none
swiftformat_config
A label
for the SwiftFormat config file.
None
swiftformat_exclude
A list
of files or glob patterns that should be ignored for formatting.
[]
srcs
The Swift sources that should be used by the swift_library
and the swiftformat_pkg
.
None
kwargs
The attributes for swift_library
.
none
RETURNS
None.
swiftformat_test(name , swiftformat_config , swiftformat_exclude , srcs , kwargs )
Defines a swift_test
along with a swiftformat_pkg
.
PARAMETERS
Name
Description
Default Value
name
The name for the swift_test as a string
.
none
swiftformat_config
A label
for the SwiftFormat config file.
None
swiftformat_exclude
A list
of files or glob patterns that should be ignored for formatting.
[]
srcs
The Swift sources that should be used by the swift_test
and the swiftformat_pkg
.
None
kwargs
The attributes for swift_test
.
none
RETURNS
None.