mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
13 lines
679 B
Swift
13 lines
679 B
Swift
/// Macro to be attached to rule configurations. It generates the configuration parsing logic
|
|
/// automatically based on the defined `@ConfigurationElement`s.
|
|
@attached(member, names: named(apply))
|
|
public macro AutoApply() = #externalMacro(
|
|
module: "SwiftLintCoreMacros",
|
|
type: "AutoApply")
|
|
|
|
/// Macro that lets an enum with a ``String`` raw type automatically conform to ``AcceptableByConfigurationElement``.
|
|
@attached(extension, conformances: AcceptableByConfigurationElement, names: named(init), named(asOption))
|
|
public macro MakeAcceptableByConfigurationElement() = #externalMacro(
|
|
module: "SwiftLintCoreMacros",
|
|
type: "MakeAcceptableByConfigurationElement")
|