From df863c00f9106b9c0dd5fb68c0218e2b975aaf6b Mon Sep 17 00:00:00 2001 From: Andreas Heuser Nordgaard <131433344+aols0228@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:39:57 +0200 Subject: [PATCH] Update BPARules.json --- BestPracticeRules/BPARules.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BestPracticeRules/BPARules.json b/BestPracticeRules/BPARules.json index c8aa0024..966edff5 100644 --- a/BestPracticeRules/BPARules.json +++ b/BestPracticeRules/BPARules.json @@ -576,7 +576,8 @@ "Description": "Flags must be properly formatted as Yes/No as this is easier to read than using 0/1 integer values.", "Severity": 1, "Scope": "DataColumn, CalculatedColumn, CalculatedTableColumn", - "Expression": "(\nName.StartsWith(\"Is\") and \nDataType = \"Int64\" and \nnot (IsHidden or Table.IsHidden)\n) \r\nor\r\n\n(\nName.EndsWith(\" Flag\") and \nDataType <> \"String\" and \nnot (IsHidden or Table.IsHidden)\n)", + "Expression": "(\r\n (\r\n Name.StartsWith(\"Is\") and \r\n DataType = \"Int64\" and \r\n not (IsHidden or Table.IsHidden)\r\n ) \r\n or \r\n (\r\n Name.EndsWith(\" Flag\") and \r\n DataType <> \"String\" and \r\n not (IsHidden or Table.IsHidden)\r\n )\r\n) \r\nand FormatString <> \"\"\"Yes\"\";;\"\"No\"\";\"", + "FixExpression": "FormatString = \"\\u0022Yes\\u0022\\u003b\\u003b\\u0022No\\u0022\\u003b\"", "CompatibilityLevel": 1200 }, {