10up / wpcs-action

GitHub Action to help you lint your PHP without additional dependencies within your codebase
MIT License
54 stars 13 forks source link

Show sniff code in the annotation message. #3

Open dinhtungdu opened 3 years ago

kmgalanakis commented 1 year ago

This would be a really nice addition but even though it should display the Sniff name (currently defined as the code property of the problem matcher, it's not. The problem matcher properly picks up the Sniff name, I verified that by serving that in the annotation instead of the error message. Apparently, the code property is not included in the annotation.

Fortunately, this is not something limited to our actions. The same thing applies to other actions I tried, such as this one.

Let's keep an eye on this.