mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-18 21:40:41 -04:00
Do not lint uniffi generated files (#1404)
This commit is contained in:
@@ -18,9 +18,8 @@ ktlint_standard_annotation = true
|
||||
ktlint_standard_public-method-documentation = true
|
||||
|
||||
[**/uniffi/**/*.kt]
|
||||
ktlint_standard_filename = disabled
|
||||
ktlint_standard_package-name = disabled
|
||||
ktlint_standard_no-wildcard-imports = disabled
|
||||
# Disable all ktlint rules for UniFFI-generated Rust bindings
|
||||
ktlint_disabled_rules = standard
|
||||
|
||||
# Detekt rules
|
||||
detekt.style.PublicFunctionDocumentation = enabled
|
||||
|
||||
@@ -260,9 +260,13 @@ ktlint {
|
||||
ignoreFailures = false
|
||||
enableExperimentalRules = true
|
||||
filter {
|
||||
exclude("**/generated/**")
|
||||
// Include all Kotlin and Java files first
|
||||
include("**/kotlin/**")
|
||||
include("**/java/**")
|
||||
// Then exclude generated files
|
||||
exclude("**/generated/**")
|
||||
exclude("**/rustcore/uniffi/**") // Exclude UniFFI-generated Rust bindings
|
||||
exclude("**/uniffi/**") // Exclude any uniffi directory
|
||||
}
|
||||
|
||||
// Configure max line length
|
||||
@@ -298,9 +302,15 @@ tasks.named("preBuild") {
|
||||
afterEvaluate {
|
||||
tasks.withType(org.jlleitschuh.gradle.ktlint.tasks.KtLintCheckTask).configureEach {
|
||||
dependsOn("generateCodegenArtifactsFromSchema")
|
||||
// Exclude UniFFI-generated Rust bindings
|
||||
exclude("**/rustcore/uniffi/**/*.kt")
|
||||
exclude("**/uniffi/**/*.kt")
|
||||
}
|
||||
tasks.withType(org.jlleitschuh.gradle.ktlint.tasks.KtLintFormatTask).configureEach {
|
||||
dependsOn("generateCodegenArtifactsFromSchema")
|
||||
// Exclude UniFFI-generated Rust bindings
|
||||
exclude("**/rustcore/uniffi/**/*.kt")
|
||||
exclude("**/uniffi/**/*.kt")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user