Skip to content

Commit

Permalink
add violations to sample
Browse files Browse the repository at this point in the history
  • Loading branch information
eadm committed Jan 19, 2020
1 parent 64783a5 commit 59d8446
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/src/main/java/ru/nobird/android/ktlint/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,15 @@ class MainActivity : AppCompatActivity() {
setContentView(R.layout.activity_main)
}

fun explicitPublicTypeViolation() = "explicit public type violation"
fun explicitPublicTypeRuleViolation() =
"explicit public type rule violation"

fun expressionBodyRuleViolation1(): String = "expression body rule violation"

fun expressionBodyRuleViolation2(): String {
return "expression body rule violation"
}

fun expressionBodyIndentRuleViolation(): String =
"expression body indent rule violation"
}

0 comments on commit 59d8446

Please sign in to comment.