Skip to content

Commit

Permalink
feat: changed result messages for objects rule with count type
Browse files Browse the repository at this point in the history
FossilOrigin-Name: d7b95445cbebdd646284cd15ce7f243b5732801265658c490709782fe389a8f5
  • Loading branch information
thindil committed Jun 6, 2024
1 parent 842043f commit 17916b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rules/objects.nim
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
import ../rules

ruleConfig(ruleName = "objects",
ruleFoundMessage = "object's types declarations which can{negation} be upgraded",
ruleNotFoundMessage = "object's types declarations which can{negation} be upgraded not found.",
ruleFoundMessage = "issues with object's types declarations",
ruleNotFoundMessage = "issues with object's types declarations not found.",
rulePositiveMessage = "type '{params[2]}', line: {params[0]} {params[1]}",
ruleNegativeMessage = "type '{params[2]}', line: {params[0]} {params[1]}",
ruleOptions = @[custom],
Expand All @@ -108,7 +108,7 @@ checkRule:
initCheck:
discard
startCheck:
let negation: Message = (if rule.negation: "'t" else: "")
discard
checking:
var checkResult: bool = false
# Check if the object's type definition contains any public field
Expand Down

0 comments on commit 17916b9

Please sign in to comment.