Skip to content

Commit

Permalink
Linting (lucee#1098)
Browse files Browse the repository at this point in the history
* format paragraphs
  • Loading branch information
zspitzer authored Apr 1, 2021
1 parent 20ebd43 commit f3048a2
Show file tree
Hide file tree
Showing 113 changed files with 415 additions and 187 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ server/server-luceedocslocalserver.json
server-luceedocsbuilder.json
.commandbox
server/performance.log
/commandbox-luceedocslocalserver
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
The name of the function to run when the page loads. The specified function does not take a parameter.
The name of the function to run when the page loads.

The specified function does not take a parameter.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Character or multicharacter string to separate list elements. The default value is comma.
Character or multicharacter string to separate list elements.

The default value is comma.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
define if the functions throws an exception when the element does not exist (default is false).
define if the functions throws an exception when the element does not exist.

Default is false.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
define if the functions throws an exception when the element does not exist (default is false).
define if the functions throws an exception when the element does not exist.

Default is false.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
specifies whether the function should throw an exception if a cache connection with that name already exists (default is true)
specifies whether the function should throw an exception if a cache connection with that name already exists.

Default is true.
6 changes: 5 additions & 1 deletion docs/03.reference/01.functions/dateconvert/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ description: Converts a date to the given locale.

Converts a date to the given locale.

>>>> This function only exists for compatibility reasons and should not be used. The timezone is not part of the datetime object. The function simply add/subtracts the time between the local time and the UTC from the date Object.
>>>> This function only exists for compatibility reasons and should not be used.
The timezone is not part of the datetime object.

The function simply add/subtracts the time between the local time and the UTC from the date Object.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Delete content of the directory. Default is false.
Delete content of the directory.

Default is false.
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
If set to true, canonicalization happens before encoding. If set to false, the given input string will just be encoded. The default value for canonicalize is false. When this parameter is not specified, canonicalization will not happen. By default, when canonicalization is performed, both mixed and multiple encodings will be allowed. To use any other combinations you should canonicalize using canonicalize method and then do encoding.
If set to true, canonicalization happens before encoding.

If set to false, the given input string will just be encoded.

The default value for canonicalize is false.

When this parameter is not specified, canonicalization will not happen.

By default, when canonicalization is performed, both mixed and multiple encodings will be allowed.

To use any other combinations you should canonicalize using canonicalize method and then do encoding.
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
If set to true, canonicalization happens before encoding. If set to false, the given input string will just be encoded. The default value for canonicalize is false. When this parameter is not specified, canonicalization will not happen. By default, when canonicalization is performed, both mixed and multiple encodings will be allowed. To use any other combinations you should canonicalize using canonicalize method and then do encoding.
If set to true, canonicalization happens before encoding.

If set to false, the given input string will just be encoded.

The default value for canonicalize is false. When this parameter is not specified, canonicalization will not happen.

By default, when canonicalization is performed, both mixed and multiple encodings will be allowed.

To use any other combinations you should canonicalize using canonicalize method and then do encoding.
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
If set to true, canonicalization happens before encoding. If set to false, the given input string will just be encoded. The default value for canonicalize is false. When this parameter is not specified, canonicalization will not happen. By default, when canonicalization is performed, both mixed and multiple encodings will be allowed. To use any other combinations you should canonicalize using canonicalize method and then do encoding.
If set to true, canonicalization happens before encoding.

If set to false, the given input string will just be encoded.

The default value for canonicalize is false.

When this parameter is not specified, canonicalization will not happen.

By default, when canonicalization is performed, both mixed and multiple encodings will be allowed.

To use any other combinations you should canonicalize using canonicalize method and then do encoding.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
If set to true, canonicalization happens before encoding. If set to false, the given input string will just be encoded. The default value for canonicalize is false.
If set to true, canonicalization happens before encoding.

When this parameter is not specified, canonicalization will not happen. By default, when canonicalization is performed, both mixed and multiple encodings will be allowed.
If set to false, the given input string will just be encoded.

The default value for canonicalize is false.

When this parameter is not specified, canonicalization will not happen.

By default, when canonicalization is performed, both mixed and multiple encodings will be allowed.

To use any other combinations you should canonicalize using canonicalize method and then do encoding.
4 changes: 3 additions & 1 deletion docs/03.reference/01.functions/fileseek/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ categories:
- files
---

Shifts the file pointer to the given position. The file must be opened with seekable option
Shifts the file pointer to the given position.

The file must be opened with seekable option
5 changes: 3 additions & 2 deletions docs/03.reference/01.functions/find/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ categories:
- string
---

Finds the first occurrence of a substring in a string, from a
specified start position. The search is case-sensitive.
Finds the first occurrence of a substring in a string, from a specified start position.

The search is case-sensitive.
8 changes: 5 additions & 3 deletions docs/03.reference/01.functions/findnocase/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ categories:
- string
---

Finds the first occurrence of a substring in a string, from a
specified start position. If substring is not in string,
returns zero. The search is case-insensitive.
Finds the first occurrence of a substring in a string, from a specified start position.

If substring is not in string, returns zero.

The search is case-insensitive.
6 changes: 3 additions & 3 deletions docs/03.reference/01.functions/findoneof/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ categories:
- string
---

Finds the first occurrence of any one of a set of characters
in a string, from a specified start position. The search is
case-sensitive.
Finds the first occurrence of any one of a set of characters in a string, from a specified start position.

The search is case-sensitive.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ A datetime object is independent of a specific timezone; it is only an offset in

The timezone only comes into play when you need specific information like hours in a day, minutes in a hour or which day it is as these calculations depend on the timezone.

A timezone must be specified in order to translate the date object to something else. If you do not provide the timezone in the function call, it will default to the timezone specified in the Lucee Administrator (Settings/Regional), or the timezone specified for the current request using the function [[function-setTimezone|setTimezone()]].
A timezone must be specified in order to translate the date object to something else.

If you do not provide the timezone in the function call, it will default to the timezone specified in the Lucee Administrator (Settings/Regional), or the timezone specified for the current request using the function [[function-setTimezone|setTimezone()]].

You can find a list of all available timezones in the Lucee administrator (Settings/Regional). Some examples of valid timezones include:

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
If true then only data members from this scope are returned (no functions), default is false. Calling this function and passing `true` is equivalent to calling `getApplicationMetaData()`
If true then only data members from this scope are returned (no functions), default is false.

Calling this function and passing `true` is equivalent to calling `getApplicationMetaData()`
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Number of ancestor levels to jump before returning data. The default value is 1 (closest ancestor).
Number of ancestor levels to jump before returning data.

The default value is 1 (closest ancestor).
8 changes: 7 additions & 1 deletion docs/03.reference/01.functions/getfreespace/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ description: Returns the number of unallocated bytes in the partition named by t

Returns the number of unallocated bytes in the partition named by this abstract path name.

The returned number of unallocated bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of unallocated bytes is most likely to be accurate immediately after this call. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this virtual machine. This method makes no guarantee that write operations to this file system will succeed.
The returned number of unallocated bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes.

The number of unallocated bytes is most likely to be accurate immediately after this call.

It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this virtual machine.

This method makes no guarantee that write operations to this file system will succeed.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
You would like to retrieve the body of the request as well (true or false). Default is true.
You would like to retrieve the body of the request as well (true or false).

Default is true.
6 changes: 5 additions & 1 deletion docs/03.reference/01.functions/hmac/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ categories:
description: 'Creates a hash-based message authentication code (HMAC) '
---

Creates a hash-based message authentication code (HMAC) for the given message combined with a given secret key using an optional algorithm and encoding. HMACs are used to verify the data integrity and authenticity of a transmitted message. The hash function used by the HMAC function depends on the algorithm specified.
Creates a hash-based message authentication code (HMAC) for the given message combined with a given secret key using an optional algorithm and encoding.

HMACs are used to verify the data integrity and authenticity of a transmitted message.

The hash function used by the HMAC function depends on the algorithm specified.
4 changes: 3 additions & 1 deletion docs/03.reference/01.functions/imagegetblob/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ categories:
- image
---

Retrieves the bytes of the underlying image. The bytes are in the same image format as the source image.
Retrieves the bytes of the underlying image.

The bytes are in the same image format as the source image.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ categories:
- image
---

Sets the background color for the image. The background color is used for clearing a region. Setting the background color only affects the subsequent ImageClearRect calls
Sets the background color for the image.

The background color is used for clearing a region.

Setting the background color only affects the subsequent ImageClearRect calls
4 changes: 2 additions & 2 deletions docs/03.reference/01.functions/inputbasen/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ categories:
- number
---

Converts string, using the base specified by radix, to an
integer. For example: #InputBaseN("3ff",16)#
Converts string, using the base specified by radix, to an integer.
For example: #InputBaseN("3ff",16)#
6 changes: 3 additions & 3 deletions docs/03.reference/01.functions/insert/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ categories:
- string
---

Inserts a substring in a string after a specified character
position. If position = 0, prefixes the substring to the
string.
Inserts a substring in a string after a specified character position.

If position = 0, prefixes the substring to the string.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
The pathname of the file to be checked. The pathname can be absolute or relative to the CFM page and must be enclosed in quotation marks.
The pathname of the file to be checked.

The pathname can be absolute or relative to the CFM page and must be enclosed in quotation marks.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ specifying whether the delimiters parameter specifies a multi-character delimite

If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters.

This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
This parameter enables the [[function-ListToArray]] function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
specifying whether the delimiters parameter specifies a multi-character delimiter. If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters. This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
specifying whether the delimiters parameter specifies a multi-character delimiter.

If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters.

This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
specifying whether the delimiters parameter specifies a multi-character delimiter. If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters. This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
specifying whether the delimiters parameter specifies a multi-character delimiter.

If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters.

This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
specifying whether the delimiters parameter specifies a multi-character delimiter. If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters. This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
specifying whether the delimiters parameter specifies a multi-character delimiter.

If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters.

This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
specifying whether the delimiters parameter specifies a multi-character delimiter. If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters. This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
specifying whether the delimiters parameter specifies a multi-character delimiter.

If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters.

This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
specifying whether the delimiters parameter specifies a multi-character delimiter. If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters. This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
specifying whether the delimiters parameter specifies a multi-character delimiter.

If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters.

This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
If set to true, empty values are also included. Default is false.
If set to true, empty values are also included.

Default is false.
5 changes: 3 additions & 2 deletions docs/03.reference/01.functions/listvaluecount/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ categories:
- string
---

Counts instances of a specified value in a list. The search is
case-sensitive.
Counts instances of a specified value in a list.

The search is case-sensitive.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ categories:
- string
---

Counts instances of a specified value in a list. The search is
case-insensitive.
Counts instances of a specified value in a list.

The search is case-insensitive.
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
Mask that has to be used for formatting. The function follows Java date time mask. For details, see the Java documentation section [Date and Time Patterns](https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html).
Mask that has to be used for formatting.

The function follows Java date time mask.

For details, see the Java documentation section [Date and Time Patterns](https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html).
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ A datetime object is independent of a specific timezone; it is only an offset in

The timezone only comes into play when you need specific information like hours in a day, minutes in a hour or which day it is as these calculations depend on the timezone.

A timezone must be specified in order to translate the date object to something else. If you do not provide the timezone in the function call, it will default to the timezone specified in the Lucee Administrator (Settings/Regional), or the timezone specified for the current request using the function [[function-setTimezone|setTimezone()]].
A timezone must be specified in order to translate the date object to something else.

If you do not provide the timezone in the function call, it will default to the timezone specified in the Lucee Administrator (Settings/Regional), or the timezone specified for the current request using the function [[function-setTimezone|setTimezone()]].

You can find a list of all available timezones in the Lucee administrator (Settings/Regional). Some examples of valid timezones include:

Expand Down
Loading

0 comments on commit f3048a2

Please sign in to comment.