MissingProject

data class MissingProject(val project: Project, val lockFile: LockFile, val configFile: ConfigFile, val workingSubDir: String) : RuleContext

Rule context representing a missing project.

Constructors

Link copied to clipboard
constructor(project: Project, lockFile: LockFile, configFile: ConfigFile, workingSubDir: String)

Properties

Link copied to clipboard
open override val configFile: ConfigFile
Link copied to clipboard
open override val lockFile: LockFile
Link copied to clipboard
Link copied to clipboard
open override val workingSubDir: String

Functions

Link copied to clipboard
fun RuleContext.MissingProject.addToFileDirector(fileDirector: FileDirectorModel, excludedProviders: Set<Provider> = setOf()): RuleResult
Link copied to clipboard
fun createFile(bytes: ByteArray, path: String, vararg subpath: String): RuleResult

Creates a new file at the specified path& returns a result.

fun createFile(bytesCallback: suspend () -> <Error class: unknown class><ByteArray, ActionError>?, path: String, vararg subpath: String): RuleResult

Lazily creates a new file at the specified path if it does not already exist, and returns a result.

Link copied to clipboard
inline fun <T> createJsonFile(value: T, path: String, vararg subpath: String, format: <Error class: unknown class> = json): RuleResult

Creates a new JSON file at the specified path& returns a result.

Link copied to clipboard

Returns an error.

Link copied to clipboard
suspend fun exportAsOverride(force: Boolean = false, excludedProviders: Set<Provider> = setOf(), onExport: suspend (bytesCallback: suspend () -> <Error class: unknown class><ByteArray, ActionError>?, fileName: String, overridesFolder: String) -> RuleResult): RuleResult
Link copied to clipboard
suspend fun exportAsOverrideFrom(provider: Provider, onExport: suspend (bytesCallback: suspend () -> <Error class: unknown class><ByteArray, ActionError>?, fileName: String, overridesDir: String) -> RuleResult): RuleResult
Link copied to clipboard
fun getPath(): <Error class: unknown class>
fun getPath(path: String, vararg subpath: String): <Error class: unknown class>
Link copied to clipboard

Ignores this rule context.

Link copied to clipboard
fun RuleContext.ruleResult(message: String, packaging: Packaging): RuleResult