From 7c8023703d05c2e8096426175491311146b6e567 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 10 Mar 2026 16:34:31 +1000 Subject: [PATCH] pre-commit auto whitespace clean up for props files Enforced 3 hooks for props files: - end-of-file-fixer - mixed-line-ending - trailing-whitespace --- .pre-commit-config.yaml | 6 +++--- main/dbaccess/qa/unoapi/dbaccess.props | 8 ++++---- .../filter/detection/typeDetection/TypeDetection.props | 8 ++++---- main/forms/qa/integration/forms/ListSelection.props | 8 ++++---- main/framework/qa/complex/api_internal/CheckAPI.props | 8 ++++---- .../complex/loadAllDocuments/CheckXComponentLoader.props | 8 ++++---- main/reportdesign/qa/complex/reportdesign/runner.props | 9 ++++----- main/vcl/qa/complex/memCheck/CheckMemoryUsage.props | 8 ++++---- .../persistent_window_states/PersistentWindowTest.props | 8 ++++---- 9 files changed, 35 insertions(+), 36 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e9c91273039..43925554fde 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -56,15 +56,15 @@ repos: description: ensures that links to vcs websites are permalinks - id: end-of-file-fixer description: makes sure files end in a newline and only a newline - files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$ + files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|props|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$ - id: fix-byte-order-marker description: removes UTF-8 byte order marker - id: mixed-line-ending description: replaces or checks mixed line ending - files: \.(asm|asp|bas|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$ + files: \.(asm|asp|bas|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|props|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$ - id: trailing-whitespace description: trims trailing whitespace - files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$ + files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|props|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$ args: [--markdown-linebreak-ext=md] - repo: https://github.com/codespell-project/codespell rev: v2.4.1 diff --git a/main/dbaccess/qa/unoapi/dbaccess.props b/main/dbaccess/qa/unoapi/dbaccess.props index 292da710109..e17a5cfedf9 100644 --- a/main/dbaccess/qa/unoapi/dbaccess.props +++ b/main/dbaccess/qa/unoapi/dbaccess.props @@ -1,5 +1,5 @@ # ************************************************************* -# +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -7,16 +7,16 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# +# # ************************************************************* #properties needed for dbbaccess diff --git a/main/filter/qa/complex/filter/detection/typeDetection/TypeDetection.props b/main/filter/qa/complex/filter/detection/typeDetection/TypeDetection.props index eb971aafd22..7689e5dbf0c 100644 --- a/main/filter/qa/complex/filter/detection/typeDetection/TypeDetection.props +++ b/main/filter/qa/complex/filter/detection/typeDetection/TypeDetection.props @@ -1,5 +1,5 @@ # ************************************************************* -# +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -7,16 +7,16 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# +# # ************************************************************* placeHolder=% diff --git a/main/forms/qa/integration/forms/ListSelection.props b/main/forms/qa/integration/forms/ListSelection.props index 78cdac6c403..fa171cc3b0d 100644 --- a/main/forms/qa/integration/forms/ListSelection.props +++ b/main/forms/qa/integration/forms/ListSelection.props @@ -1,5 +1,5 @@ # ************************************************************* -# +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -7,16 +7,16 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# +# # ************************************************************* ThreadTimeOut=600000 diff --git a/main/framework/qa/complex/api_internal/CheckAPI.props b/main/framework/qa/complex/api_internal/CheckAPI.props index a3c1c1bc96c..74f125dc8ec 100644 --- a/main/framework/qa/complex/api_internal/CheckAPI.props +++ b/main/framework/qa/complex/api_internal/CheckAPI.props @@ -1,5 +1,5 @@ # ************************************************************* -# +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -7,16 +7,16 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# +# # ************************************************************* ParamList=-OutProducer stats.SimpleFileOutProducer -OutputPath /dev/null diff --git a/main/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.props b/main/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.props index 0b39b285c0a..1e8a5a2bca9 100644 --- a/main/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.props +++ b/main/framework/qa/complex/loadAllDocuments/CheckXComponentLoader.props @@ -1,5 +1,5 @@ # ************************************************************* -# +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -7,16 +7,16 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# +# # ************************************************************* FtpAccess=ftp://apitest:apitest@margritte/%2e%2e/share/easyDocTypes diff --git a/main/reportdesign/qa/complex/reportdesign/runner.props b/main/reportdesign/qa/complex/reportdesign/runner.props index 082d2f84a52..f8be3ca1fa6 100644 --- a/main/reportdesign/qa/complex/reportdesign/runner.props +++ b/main/reportdesign/qa/complex/reportdesign/runner.props @@ -1,5 +1,5 @@ # ************************************************************* -# +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -7,16 +7,16 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# +# # ************************************************************* # where to store created documents @@ -40,4 +40,3 @@ SingleTimeOut=300000 # don't start office automatically NoOffice=true - diff --git a/main/vcl/qa/complex/memCheck/CheckMemoryUsage.props b/main/vcl/qa/complex/memCheck/CheckMemoryUsage.props index 7f1e7791d83..c9300ab168b 100644 --- a/main/vcl/qa/complex/memCheck/CheckMemoryUsage.props +++ b/main/vcl/qa/complex/memCheck/CheckMemoryUsage.props @@ -1,5 +1,5 @@ # ************************************************************* -# +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -7,16 +7,16 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# +# # ************************************************************* # the allowed memory increase per exported document: if the memory increase is higher than this number, the test will fail diff --git a/main/vcl/qa/complex/persistent_window_states/PersistentWindowTest.props b/main/vcl/qa/complex/persistent_window_states/PersistentWindowTest.props index 6b244715a1c..38c16810344 100644 --- a/main/vcl/qa/complex/persistent_window_states/PersistentWindowTest.props +++ b/main/vcl/qa/complex/persistent_window_states/PersistentWindowTest.props @@ -1,5 +1,5 @@ # ************************************************************* -# +# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -7,16 +7,16 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# +# # ************************************************************* # test can be long: so increase the time until the test is interrupted