diff --git a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/InstanceOfCheckForException.kt b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/InstanceOfCheckForException.kt index 464bebe620d..bafbf21cf11 100644 --- a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/InstanceOfCheckForException.kt +++ b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/InstanceOfCheckForException.kt @@ -48,7 +48,7 @@ class InstanceOfCheckForException(config: Config = Config.empty) : Rule(config) override val issue = Issue( "InstanceOfCheckForException", Severity.CodeSmell, - "Instead of checking for a general exception type and checking for a specific exception type " + + "Instead of catching for a general exception type and checking for a specific exception type, " + "use multiple catch blocks.", Debt.TWENTY_MINS ) diff --git a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/NotImplementedDeclaration.kt b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/NotImplementedDeclaration.kt index d39484ce516..1b351126d21 100644 --- a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/NotImplementedDeclaration.kt +++ b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/NotImplementedDeclaration.kt @@ -34,7 +34,7 @@ class NotImplementedDeclaration(config: Config = Config.empty) : Rule(config) { Severity.CodeSmell, "The NotImplementedDeclaration should only be used when a method stub is necessary. " + "This defers the development of the functionality of this function. " + - "Hence, the NotImplementedDeclaration should only serve as a temporary declaration. " + + "Hence, the `NotImplementedDeclaration` should only serve as a temporary declaration. " + "Before releasing, this type of declaration should be removed.", Debt.TWENTY_MINS ) diff --git a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/PrintStackTrace.kt b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/PrintStackTrace.kt index 39edaa1bbec..f185cfaeff7 100644 --- a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/PrintStackTrace.kt +++ b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/PrintStackTrace.kt @@ -51,8 +51,8 @@ class PrintStackTrace(config: Config = Config.empty) : Rule(config) { override val issue = Issue( "PrintStackTrace", Severity.CodeSmell, - "Do not print an stack trace. " + - "These debug statements should be replaced with a logger or removed.", + "Do not print a stack trace. " + + "These debug statements should be removed or replaced with a logger.", Debt.TWENTY_MINS ) diff --git a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/TooGenericExceptionCaught.kt b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/TooGenericExceptionCaught.kt index 7ff33f5df4a..493ea6cca82 100644 --- a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/TooGenericExceptionCaught.kt +++ b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/TooGenericExceptionCaught.kt @@ -41,7 +41,7 @@ class TooGenericExceptionCaught(config: Config) : Rule(config) { override val issue = Issue( javaClass.simpleName, Severity.Defect, - "Caught exception is too generic. " + + "The caught exception is too generic. " + "Prefer catching specific exceptions to the case that is currently handled.", Debt.TWENTY_MINS ) diff --git a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/TooGenericExceptionThrown.kt b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/TooGenericExceptionThrown.kt index ee7289da1da..9036951e70a 100644 --- a/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/TooGenericExceptionThrown.kt +++ b/detekt-rules-exceptions/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/exceptions/TooGenericExceptionThrown.kt @@ -41,7 +41,7 @@ class TooGenericExceptionThrown(config: Config) : Rule(config) { override val issue = Issue( javaClass.simpleName, Severity.Defect, - "Thrown exception is too generic. Prefer throwing project specific exceptions to handle error cases.", + "The thrown exception is too generic. Prefer throwing project specific exceptions to handle error cases.", Debt.TWENTY_MINS )