Structure
LintAction
Runs static analysis and lint checks on the codebase.
struct LintActionOverview
iOS: Runs
xcodebuild analyzeto surface static analyzer warnings.Android: Runs
./gradlew lintand optionally a specific module lint task.
Usage
// iOS
let result = try await LintAction().run(
with: .init(scheme: "MyApp"),
context: context
)
print("iOS analyzer warnings: \(result.warningCount)")
// Android
let result = try await LintAction().run(
with: .init(module: "app"),
context: androidContext
)
print("Android lint issues: \(result.issueCount)")
print("Report: \(result.reportPath ?? "N/A")")Topics
Configuration
struct OptionsConfiguration options for the lint action.
Results
struct ResultResult of a lint run.
Initializers
init()Creates a
LintAction.
Instance Methods
func run(with: LintAction.Options, context: ActionContext) async throws -> LintAction.ResultExecute the lint action.
Type Properties
static let description: StringHuman-readable description for
--helpoutput.static let name: StringThe registered name used in Shipfile lanes.
Default Implementations
Relationships
Conforms To
ActionSwift.SendableSwift.SendableMetatype