yegor256 / qulice

Quality Police for Java projects: aggregator of Checkstyle and PMD
https://www.qulice.com
Other
301 stars 112 forks source link

Fix deprecated addViolation usage #1247

Closed pnatashap closed 8 months ago

pnatashap commented 8 months ago

Part of migrating to PMD7

From migration guide: "When reporting a violation, you might see a deprecation of the addViolation methods. These methods have been moved to RuleContext. E.g. instead of addViolation(data, node, ...) use asCtx(data).addViolation(node, ...)."

pnatashap commented 8 months ago

@yegor256 please take a look

yegor256 commented 8 months ago

@rultor merge

rultor commented 8 months ago

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

rultor commented 8 months ago

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 13min)