From 6d3fc809535b62be68dcab6b5011a6f4adf93141 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 28 Mar 2023 13:45:18 +0200 Subject: [PATCH] [Standards] Improve code standards about exception and error messages --- contributing/code/standards.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contributing/code/standards.rst b/contributing/code/standards.rst index e8af77af491..f60ca017280 100644 --- a/contributing/code/standards.rst +++ b/contributing/code/standards.rst @@ -179,6 +179,12 @@ Structure * Exception and error message strings must be concatenated using :phpfunction:`sprintf`; +* Exception and error messages must not contain backticks, even when referring to a + technical element (such as a method name for example). Double quotes must be used + at all time; + +* Exception and error messages must start with a capital letter and finish with a dot ``.``; + * Do not use ``else``, ``elseif``, ``break`` after ``if`` and ``case`` conditions which return or throw something;