Skip to content

Structure

LintAction

Runs static analysis and lint checks on the codebase.

struct LintAction

Overview

  • iOS: Runs xcodebuild analyze to surface static analyzer warnings.

  • Android: Runs ./gradlew lint and 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

Results

Initializers

Type Properties

Default Implementations

Relationships

Conforms To

  • Action
  • Swift.Sendable
  • Swift.SendableMetatype