ricardochaves / python-lint

GitHub Action for Lint your code
MIT License
92 stars 41 forks source link

Annotations for Lint Findings #11

Open lucasbrendel opened 3 years ago

lucasbrendel commented 3 years ago

It would be nice to have annotations applied to the files that the enabled linters find problems with so it is easier to see what is wrong without going through the terminal output.

ricardochaves commented 3 years ago

I will analyze. The idea is fantastic.

peternewman commented 3 years ago

There's a flake8 action with an annotation here: https://github.com/TrueBrain/actions-flake8/blob/main/flake8-matcher.json

To make it work: https://github.com/TrueBrain/actions-flake8/blob/7e33a2bcf3bee056945183e6d08d70000de48114/entrypoint.sh#L3-L6 https://github.com/TrueBrain/actions-flake8/blob/7e33a2bcf3bee056945183e6d08d70000de48114/entrypoint.sh#L32-L34

peternewman commented 3 years ago

Also see these matchers: https://github.com/PyCQA/pylint/pull/2758#issuecomment-696059847