Minor cleanup

This commit is contained in:
Erik C. Thauvin 2024-05-23 22:21:44 -07:00
parent 6eede8886d
commit 2c64779c18
Signed by: erik
GPG key ID: 776702A6A2DA330E
5 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@ lib/bld/**
!lib/bld/bld-wrapper.properties !lib/bld/bld-wrapper.properties
lib/compile/ lib/compile/
lib/runtime/ lib/runtime/
lib/provided/
lib/standalone/ lib/standalone/
lib/test/ lib/test/

View file

@ -100,7 +100,7 @@ AkismetComment(request = context.getRequest())
This will ensure that the user's IP, agent, referrer and various environment variables are automatically extracted from the request. This will ensure that the user's IP, agent, referrer and various environment variables are automatically extracted from the request.
[View Full Example](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/src/main/kotlin/com/example/AkismetServlet.kt) [View Full Example](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/gradle/src/main/kotlin/com/example/AkismetServlet.kt)
## JSON ## JSON

View file

@ -53,6 +53,7 @@ import static rife.bld.dependencies.Repository.*;
import static rife.bld.dependencies.Scope.*; import static rife.bld.dependencies.Scope.*;
public class AkismetBuild extends Project { public class AkismetBuild extends Project {
private static final String DETEKT_BASELINE = "config/detekt/baseline.xml";
final File srcMainKotlin = new File(srcMainDirectory(), "kotlin"); final File srcMainKotlin = new File(srcMainDirectory(), "kotlin");
public AkismetBuild() { public AkismetBuild() {
@ -144,7 +145,7 @@ public class AkismetBuild extends Project {
public void detekt() throws ExitStatusException, IOException, InterruptedException { public void detekt() throws ExitStatusException, IOException, InterruptedException {
new DetektOperation() new DetektOperation()
.fromProject(this) .fromProject(this)
.baseline("config/detekt/baseline.xml") .baseline(DETEKT_BASELINE)
.execute(); .execute();
} }
@ -152,7 +153,7 @@ public class AkismetBuild extends Project {
public void detektBaseline() throws ExitStatusException, IOException, InterruptedException { public void detektBaseline() throws ExitStatusException, IOException, InterruptedException {
new DetektOperation() new DetektOperation()
.fromProject(this) .fromProject(this)
.baseline("config/detekt/baseline.xml") .baseline(DETEKT_BASELINE)
.createBaseline(true) .createBaseline(true)
.execute(); .execute();
} }