From 7cf65b3d3bd58a4179b3be4f9cfa095899c4ea52 Mon Sep 17 00:00:00 2001 From: christianbraeunlich Date: Thu, 17 Mar 2022 23:03:42 +0100 Subject: [PATCH] initial "avoid too many blank lines" best practice --- .../docs/BestPractices/blank-lines/index.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 content/docs/BestPractices/blank-lines/index.md diff --git a/content/docs/BestPractices/blank-lines/index.md b/content/docs/BestPractices/blank-lines/index.md new file mode 100644 index 00000000..e3c6185b --- /dev/null +++ b/content/docs/BestPractices/blank-lines/index.md @@ -0,0 +1,43 @@ +--- +title: "Avoid too many blank lines" +tags: ["AL"] +categories: ["Best Practice"] +--- + +## Description + +Avoid too many blank lines. + +## Bad code + +```al +var + IsVisible: Boolean; + IsEditable: Boolean; + + +local procedure Init() +begin + IsVisible := false; + IsEditable := false; + + + exit(true); +end; +``` + +## Good code + +```al +var + IsVisible: Boolean; + IsEditable: Boolean; + +local procedure Init() +begin + IsVisible := false; + IsEditable := false; + + exit(true); +end; +```