From 5ecd560c6f70b7f5c854daa9833853b2cd50a779 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Sat, 10 May 2025 12:40:40 +0200 Subject: [PATCH] Link to the rules.md in the ty repository (#17979) --- crates/ty/docs/configuration.md | 2 +- crates/ty_project/src/metadata/options.rs | 2 +- ty.schema.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ty/docs/configuration.md b/crates/ty/docs/configuration.md index 896751f894..0c135ee02d 100644 --- a/crates/ty/docs/configuration.md +++ b/crates/ty/docs/configuration.md @@ -22,7 +22,7 @@ respect-ignore-files = false Configures the enabled rules and their severity. -See [the rules documentation](https://github.com/astral-sh/ruff/blob/main/crates/ty/docs/rules.md) for a list of all available rules. +See [the rules documentation](https://github.com/astral-sh/ty/blob/main/docs/rules.md) for a list of all available rules. Valid severities are: diff --git a/crates/ty_project/src/metadata/options.rs b/crates/ty_project/src/metadata/options.rs index aa3f24dc1e..730a7283ef 100644 --- a/crates/ty_project/src/metadata/options.rs +++ b/crates/ty_project/src/metadata/options.rs @@ -31,7 +31,7 @@ pub struct Options { /// Configures the enabled rules and their severity. /// - /// See [the rules documentation](https://github.com/astral-sh/ruff/blob/main/crates/ty/docs/rules.md) for a list of all available rules. + /// See [the rules documentation](https://github.com/astral-sh/ty/blob/main/docs/rules.md) for a list of all available rules. /// /// Valid severities are: /// diff --git a/ty.schema.json b/ty.schema.json index ac715b0503..783d34fb5a 100644 --- a/ty.schema.json +++ b/ty.schema.json @@ -22,7 +22,7 @@ ] }, "rules": { - "description": "Configures the enabled rules and their severity.\n\nSee [the rules documentation](https://github.com/astral-sh/ruff/blob/main/crates/ty/docs/rules.md) for a list of all available rules.\n\nValid severities are:\n\n* `ignore`: Disable the rule. * `warn`: Enable the rule and create a warning diagnostic. * `error`: Enable the rule and create an error diagnostic. ty will exit with a non-zero code if any error diagnostics are emitted.", + "description": "Configures the enabled rules and their severity.\n\nSee [the rules documentation](https://github.com/astral-sh/ty/blob/main/docs/rules.md) for a list of all available rules.\n\nValid severities are:\n\n* `ignore`: Disable the rule. * `warn`: Enable the rule and create a warning diagnostic. * `error`: Enable the rule and create an error diagnostic. ty will exit with a non-zero code if any error diagnostics are emitted.", "anyOf": [ { "$ref": "#/definitions/Rules"