-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: apply ktfmt-gradle plugin and reformat
Signed-off-by: Harsh Shandilya <[email protected]>
- Loading branch information
Showing
4 changed files
with
224 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
plugins { | ||
id("org.jetbrains.kotlin.jvm") version "1.4.32" | ||
id("org.jetbrains.dokka") version "1.4.30" | ||
id("com.vanniktech.maven.publish") version "0.13.0" | ||
id("org.jetbrains.kotlin.jvm") version "1.4.32" | ||
id("org.jetbrains.dokka") version "1.4.30" | ||
id("com.vanniktech.maven.publish") version "0.13.0" | ||
id("com.ncorti.ktfmt.gradle") version "0.5.0" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven("https://dl.bintray.com/kotlin/kotlinx") { | ||
name = "KotlinX Bintray" | ||
content { | ||
includeModule("org.jetbrains.kotlinx", "kotlinx-html-jvm") | ||
} | ||
mavenCentral() | ||
maven("https://dl.bintray.com/kotlin/kotlinx") { | ||
name = "KotlinX Bintray" | ||
content { | ||
includeModule("org.jetbrains.kotlinx", "kotlinx-html-jvm") | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(platform("org.jetbrains.kotlin:kotlin-bom")) | ||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") | ||
testImplementation("org.jetbrains.kotlin:kotlin-test") | ||
testImplementation("org.jetbrains.kotlin:kotlin-test-junit") | ||
implementation(platform("org.jetbrains.kotlin:kotlin-bom")) | ||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") | ||
testImplementation("org.jetbrains.kotlin:kotlin-test") | ||
testImplementation("org.jetbrains.kotlin:kotlin-test-junit") | ||
} | ||
|
||
signing { | ||
useGpgCmd() | ||
} | ||
|
||
ktfmt { | ||
googleStyle() | ||
maxWidth.set(100) | ||
} |
16 changes: 8 additions & 8 deletions
16
lib/src/main/kotlin/dev/sphericalkat/sublimefuzzy/Constants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package dev.sphericalkat.sublimefuzzy | ||
|
||
object Constants { | ||
const val SEQUENTIAL_BONUS = 15 | ||
const val SEPARATOR_BONUS = 30 | ||
const val CAMEL_BONUS = 30 | ||
const val FIRST_LETTER_BONUS = 15 | ||
const val SEQUENTIAL_BONUS = 15 | ||
const val SEPARATOR_BONUS = 30 | ||
const val CAMEL_BONUS = 30 | ||
const val FIRST_LETTER_BONUS = 15 | ||
|
||
const val LEADING_LETTER_PENALTY = -5 | ||
const val MAX_LEADING_LETTER_PENALTY = -15 | ||
const val UNMATCHED_LETTER_PENALTY = -1 | ||
} | ||
const val LEADING_LETTER_PENALTY = -5 | ||
const val MAX_LEADING_LETTER_PENALTY = -15 | ||
const val UNMATCHED_LETTER_PENALTY = -1 | ||
} |
Oops, something went wrong.