diff --git a/config/detekt/baseline.xml b/config/detekt/baseline.xml
index 8b6e513..b20abc9 100644
--- a/config/detekt/baseline.xml
+++ b/config/detekt/baseline.xml
@@ -10,7 +10,6 @@
LongMethod:Weather2.kt$Weather2.Companion$@JvmStatic @Throws(ModuleException::class) fun getWeather(query: String, apiKey: String?): List<Message>
LongParameterList:Comment.kt$Comment$( channel: String, cmd: String, entry: EntryLink, entryIndex: Int, commentIndex: Int, event: GenericMessageEvent )
LongParameterList:EntryLink.kt$EntryLink$( // Link's comments val comments: MutableList<EntryComment> = mutableListOf(), // Tags/categories val tags: MutableList<SyndCategory> = mutableListOf(), // Channel var channel: String, // Creation date var date: Date = Calendar.getInstance().time, // Link's URL var link: String, // Author's login var login: String = "", // Author's nickname var nick: String, // Link's title var title: String )
- MagicNumber:ChatGpt.kt$ChatGpt$400
MagicNumber:ChatGpt.kt$ChatGpt.Companion$200
MagicNumber:ChatGpt.kt$ChatGpt.Companion$429
MagicNumber:Comment.kt$Comment$3
@@ -20,7 +19,6 @@
MagicNumber:CurrencyConverter.kt$CurrencyConverter.Companion$4
MagicNumber:Cycle.kt$Cycle$10
MagicNumber:Cycle.kt$Cycle$1000L
- MagicNumber:Gemini.kt$Gemini$400
MagicNumber:Ignore.kt$Ignore$8
MagicNumber:Info.kt$Info.Companion$30
MagicNumber:Info.kt$Info.Companion$365
diff --git a/lib/bld/bld-wrapper.properties b/lib/bld/bld-wrapper.properties
index dc4ddba..c8279f9 100644
--- a/lib/bld/bld-wrapper.properties
+++ b/lib/bld/bld-wrapper.properties
@@ -3,7 +3,7 @@ bld.downloadExtensionSources=true
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
bld.extensions=com.uwyn.rife2:bld-generated-version:0.9.5
bld.extensions-kotlin=com.uwyn.rife2:bld-kotlin:0.9.3
-bld.extensions-detekt=com.uwyn.rife2:bld-detekt:0.9.2
+bld.extensions-detekt=com.uwyn.rife2:bld-detekt:0.9.4-SNAPSHOT
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
bld.downloadLocation=
bld.sourceDirectories=
diff --git a/src/bld/java/net/thauvin/erik/MobibotBuild.java b/src/bld/java/net/thauvin/erik/MobibotBuild.java
index e11c041..9426468 100644
--- a/src/bld/java/net/thauvin/erik/MobibotBuild.java
+++ b/src/bld/java/net/thauvin/erik/MobibotBuild.java
@@ -57,6 +57,8 @@ import static rife.bld.dependencies.Scope.compile;
import static rife.bld.dependencies.Scope.test;
public class MobibotBuild extends Project {
+ private static final String DETEKT_BASELINE = "config/detekt/baseline.xml";
+
public MobibotBuild() {
pkg = "net.thauvin.erik.mobibot";
name = "mobibot";
@@ -162,7 +164,7 @@ public class MobibotBuild extends Project {
public void detekt() throws ExitStatusException, IOException, InterruptedException {
new DetektOperation()
.fromProject(this)
- .baseline("config/detekt/baseline.xml")
+ .baseline(DETEKT_BASELINE)
.execute();
}
@@ -170,7 +172,7 @@ public class MobibotBuild extends Project {
public void detektBaseline() throws ExitStatusException, IOException, InterruptedException {
new DetektOperation()
.fromProject(this)
- .baseline("config/detekt/baseline.xml")
+ .baseline(DETEKT_BASELINE)
.createBaseline(true)
.execute();
}