Switched to detekt snapshot for now.

This commit is contained in:
Erik C. Thauvin 2021-04-29 19:07:41 -07:00
parent 2c78d713eb
commit 8a945b2dc6
3 changed files with 7 additions and 6 deletions

View file

@ -2,7 +2,7 @@ plugins {
id 'application' id 'application'
id 'checkstyle' id 'checkstyle'
id 'com.github.ben-manes.versions' version '0.38.0' id 'com.github.ben-manes.versions' version '0.38.0'
id 'com.github.spotbugs' version '4.7.0' id 'com.github.spotbugs' version '4.7.1'
id 'idea' id 'idea'
id 'io.gitlab.arturbosch.detekt' version '1.16.0' id 'io.gitlab.arturbosch.detekt' version '1.16.0'
id 'jacoco' id 'jacoco'
@ -10,7 +10,7 @@ plugins {
id 'net.thauvin.erik.gradle.semver' version '1.0.4' id 'net.thauvin.erik.gradle.semver' version '1.0.4'
id 'org.jetbrains.kotlin.jvm' version '1.5.0' id 'org.jetbrains.kotlin.jvm' version '1.5.0'
id 'org.jetbrains.kotlin.kapt' version '1.5.0' id 'org.jetbrains.kotlin.kapt' version '1.5.0'
id 'org.sonarqube' version '3.1.1' id 'org.sonarqube' version '3.2.0'
id 'pmd' id 'pmd'
} }
@ -29,7 +29,6 @@ ext.versions = [
repositories { repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
} }
@ -127,6 +126,7 @@ pmd {
} }
detekt { detekt {
toolVersion = "main-SNAPSHOT"
ignoreFailures = true // Baseline is incomplete and fails on various CIs, not sure why. ignoreFailures = true // Baseline is incomplete and fails on various CIs, not sure why.
baseline = file("${projectDir}/config/detekt/baseline.xml") baseline = file("${projectDir}/config/detekt/baseline.xml")
} }

View file

@ -2,6 +2,7 @@
<SmellBaseline> <SmellBaseline>
<ManuallySuppressedIssues></ManuallySuppressedIssues> <ManuallySuppressedIssues></ManuallySuppressedIssues>
<CurrentIssues> <CurrentIssues>
<ID>ComplexCondition:Addons.kt$Addons$((isPrivate &amp;&amp; module.isPrivateMsgEnabled) || !isPrivate) &amp;&amp; module.commands.contains(cmd)</ID>
<ID>ComplexMethod:EntriesMgr.kt$EntriesMgr$ fun saveEntries( bot: Mobibot, entries: List&lt;EntryLink&gt;, history: MutableList&lt;String&gt;, isDayBackup: Boolean )</ID> <ID>ComplexMethod:EntriesMgr.kt$EntriesMgr$ fun saveEntries( bot: Mobibot, entries: List&lt;EntryLink&gt;, history: MutableList&lt;String&gt;, isDayBackup: Boolean )</ID>
<ID>ComplexMethod:Weather2.kt$Weather2.Companion$ @JvmStatic @Throws(ModuleException::class) fun getWeather(query: String, apiKey: String?): List&lt;Message&gt;</ID> <ID>ComplexMethod:Weather2.kt$Weather2.Companion$ @JvmStatic @Throws(ModuleException::class) fun getWeather(query: String, apiKey: String?): List&lt;Message&gt;</ID>
<ID>LongMethod:EntriesMgr.kt$EntriesMgr$ fun saveEntries( bot: Mobibot, entries: List&lt;EntryLink&gt;, history: MutableList&lt;String&gt;, isDayBackup: Boolean )</ID> <ID>LongMethod:EntriesMgr.kt$EntriesMgr$ fun saveEntries( bot: Mobibot, entries: List&lt;EntryLink&gt;, history: MutableList&lt;String&gt;, isDayBackup: Boolean )</ID>

View file

@ -1,9 +1,9 @@
#Generated by the Semver Plugin for Gradle #Generated by the Semver Plugin for Gradle
#Wed Apr 28 19:39:18 PDT 2021 #Thu Apr 29 18:56:59 PDT 2021
version.buildmeta=525 version.buildmeta=526
version.major=0 version.major=0
version.minor=8 version.minor=8
version.patch=0 version.patch=0
version.prerelease=beta version.prerelease=beta
version.project=mobibot version.project=mobibot
version.semver=0.8.0-beta+525 version.semver=0.8.0-beta+526