File tree Expand file tree Collapse file tree 4 files changed +224
-216
lines changed
main/kotlin/dev/sphericalkat/sublimefuzzy
test/kotlin/dev/sphericalkat/sublimefuzzy Expand file tree Collapse file tree 4 files changed +224
-216
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
- id(" org.jetbrains.kotlin.jvm" ) version " 1.4.32"
3
- id(" org.jetbrains.dokka" ) version " 1.4.30"
4
- id(" com.vanniktech.maven.publish" ) version " 0.13.0"
2
+ id(" org.jetbrains.kotlin.jvm" ) version " 1.4.32"
3
+ id(" org.jetbrains.dokka" ) version " 1.4.30"
4
+ id(" com.vanniktech.maven.publish" ) version " 0.13.0"
5
+ id(" com.ncorti.ktfmt.gradle" ) version " 0.5.0"
5
6
}
6
7
7
8
repositories {
8
- mavenCentral()
9
- maven(" https://dl.bintray.com/kotlin/kotlinx" ) {
10
- name = " KotlinX Bintray"
11
- content {
12
- includeModule(" org.jetbrains.kotlinx" , " kotlinx-html-jvm" )
13
- }
9
+ mavenCentral()
10
+ maven(" https://dl.bintray.com/kotlin/kotlinx" ) {
11
+ name = " KotlinX Bintray"
12
+ content {
13
+ includeModule(" org.jetbrains.kotlinx" , " kotlinx-html-jvm" )
14
14
}
15
+ }
15
16
}
16
17
17
18
dependencies {
18
- implementation(platform(" org.jetbrains.kotlin:kotlin-bom" ))
19
- implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
20
- testImplementation(" org.jetbrains.kotlin:kotlin-test" )
21
- testImplementation(" org.jetbrains.kotlin:kotlin-test-junit" )
19
+ implementation(platform(" org.jetbrains.kotlin:kotlin-bom" ))
20
+ implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
21
+ testImplementation(" org.jetbrains.kotlin:kotlin-test" )
22
+ testImplementation(" org.jetbrains.kotlin:kotlin-test-junit" )
22
23
}
23
24
24
25
signing {
25
26
useGpgCmd()
26
27
}
28
+
29
+ ktfmt {
30
+ googleStyle()
31
+ maxWidth.set(100 )
32
+ }
Original file line number Diff line number Diff line change 1
1
package dev.sphericalkat.sublimefuzzy
2
2
3
3
object Constants {
4
- const val SEQUENTIAL_BONUS = 15
5
- const val SEPARATOR_BONUS = 30
6
- const val CAMEL_BONUS = 30
7
- const val FIRST_LETTER_BONUS = 15
4
+ const val SEQUENTIAL_BONUS = 15
5
+ const val SEPARATOR_BONUS = 30
6
+ const val CAMEL_BONUS = 30
7
+ const val FIRST_LETTER_BONUS = 15
8
8
9
- const val LEADING_LETTER_PENALTY = - 5
10
- const val MAX_LEADING_LETTER_PENALTY = - 15
11
- const val UNMATCHED_LETTER_PENALTY = - 1
12
- }
9
+ const val LEADING_LETTER_PENALTY = - 5
10
+ const val MAX_LEADING_LETTER_PENALTY = - 15
11
+ const val UNMATCHED_LETTER_PENALTY = - 1
12
+ }
You can’t perform that action at this time.
0 commit comments