Added detekt.
This commit is contained in:
parent
6c22c168a7
commit
c056879111
3 changed files with 23 additions and 0 deletions
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,4 +1,6 @@
|
|||
plugins {
|
||||
id("com.github.ben-manes.versions") version "0.29.0"
|
||||
id("io.gitlab.arturbosch.detekt") version "1.10.0"
|
||||
id("org.jetbrains.kotlin.jvm") version "1.3.72"
|
||||
`java-library`
|
||||
}
|
||||
|
@ -16,3 +18,7 @@ dependencies {
|
|||
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
||||
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
|
||||
}
|
||||
|
||||
detekt {
|
||||
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
||||
}
|
||||
|
|
11
config/detekt/baseline.xml
Normal file
11
config/detekt/baseline.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" ?>
|
||||
<SmellBaseline>
|
||||
<ManuallySuppressedIssues/>
|
||||
<CurrentIssues>
|
||||
<ID>MagicNumber:ReadingTime.kt$ReadingTime$10</ID>
|
||||
<ID>MagicNumber:ReadingTime.kt$ReadingTime$12</ID>
|
||||
<ID>MagicNumber:ReadingTime.kt$ReadingTime$3</ID>
|
||||
<ID>MagicNumber:ReadingTime.kt$ReadingTime$60</ID>
|
||||
<ID>MagicNumber:ReadingTime.kt$ReadingTime$60.0</ID>
|
||||
</CurrentIssues>
|
||||
</SmellBaseline>
|
Loading…
Add table
Add a link
Reference in a new issue