Skip to content

Commit

Permalink
lib: apply ktfmt-gradle plugin and reformat
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Shandilya <[email protected]>
  • Loading branch information
msfjarvis committed Apr 7, 2021
1 parent ff4c5d4 commit a3e4b6d
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 216 deletions.
32 changes: 19 additions & 13 deletions lib/build.gradle.kts
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 lib/src/main/kotlin/dev/sphericalkat/sublimefuzzy/Constants.kt
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
}
Loading

0 comments on commit a3e4b6d

Please sign in to comment.