AtomLinter / linter-pylint

Atom linter plugin for Python, using pylint.
60 stars 48 forks source link

How to fix the links #328

Open fabianegli opened 2 years ago

fabianegli commented 2 years ago

This repo seems to be unmaintained, so this issue comes with a fix.

The following is the diff/patch for linter-pylint/lib/main.js that updates the links generated by linter-pylint to the current official documentation of pylint.

137c137
<           `--msg-template='{line},{column},{category},{msg_id}:${format}'`,
---
>           `--msg-template='{line},{column},{category},{msg_id},{symbol}:${format}'`,
164c164
<         const lineRegex = /(\d+),(\d+),(\w+),(\w\d+):(.*)\r?(?:\n|$)/g;
---
>         const lineRegex = /(\d+),(\d+),(\w+),(\w\d+),([^:]+):(.*)\r?(?:\n|$)/g;
178c178
<             url: `http://pylint-messages.wikidot.com/messages:${match[4]}`,
---
>             url: `https://pylint.pycqa.org/en/latest/messages/${match[3]}/${match[5]}.html`,
mraleson commented 2 years ago

Thank you! This might be a helpful resource as well: https://vald-phoenix.github.io/pylint-errors