From b93af98b3c417225a027cabc964c38e779adb945 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Mon, 21 Feb 2022 12:14:17 +0100 Subject: [PATCH] docs: add links between rules about whitespace around block curly braces (#15625) --- docs/rules/block-spacing.md | 5 +++++ docs/rules/brace-style.md | 5 +++++ docs/rules/space-before-blocks.md | 1 + 3 files changed, 11 insertions(+) diff --git a/docs/rules/block-spacing.md b/docs/rules/block-spacing.md index 37a0a6be1d6..663a99d5427 100644 --- a/docs/rules/block-spacing.md +++ b/docs/rules/block-spacing.md @@ -75,3 +75,8 @@ class C { ## When Not To Use It If you don't want to be notified about spacing style inside of blocks, you can safely disable this rule. + +## Related Rules + +* [space-before-blocks](space-before-blocks.md) +* [brace-style](brace-style.md) diff --git a/docs/rules/brace-style.md b/docs/rules/brace-style.md index 197eeffc5f1..0c5502abb5c 100644 --- a/docs/rules/brace-style.md +++ b/docs/rules/brace-style.md @@ -386,6 +386,11 @@ class D { static { foo(); } } If you don't want to enforce a particular brace style, don't enable this rule. +## Related Rules + +* [block-spacing](block-spacing.md) +* [space-before-blocks](space-before-blocks.md) + ## Further Reading * [Indent style](https://en.wikipedia.org/wiki/Indent_style) diff --git a/docs/rules/space-before-blocks.md b/docs/rules/space-before-blocks.md index 758fda803f9..1271a4e1b3f 100644 --- a/docs/rules/space-before-blocks.md +++ b/docs/rules/space-before-blocks.md @@ -217,4 +217,5 @@ You can turn this rule off if you are not concerned with the consistency of spac * [keyword-spacing](keyword-spacing.md) * [arrow-spacing](arrow-spacing.md) * [switch-colon-spacing](switch-colon-spacing.md) +* [block-spacing](block-spacing.md) * [brace-style](brace-style.md)