Skip to content

Commit

Permalink
Formulate rule/complexity descriptions consistently (#4417)
Browse files Browse the repository at this point in the history
* Formulate rule/complexity descriptions consistently

reference #4384

* Apply suggestions from code review for msg

Co-authored-by: Chao Zhang <zhangchao6865@gmail.com>

Co-authored-by: Chao Zhang <zhangchao6865@gmail.com>
  • Loading branch information
schalkms and chao2zhang committed Dec 28, 2021
1 parent 634d29a commit 1f26c47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -37,7 +37,7 @@ class NamedArguments(config: Config = Config.empty) : Rule(config) {
override val issue = Issue(
"NamedArguments",
Severity.Maintainability,
"Parameters of function invocation must all be named",
"Named arguments are required for function invocation with many parameters.",
Debt.FIVE_MINS
)

Expand Down
Expand Up @@ -45,7 +45,7 @@ class ReplaceSafeCallChainWithRun(config: Config = Config.empty) : Rule(config)
override val issue = Issue(
javaClass.simpleName,
Severity.Maintainability,
"Chains of safe calls on non-nullable types can be surrounded with run {}",
"Chains of safe calls on non-nullable types can be surrounded with `run {}`.",
Debt.TEN_MINS
)

Expand Down
Expand Up @@ -48,7 +48,8 @@ class StringLiteralDuplication(config: Config = Config.empty) : Rule(config) {
override val issue = Issue(
javaClass.simpleName,
Severity.Maintainability,
"Multiple occurrences of the same string literal within a single file detected.",
"Multiple occurrences of the same string literal within a single file detected. " +
"Prefer extracting the string literal into a property or constant.",
Debt.FIVE_MINS
)

Expand Down

0 comments on commit 1f26c47

Please sign in to comment.