This is an automated email from the ASF dual-hosted git repository. henrib pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jexl.git
commit eaa7a94ee2d5f3b1f2714d4fb7f3e28095cc36dc Author: henrib <[email protected]> AuthorDate: Thu Nov 5 11:22:10 2020 +0100 JEXL-337: JaCoCo check limits, doxia docs warning fixes --- pom.xml | 21 +++++++++++++++++++++ src/site/xdoc/changes.xml | 2 +- src/site/xdoc/reference/syntax.xml | 8 ++++---- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 4b6b821..9543cf9 100644 --- a/pom.xml +++ b/pom.xml @@ -183,6 +183,27 @@ <exclude>**/org/apache/commons/jexl3/parser/*.class</exclude> <exclude>**/org/apache/commons/jexl3/**/*Test.class</exclude> </excludes> + <rules> + <rule> + <limits> + <limit> + <counter>INSTRUCTION</counter> + <value>COVEREDRATIO</value> + <minimum>85.0%</minimum> + </limit> + <limit> + <counter>LINE</counter> + <value>COVEREDRATIO</value> + <minimum>0.75</minimum> + </limit> + <limit> + <counter>BRANCH</counter> + <value>COVEREDRATIO</value> + <minimum>0.75</minimum> + </limit> + </limits> + </rule> + </rules> </configuration> </plugin> diff --git a/src/site/xdoc/changes.xml b/src/site/xdoc/changes.xml index e84010a..661e8a8 100644 --- a/src/site/xdoc/changes.xml +++ b/src/site/xdoc/changes.xml @@ -25,7 +25,7 @@ <author email="[email protected]">Commons Developers</author> </properties> <body> - <release version="3.2" date="unreleased"> + <release version="3.2"> <action dev="Hussachai Puripunpinyo" type="fix" issue="JEXL-336"> Escape some control characters </action> diff --git a/src/site/xdoc/reference/syntax.xml b/src/site/xdoc/reference/syntax.xml index bdae6d7..3b718df 100644 --- a/src/site/xdoc/reference/syntax.xml +++ b/src/site/xdoc/reference/syntax.xml @@ -133,14 +133,14 @@ <p>Pragma keys can be identifiers or antish names, pragma values can be literals (boolean, integer, real, string, null, NaN) and antish names</p> <p>Although pragmas are statements, they are <em>not</em> evaluated at runtime; they are constants - associated to the script after parsing. It is expected that user code accesses the pragma map from + associated to the script after parsing. It is expected that user code accesses the pragma map from scripts to alter some functions behavior.</p> <p>The are two built-in pragmas:</p> <p> <b>jexl.options</b> overrides the evaluation options using the option-flags syntax. <code>#pragma jexl.options "+strict -safe +lexical +lexicalShade"</code> will let the script run with the options strict being true, safe false, lexical true and lexical-shade true.</p> - + <p> <b>jexl.namespace.<i>ns_prefix</i></b> declares a namespace valid for the script execution lifetime, the value being the fully-qualified namespace class-name. @@ -360,11 +360,11 @@ <code>'Hello world'</code> are equivalent. <p>The escape character is <code>\</code> (backslash). Unicode characters can be used in string literals; - <lu>Unicode escape sequences consist of: + <ul>Unicode escape sequences consist of: <li> a backslash '\' </li> <li>a 'u' </li> <li>4 hexadecimal digits ([0-9],[A-H],[a-h]).</li> - </lu> + </ul> Such sequences represent the UTF-16 encoding of a Unicode character, for example, <code>'a'</code> is equivalent to <code>'\u0061'</code>. </p>
