diff --git a/ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/KtLint.kt b/ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/KtLint.kt index e83a4a5238..eca8aa8f6c 100644 --- a/ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/KtLint.kt +++ b/ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/KtLint.kt @@ -170,7 +170,7 @@ object KtLint { .forEach { e -> params.cb(e, false) } } - private fun normalizeText(text: String): String { + fun normalizeText(text: String): String { return text .replace("\r\n", "\n") .replace("\r", "\n") @@ -317,7 +317,7 @@ object KtLint { return rootNode.getUserData(DISABLED_RULES)?.contains(fqRuleId) == false } - private fun calculateLineColByOffset(text: String): (offset: Int) -> Pair { + fun calculateLineColByOffset(text: String): (offset: Int) -> Pair { var i = -1 val e = text.length val arr = ArrayList()