From fe006cf342cefe175c2fba500788cf6f511a4c0f Mon Sep 17 00:00:00 2001 From: Toshiaki Kameyama Date: Fri, 25 Jan 2019 19:46:25 +0900 Subject: [PATCH] Boolean literal arguments: do not report in batch (offline) mode with INFORMATION severity #KT-29494 Fixed --- .../idea/inspections/BooleanLiteralArgumentInspection.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/BooleanLiteralArgumentInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/BooleanLiteralArgumentInspection.kt index bb5aebdb787..e84a303421c 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/BooleanLiteralArgumentInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/BooleanLiteralArgumentInspection.kt @@ -48,9 +48,10 @@ class BooleanLiteralArgumentInspection( fixes += AddNamesToLastBooleanArgumentsFix() } fixes += IntentionWrapper(AddNameToArgumentIntention(), argument.containingKtFile) - holder.registerProblem( + holder.registerProblemWithoutOfflineInformation( argument, "Boolean literal argument without parameter name", + isOnTheFly, if (reportSingle || hasPreviousUnnamedBoolean) GENERIC_ERROR_OR_WARNING else INFORMATION, *fixes.toTypedArray() )