From eb783b94ff074295be3294b280f59dccffe02981 Mon Sep 17 00:00:00 2001 From: Henrik Helgesen Date: Mon, 21 Feb 2022 23:29:23 -0800 Subject: [PATCH] Cleanup and fix link --- .../BestPractices/unnecessary-else/index.md | 5 +++-- content/docs/Contributing/Templates/_index.md | 20 +++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/content/docs/BestPractices/unnecessary-else/index.md b/content/docs/BestPractices/unnecessary-else/index.md index a90c97a0..d190bfdf 100644 --- a/content/docs/BestPractices/unnecessary-else/index.md +++ b/content/docs/BestPractices/unnecessary-else/index.md @@ -7,6 +7,7 @@ categories: ["Best Practice"] _Created by Microsoft, Described by waldo_ ## Description + `else` should not be used when the last action in the `then` part is an `exit`, `break`, `skip`, `quit`, `error`. ## Bad code @@ -22,6 +23,7 @@ _Created by Microsoft, Described by waldo_ ``` ## Good code + ```al procedure SomeProcedure() begin @@ -31,9 +33,8 @@ _Created by Microsoft, Described by waldo_ end; ``` - ## [Discussions](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=unnecessary+else+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 free to create a new one with the same title as this article. +If you don't find the discussion of this guideline, please feel free to create a new one with the same title as this article. diff --git a/content/docs/Contributing/Templates/_index.md b/content/docs/Contributing/Templates/_index.md index ca59e5a3..55b88a6e 100644 --- a/content/docs/Contributing/Templates/_index.md +++ b/content/docs/Contributing/Templates/_index.md @@ -1,14 +1,12 @@ -+++ -chapter = true -pre = " " -title = "Templates" -weight = 100 -+++ +--- +title: "Templates" +--- -# Templates +We have created some template-files that you can simply copy and use. Look at them as "Patterns for describing patterns" -We have foreseen some template-files that you can simply copy and use. Look at them as "Patterns for describing patterns" 😉. +We currently offer the following templates: -We have foreseen a Template: - - for [patterns](/contributing/templates/patterns/) - - for [guidelines](/contributing/templates/guidelines/) \ No newline at end of file +- for [Patterns](/contributing/templates/patterns/) ([raw](https://raw.githubusercontent.com/microsoft/alguidelines/main/content/docs/Contributing/Templates/Patterns/index.md)) +- for [Best Practice](/contributing/templates/bestpractice/) ([raw](https://raw.githubusercontent.com/microsoft/alguidelines/main/content/docs/Contributing/Templates/BestPractice/index.md)) + +opening the "raw" link, will allow for the best copy/paste result.