diff --git a/linters/ruff/plugin.yaml b/linters/ruff/plugin.yaml index 8099f6653..3a9f37201 100644 --- a/linters/ruff/plugin.yaml +++ b/linters/ruff/plugin.yaml @@ -37,6 +37,7 @@ lint: - tox.ini known_good_version: 0.0.250 suggest_if: files_present + issue_url_format: https://docs.astral.sh/ruff/rules/#{} version_command: parse_regex: ruff ${semver} run: ruff --version diff --git a/linters/ruff/test_data/ruff_v0.0.250_basic.check.shot b/linters/ruff/test_data/ruff_v0.0.250_basic.check.shot index 9e787ac2a..63c9669fa 100644 --- a/linters/ruff/test_data/ruff_v0.0.250_basic.check.shot +++ b/linters/ruff/test_data/ruff_v0.0.250_basic.check.shot @@ -7,6 +7,7 @@ exports[`Testing linter ruff test basic 1`] = ` "code": "E402", "column": "1", "file": "test_data/basic.in.py", + "issueUrl": "https://docs.astral.sh/ruff/rules/#E402", "level": "LEVEL_HIGH", "line": "7", "linter": "ruff", @@ -36,6 +37,7 @@ exports[`Testing linter ruff test basic 1`] = ` "code": "F401", "column": "8", "file": "test_data/basic.in.py", + "issueUrl": "https://docs.astral.sh/ruff/rules/#F401", "level": "LEVEL_HIGH", "line": "7", "linter": "ruff", @@ -53,6 +55,7 @@ exports[`Testing linter ruff test basic 1`] = ` "code": "E402", "column": "1", "file": "test_data/basic.in.py", + "issueUrl": "https://docs.astral.sh/ruff/rules/#E402", "level": "LEVEL_HIGH", "line": "9", "linter": "ruff",