Boolean literal arguments: don't report on a call, just on an element

This commit is contained in:
Mikhail Glukhikh
2018-11-29 15:16:22 +03:00
parent 0d7116aa5d
commit d31e0b9632
7 changed files with 21 additions and 75 deletions
@@ -1,7 +0,0 @@
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
// FIX: Add names to call arguments
fun foo(a: Boolean, b: Boolean, c: Boolean) {}
fun test() {
foo(true, true<caret>, true)
}
@@ -1,7 +0,0 @@
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
// FIX: Add names to call arguments
fun foo(a: Boolean, b: Boolean, c: Boolean) {}
fun test() {
foo(a = true, b = true, c = true)
}
@@ -1,7 +0,0 @@
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
// FIX: Add names to call arguments
fun foo(a: Boolean, b: Boolean, c: Boolean) {}
fun test() {
foo(<caret>true, true, c = true)
}
@@ -1,7 +0,0 @@
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
// FIX: Add names to call arguments
fun foo(a: Boolean, b: Boolean, c: Boolean) {}
fun test() {
foo(a = true, b = true, c = true)
}