Skip to content
Snippets Groups Projects
Verified Commit ab92d21b authored by Jan-Niclas Strüwer's avatar Jan-Niclas Strüwer
Browse files

completely removed detekt for now

parent 527b277d
No related branches found
No related tags found
No related merge requests found
Pipeline #27109 passed
......@@ -4,7 +4,7 @@ plugins {
id("org.springframework.boot") version "3.1.5"
id("io.spring.dependency-management") version "1.1.4"
id("org.jetbrains.kotlin.plugin.allopen") version "1.9.21"
id("io.gitlab.arturbosch.detekt").version("1.23.3")
// id("io.gitlab.arturbosch.detekt").version("1.23.3")
kotlin("jvm") version "1.9.21"
kotlin("plugin.spring") version "1.9.21"
kotlin("plugin.jpa") version "1.9.21"
......@@ -34,7 +34,7 @@ repositories {
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.3")
// detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.3")
implementation("org.springframework.boot:spring-boot-starter-data-jpa:3.1.5")
implementation("org.springframework.boot:spring-boot-starter-validation:3.1.5")
implementation("org.springframework.boot:spring-boot-starter-security:3.1.5")
......@@ -67,65 +67,65 @@ dependencies {
testImplementation("org.springframework.security:spring-security-test:6.1.5")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
}
detekt {
// Version of detekt that will be used. When unspecified the latest detekt
// version found will be used. Override to stay on the same version.
toolVersion = "1.23.1"
// The directories where detekt looks for source files.
// Defaults to `files("src/main/java", "src/test/java", "src/main/kotlin", "src/test/kotlin")`.
source.setFrom("src/main/java", "src/main/kotlin")
// Builds the AST in parallel. Rules are always executed in parallel.
// Can lead to speedups in larger projects. `false` by default.
parallel = false
// Define the detekt configuration(s) you want to use.
// Defaults to the default detekt configuration.
config.setFrom("config/detekt.yml")
// Applies the config files on top of detekt's default config file. `false` by default.
buildUponDefaultConfig = true
// Turns on all the rules. `false` by default.
allRules = false
// Specifying a baseline file. All findings stored in this file in subsequent runs of detekt.
baseline = file("config/baseline.xml")
// Disables all default detekt rulesets and will only run detekt with custom rules
// defined in plugins passed in with `detektPlugins` configuration. `false` by default.
disableDefaultRuleSets = false
// Adds debug output during task execution. `false` by default.
debug = false
// If set to `true` the build does not fail when the
// maxIssues count was reached. Defaults to `false`.
ignoreFailures = false
// Android: Don't create tasks for the specified build types (e.g. "release")
ignoredBuildTypes = listOf("release")
// Android: Don't create tasks for the specified build flavor (e.g. "production")
ignoredFlavors = listOf("production")
// Android: Don't create tasks for the specified build variants (e.g. "productionRelease")
ignoredVariants = listOf("productionRelease")
// Specify the base path for file paths in the formatted reports.
// If not set, all file paths reported will be absolute file path.
basePath = projectDir.absolutePath
}
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
useVersion("1.9.21")
}
}
}
//
//detekt {
// // Version of detekt that will be used. When unspecified the latest detekt
// // version found will be used. Override to stay on the same version.
// toolVersion = "1.23.1"
//
// // The directories where detekt looks for source files.
// // Defaults to `files("src/main/java", "src/test/java", "src/main/kotlin", "src/test/kotlin")`.
// source.setFrom("src/main/java", "src/main/kotlin")
//
// // Builds the AST in parallel. Rules are always executed in parallel.
// // Can lead to speedups in larger projects. `false` by default.
// parallel = false
//
// // Define the detekt configuration(s) you want to use.
// // Defaults to the default detekt configuration.
// config.setFrom("config/detekt.yml")
//
// // Applies the config files on top of detekt's default config file. `false` by default.
// buildUponDefaultConfig = true
//
// // Turns on all the rules. `false` by default.
// allRules = false
//
// // Specifying a baseline file. All findings stored in this file in subsequent runs of detekt.
// baseline = file("config/baseline.xml")
//
// // Disables all default detekt rulesets and will only run detekt with custom rules
// // defined in plugins passed in with `detektPlugins` configuration. `false` by default.
// disableDefaultRuleSets = false
//
// // Adds debug output during task execution. `false` by default.
// debug = false
//
// // If set to `true` the build does not fail when the
// // maxIssues count was reached. Defaults to `false`.
// ignoreFailures = false
//
// // Android: Don't create tasks for the specified build types (e.g. "release")
// ignoredBuildTypes = listOf("release")
//
// // Android: Don't create tasks for the specified build flavor (e.g. "production")
// ignoredFlavors = listOf("production")
//
// // Android: Don't create tasks for the specified build variants (e.g. "productionRelease")
// ignoredVariants = listOf("productionRelease")
//
// // Specify the base path for file paths in the formatted reports.
// // If not set, all file paths reported will be absolute file path.
// basePath = projectDir.absolutePath
//}
//
//configurations.all {
// resolutionStrategy.eachDependency {
// if (requested.group == "org.jetbrains.kotlin") {
// useVersion("1.9.21")
// }
// }
//}
tasks.withType<KotlinCompile> {
kotlinOptions {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.