Import code style if gradle.properties has kotlin.code.style option (KT-23400)
This commit is contained in:
@@ -21,6 +21,7 @@ class KotlinObsoleteCodeStyle : KotlinPredefinedCodeStyle(CODE_STYLE_TITLE, Kotl
|
||||
val INSTANCE = KotlinObsoleteCodeStyle()
|
||||
|
||||
const val CODE_STYLE_ID = "KOTLIN_OLD_DEFAULTS"
|
||||
const val CODE_STYLE_SETTING = "obsolete"
|
||||
const val CODE_STYLE_TITLE = "Kotlin obsolete IntelliJ IDEA codestyle"
|
||||
|
||||
fun apply(settings: CodeStyleSettings) {
|
||||
|
||||
@@ -32,6 +32,7 @@ class KotlinStyleGuideCodeStyle : KotlinPredefinedCodeStyle("Kotlin style guide"
|
||||
val INSTANCE = KotlinStyleGuideCodeStyle()
|
||||
|
||||
const val CODE_STYLE_ID = "KOTLIN_OFFICIAL"
|
||||
const val CODE_STYLE_SETTING = "official"
|
||||
const val CODE_STYLE_TITLE = "Kotlin Coding Conventions"
|
||||
|
||||
fun apply(settings: CodeStyleSettings) {
|
||||
|
||||
Reference in New Issue
Block a user