Minor cleanup
This commit is contained in:
parent
6eede8886d
commit
2c64779c18
5 changed files with 5 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@ lib/bld/**
|
|||
!lib/bld/bld-wrapper.properties
|
||||
lib/compile/
|
||||
lib/runtime/
|
||||
lib/provided/
|
||||
lib/standalone/
|
||||
lib/test/
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
[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
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -53,6 +53,7 @@ import static rife.bld.dependencies.Repository.*;
|
|||
import static rife.bld.dependencies.Scope.*;
|
||||
|
||||
public class AkismetBuild extends Project {
|
||||
private static final String DETEKT_BASELINE = "config/detekt/baseline.xml";
|
||||
final File srcMainKotlin = new File(srcMainDirectory(), "kotlin");
|
||||
|
||||
public AkismetBuild() {
|
||||
|
@ -144,7 +145,7 @@ public class AkismetBuild extends Project {
|
|||
public void detekt() throws ExitStatusException, IOException, InterruptedException {
|
||||
new DetektOperation()
|
||||
.fromProject(this)
|
||||
.baseline("config/detekt/baseline.xml")
|
||||
.baseline(DETEKT_BASELINE)
|
||||
.execute();
|
||||
}
|
||||
|
||||
|
@ -152,7 +153,7 @@ public class AkismetBuild extends Project {
|
|||
public void detektBaseline() throws ExitStatusException, IOException, InterruptedException {
|
||||
new DetektOperation()
|
||||
.fromProject(this)
|
||||
.baseline("config/detekt/baseline.xml")
|
||||
.baseline(DETEKT_BASELINE)
|
||||
.createBaseline(true)
|
||||
.execute();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue