Skip to content

Develop#11

Merged
anton-knyazev merged 37 commits intomainfrom
develop
Nov 27, 2020
Merged

Develop#11
anton-knyazev merged 37 commits intomainfrom
develop

Conversation

@Just-D-A
Copy link
Copy Markdown
Contributor

No description provided.

return object : UElementHandler() {
override fun visitMethod(node: UMethod) {
val text = node.text ?: return
val linesCount = text.split("\n").size
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

text.count('\n')

override fun visitMethod(node: UMethod) {
val text = node.text ?: return
val linesCount = text.split("\n").size
if (text.contains(ONE_EXPRESSION_REGEX) && (linesCount <= MAX_LINE_COUNT_IN_EXPRESSION_FUNCTION)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

сначала строки
удалить переменную linesCount

}

// String extensions
private fun String.camelToSnakeCase(): String {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

convertCamelToSnakeCase

@anton-knyazev anton-knyazev merged commit 543307d into main Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants