From cba90ffd3a8793a43041bf7a389a04c40b756022 Mon Sep 17 00:00:00 2001 From: waldo1001 Date: Sat, 11 Dec 2021 13:23:56 +0100 Subject: [PATCH 1/2] Lonely Repeat --- .../BCBestPractices/lonely-repeat/index.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 content/BCBestPractices/lonely-repeat/index.md diff --git a/content/BCBestPractices/lonely-repeat/index.md b/content/BCBestPractices/lonely-repeat/index.md new file mode 100644 index 00000000..7b2fb09c --- /dev/null +++ b/content/BCBestPractices/lonely-repeat/index.md @@ -0,0 +1,28 @@ ++++ +title = "Lonely Repeat" +weight = 760 ++++ + +<_Created by Microsoft, Described by waldo_\> + +## Description +The `repeat` statement should always be alone on a line. + +## Bad code + +```al + if ReservEntry.FindSet() then repeat +``` + +## Good code + +```al + if ReservEntry.FindSet() then + repeat +``` + +## [Discussions](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=lonely+repeat+category%3A%22BC+Best+Practices%22) + +You can find discussions on all "Best Practices" [here](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices). + +If you don't find the discussion of this guideline, please feel fee to create a new one with the same title as this article. \ No newline at end of file From 74ce964a3a322a2ce768a187374ec00fb8493fb6 Mon Sep 17 00:00:00 2001 From: waldo1001 Date: Sat, 11 Dec 2021 13:27:48 +0100 Subject: [PATCH 2/2] Move --- content/BCBestPractices/{ => Readability}/lonely-repeat/index.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename content/BCBestPractices/{ => Readability}/lonely-repeat/index.md (100%) diff --git a/content/BCBestPractices/lonely-repeat/index.md b/content/BCBestPractices/Readability/lonely-repeat/index.md similarity index 100% rename from content/BCBestPractices/lonely-repeat/index.md rename to content/BCBestPractices/Readability/lonely-repeat/index.md