-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hostname and idn-hostname format validators (#82)
Related to #54
- Loading branch information
1 parent
8900520
commit 6c2baf5
Showing
43 changed files
with
5,527 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer | ||
import com.expediagroup.graphql.plugin.gradle.graphql | ||
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType | ||
|
||
plugins { | ||
// otherwise there is Gradle exception | ||
// https://github.com/gradle/gradle/issues/20084 | ||
id(libs.plugins.kotlin.jvm.get().pluginId) | ||
alias(libs.plugins.kotlin.serialization) | ||
alias(libs.plugins.expediagroup.graphql) | ||
|
||
alias(libs.plugins.detekt) | ||
alias(libs.plugins.ktlint) | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(11) | ||
} | ||
|
||
dependencies { | ||
implementation(libs.kotlinpoet) | ||
implementation(libs.graphql.ktor) | ||
implementation(libs.clikt) { | ||
because("cli for executing generation") | ||
} | ||
} | ||
|
||
graphql { | ||
client { | ||
endpoint = "https://www.compart.com/en/unicode/graphql" | ||
packageName = "io.github.optimumcode.unicode.generator.internal.graphql" | ||
serializer = GraphQLSerializer.KOTLINX | ||
} | ||
} | ||
|
||
ktlint { | ||
version.set(libs.versions.ktlint) | ||
debug.set(true) | ||
reporters { | ||
reporter(ReporterType.HTML) | ||
} | ||
filter { | ||
exclude { el -> | ||
val absolutePath = el.file.absolutePath | ||
absolutePath.contains("generated").and(!el.isDirectory) | ||
} | ||
} | ||
} |
Oops, something went wrong.