Skip to content

Latest commit

 

History

History
executable file
·
91 lines (56 loc) · 4.12 KB

swiftformat_rules_and_macros_overview.md

File metadata and controls

executable file
·
91 lines (56 loc) · 4.12 KB

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

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

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

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.