Skip to content

Commit

Permalink
Formulate rule/naming descriptions consistently (#4419)
Browse files Browse the repository at this point in the history
reference #4384
  • Loading branch information
schalkms committed Dec 28, 2021
1 parent d111fe4 commit d98e43a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -37,7 +37,7 @@ class BooleanPropertyNaming(config: Config = Config.empty) : Rule(config) {

override val issue = Issue(
javaClass.simpleName, Severity.CodeSmell,
"Boolean property name should follow the naming convention set in the projects configuration",
"Boolean property name should follow the naming convention set in the projects configuration.",
Debt.FIVE_MINS
)

Expand Down
Expand Up @@ -24,7 +24,7 @@ class ClassNaming(config: Config = Config.empty) : Rule(config) {
override val issue = Issue(
javaClass.simpleName,
Severity.Style,
"A class or object's name should fit the naming pattern defined in the projects configuration.",
"A class or object name should fit the naming pattern defined in the projects configuration.",
debt = Debt.FIVE_MINS
)

Expand Down
Expand Up @@ -53,7 +53,7 @@ class NoNameShadowing(config: Config = Config.empty) : Rule(config) {
override val issue = Issue(
javaClass.simpleName,
Severity.Defect,
"Disallows shadowing variable declarations.",
"Disallow shadowing variable declarations.",
Debt.FIVE_MINS
)

Expand Down
Expand Up @@ -37,7 +37,7 @@ class NonBooleanPropertyPrefixedWithIs(config: Config = Config.empty) : Rule(con
override val issue = Issue(
javaClass.simpleName,
Severity.Warning,
"Only boolean property names can start with 'is' prefix.",
"Only boolean property names can start with `is` prefix.",
debt = Debt.FIVE_MINS
)

Expand Down

0 comments on commit d98e43a

Please sign in to comment.