-
Notifications
You must be signed in to change notification settings - Fork 27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 👍 I couldn't see the change you mentioned about the sample.
docs/incubating/custom-evaluator.md
Outdated
```gradle | ||
evaluator { Set allViolations -> | ||
allViolations.each { violation -> | ||
if (violation.name == "PMD" && (violation.errors > 5)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below it says toolName
but here it is name. Which one it is? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! The backing property is called toolName
but the method to access it is getName
(and I'm guessing that's why the compiler allows .name
as accessor?)
Do you think we shall stick to just name
in the sample to create less confusion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like toolName
is private. We shouldn't really mention that since it is not usable. Sticking to name
makes sense 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amended here d3da57b
This PR:
Violations
source code