From efe431934b53848d44811d0bef3219f9d7df78a6 Mon Sep 17 00:00:00 2001
From: github-actions <github-actions@github.com>
Date: Sun, 19 Jan 2025 00:04:22 +0000
Subject: [PATCH] chore: sync files

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
 .clang-format                                 |  7 +-
 .github/dependabot.yaml                       | 11 ++-
 .github/workflows/pre-commit-optional.yaml    |  8 +-
 .github/workflows/semantic-pull-request.yaml  |  4 +
 .../workflows/spell-check-differential.yaml   | 13 +++-
 .github/workflows/sync-files.yaml             | 12 ++-
 .markdown-link-check.json                     |  6 +-
 .markdownlint.yaml                            |  5 ++
 .pre-commit-config-optional.yaml              | 13 +++-
 .pre-commit-config.yaml                       | 76 +++++++++++--------
 .prettierignore                               |  7 +-
 .prettierrc.yaml                              |  4 +
 .yamllint.yaml                                | 13 ++--
 CPPLINT.cfg                                   |  6 ++
 setup.cfg                                     |  4 +
 15 files changed, 129 insertions(+), 60 deletions(-)

diff --git a/.clang-format b/.clang-format
index 82c94e663..cd54eb45d 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,3 +1,7 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 # Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
 Language: Cpp
 BasedOnStyle: Google
@@ -45,6 +49,3 @@ IncludeCategories:
   - Regex: '".*"'
     Priority: 1
     CaseSensitive: true
----
-Language: Json
-BasedOnStyle: llvm
diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml
index 3f3bf243f..8e2d7193a 100644
--- a/.github/dependabot.yaml
+++ b/.github/dependabot.yaml
@@ -1,10 +1,15 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 version: 2
 updates:
   - package-ecosystem: github-actions
     directory: /
+    # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#scheduleinterval
     schedule:
-      interval: daily
+      interval: monthly
     open-pull-requests-limit: 1
     labels:
-      - bot
-      - github-actions
+      - tag:bot
+      - type:github-actions
diff --git a/.github/workflows/pre-commit-optional.yaml b/.github/workflows/pre-commit-optional.yaml
index e754ecab2..3d0867028 100644
--- a/.github/workflows/pre-commit-optional.yaml
+++ b/.github/workflows/pre-commit-optional.yaml
@@ -1,3 +1,7 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 name: pre-commit-optional
 
 on:
@@ -5,10 +9,10 @@ on:
 
 jobs:
   pre-commit-optional:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-22.04
     steps:
       - name: Check out repository
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
         with:
           fetch-depth: 0
 
diff --git a/.github/workflows/semantic-pull-request.yaml b/.github/workflows/semantic-pull-request.yaml
index 71224c224..b56040b08 100644
--- a/.github/workflows/semantic-pull-request.yaml
+++ b/.github/workflows/semantic-pull-request.yaml
@@ -1,3 +1,7 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 name: semantic-pull-request
 
 on:
diff --git a/.github/workflows/spell-check-differential.yaml b/.github/workflows/spell-check-differential.yaml
index eb18ccdba..e3af4327f 100644
--- a/.github/workflows/spell-check-differential.yaml
+++ b/.github/workflows/spell-check-differential.yaml
@@ -1,3 +1,7 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 name: spell-check-differential
 
 on:
@@ -5,12 +9,15 @@ on:
 
 jobs:
   spell-check-differential:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-22.04
     steps:
       - name: Check out repository
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
 
       - name: Run spell-check
         uses: autowarefoundation/autoware-github-actions/spell-check@v1
         with:
-          cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
+          cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
+          dict-packages: |
+            https://github.com/autowarefoundation/autoware-spell-check-dict
+            https://github.com/tier4/cspell-dicts
diff --git a/.github/workflows/sync-files.yaml b/.github/workflows/sync-files.yaml
index b9dc5907a..9224c1503 100644
--- a/.github/workflows/sync-files.yaml
+++ b/.github/workflows/sync-files.yaml
@@ -1,3 +1,7 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 name: sync-files
 
 on:
@@ -14,11 +18,11 @@ jobs:
   sync-files:
     needs: check-secret
     if: ${{ needs.check-secret.outputs.set == 'true' }}
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-22.04
     steps:
       - name: Generate token
         id: generate-token
-        uses: tibdex/github-app-token@v1
+        uses: tibdex/github-app-token@v2
         with:
           app_id: ${{ secrets.APP_ID }}
           private_key: ${{ secrets.PRIVATE_KEY }}
@@ -28,6 +32,6 @@ jobs:
         with:
           token: ${{ steps.generate-token.outputs.token }}
           pr-labels: |
-            bot
-            sync-files
+            tag:bot
+            tag:sync-files
           auto-merge-method: squash
diff --git a/.markdown-link-check.json b/.markdown-link-check.json
index 03b977748..c71a3e425 100644
--- a/.markdown-link-check.json
+++ b/.markdown-link-check.json
@@ -1,9 +1,5 @@
 {
-  "aliveStatusCodes": [
-    200,
-    206,
-    403
-  ],
+  "aliveStatusCodes": [200, 206, 403],
   "ignorePatterns": [
     {
       "pattern": "^http://localhost"
diff --git a/.markdownlint.yaml b/.markdownlint.yaml
index babaaa1f1..584154b20 100644
--- a/.markdownlint.yaml
+++ b/.markdownlint.yaml
@@ -1,3 +1,7 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 # See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md for all rules.
 default: true
 MD013: false
@@ -7,5 +11,6 @@ MD029:
   style: ordered
 MD033: false
 MD041: false
+MD045: false
 MD046: false
 MD049: false
diff --git a/.pre-commit-config-optional.yaml b/.pre-commit-config-optional.yaml
index 3b43f9ae1..f0b5bdba2 100644
--- a/.pre-commit-config-optional.yaml
+++ b/.pre-commit-config-optional.yaml
@@ -1,6 +1,17 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
+# https://pre-commit.ci/#configuration
+ci:
+  autofix_commit_msg: "style(pre-commit-optional): autofix"
+  # we already have our own daily update mechanism, we set this to quarterly
+  autoupdate_schedule: quarterly
+  autoupdate_commit_msg: "ci(pre-commit-optional): quarterly autoupdate"
+
 repos:
   - repo: https://github.com/tcort/markdown-link-check
-    rev: v3.11.2
+    rev: v3.12.2
     hooks:
       - id: markdown-link-check
         args: [--quiet, --config=.markdown-link-check.json]
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ad9c1757e..48a97c13e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,17 +1,24 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
+# https://pre-commit.ci/#configuration
 ci:
-  autofix_commit_msg: "ci(pre-commit): autofix"
-  autoupdate_commit_msg: "ci(pre-commit): autoupdate"
+  autofix_commit_msg: "style(pre-commit): autofix"
+  # we already have our own daily update mechanism, we set this to quarterly
+  autoupdate_schedule: quarterly
+  autoupdate_commit_msg: "ci(pre-commit): quarterly autoupdate"
 
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.6.0
+    rev: v5.0.0
     hooks:
       - id: check-json
       - id: check-merge-conflict
       - id: check-toml
       - id: check-xml
       - id: check-yaml
-        args: [--allow-multiple-documents]
+        args: [--unsafe]
       - id: detect-private-key
       - id: end-of-file-fixer
       - id: mixed-line-ending
@@ -19,13 +26,13 @@ repos:
         args: [--markdown-linebreak-ext=md]
 
   - repo: https://github.com/igorshubovych/markdownlint-cli
-    rev: v0.40.0
+    rev: v0.43.0
     hooks:
       - id: markdownlint
         args: [-c, .markdownlint.yaml, --fix]
 
   - repo: https://github.com/pre-commit/mirrors-prettier
-    rev: v3.1.0
+    rev: v4.0.0-alpha.8
     hooks:
       - id: prettier
 
@@ -35,9 +42,13 @@ repos:
       - id: yamllint
 
   - repo: https://github.com/tier4/pre-commit-hooks-ros
-    rev: v0.8.0
+    rev: v0.10.0
     hooks:
+      - id: flake8-ros
+      - id: prettier-xacro
+      - id: prettier-launch-xml
       - id: prettier-package-xml
+      - id: ros-include-guard
       - id: sort-package-xml
 
   - repo: https://github.com/shellcheck-py/shellcheck-py
@@ -46,7 +57,7 @@ repos:
       - id: shellcheck
 
   - repo: https://github.com/scop/pre-commit-shfmt
-    rev: v3.8.0-1
+    rev: v3.10.0-2
     hooks:
       - id: shfmt
         args: [-w, -s, -i=4]
@@ -57,39 +68,42 @@ repos:
       - id: isort
 
   - repo: https://github.com/psf/black
-    rev: 24.4.2
+    rev: 24.10.0
     hooks:
       - id: black
         args: [--line-length=100]
 
-  - repo: https://github.com/PyCQA/flake8
-    rev: 7.0.0
-    hooks:
-      - id: flake8
-        additional_dependencies:
-          [
-            flake8-blind-except,
-            flake8-builtins,
-            flake8-class-newline,
-            flake8-comprehensions,
-            flake8-deprecated,
-            flake8-docstrings,
-            flake8-import-order,
-            flake8-quotes,
-          ]
-
   - repo: https://github.com/pre-commit/mirrors-clang-format
-    rev: v18.1.5
+    rev: v19.1.5
     hooks:
       - id: clang-format
+        types_or: [c++, c, cuda]
 
   - repo: https://github.com/cpplint/cpplint
-    rev: 1.6.1
+    rev: 2.0.0
     hooks:
       - id: cpplint
-        # runtime/arrays uses the name of the variable to determine const-ness.
-        # This does not play well with our naming conventions
-        args: [--quiet, --filter=-runtime/arrays]
+        args: [--quiet]
         exclude: .cu
 
-exclude: .svg
+  - repo: https://github.com/python-jsonschema/check-jsonschema
+    rev: 0.30.0
+    hooks:
+      - id: check-metaschema
+        files: ^.+/schema/.*schema\.json$
+
+  - repo: local
+    hooks:
+      - id: prettier-svg
+        name: prettier svg
+        description: Apply Prettier with plugin-xml to svg.
+        entry: prettier --write --list-different --ignore-unknown --print-width 200 --xml-self-closing-space false --xml-whitespace-sensitivity ignore
+        language: node
+        files: .svg$
+        additional_dependencies: [prettier@2.7.1, "@prettier/plugin-xml@2.2.0"]
+
+  - repo: https://github.com/AleksaC/hadolint-py
+    rev: v2.12.1b3
+    hooks:
+      - id: hadolint
+        exclude: .svg$
diff --git a/.prettierignore b/.prettierignore
index 21c2dd9fd..3e96aaceb 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,3 +1,6 @@
-*.yaml
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
+*.param.yaml
 *.rviz
-*.json
diff --git a/.prettierrc.yaml b/.prettierrc.yaml
index e29bf3276..fe476936f 100644
--- a/.prettierrc.yaml
+++ b/.prettierrc.yaml
@@ -1,3 +1,7 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 printWidth: 100
 tabWidth: 2
 overrides:
diff --git a/.yamllint.yaml b/.yamllint.yaml
index 7837bfe0a..e0be62dbc 100644
--- a/.yamllint.yaml
+++ b/.yamllint.yaml
@@ -1,5 +1,12 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 extends: default
 
+ignore: |
+  *.param.yaml
+
 rules:
   braces:
     level: error
@@ -10,8 +17,6 @@ rules:
   document-start:
     level: error
     present: false # Don't need document start markers
-    ignore:
-      - .clang-format # Needs '---' between languages
   line-length: disable # Delegate to Prettier
   truthy:
     level: error
@@ -19,7 +24,3 @@ rules:
   quoted-strings:
     level: error
     required: only-when-needed # To keep consistent style
-  indentation:
-    spaces: consistent
-    indent-sequences: true
-    check-multi-line-strings: false
diff --git a/CPPLINT.cfg b/CPPLINT.cfg
index ba6bdf08c..159042dba 100644
--- a/CPPLINT.cfg
+++ b/CPPLINT.cfg
@@ -1,12 +1,18 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 # Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_cpplint/ament_cpplint/main.py#L64-L120
 set noparent
 linelength=100
 includeorder=standardcfirst
 filter=-build/c++11               # we do allow C++11
+filter=-build/c++17               # we allow <filesystem>
 filter=-build/namespaces_literals # we allow using namespace for literals
 filter=-runtime/references        # we consider passing non-const references to be ok
 filter=-whitespace/braces         # we wrap open curly braces for namespaces, classes and functions
 filter=-whitespace/indent         # we don't indent keywords like public, protected and private with one space
+filter=-whitespace/newline        # we allow the developer to decide about newline at the end of file (it's clashing with clang-format)
 filter=-whitespace/parens         # we allow closing parenthesis to be on the next line
 filter=-whitespace/semicolon      # we allow the developer to decide about whitespace after a semicolon
 filter=-build/header_guard        # we automatically fix the names of header guards using pre-commit
diff --git a/setup.cfg b/setup.cfg
index 5214751c7..4d7d5e5b9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,7 @@
+# This file is automatically synced from:
+# https://github.com/autowarefoundation/sync-file-templates
+# To make changes, update the source repository and follow the guidelines in its README.
+
 [flake8]
 # Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_flake8/ament_flake8/configuration/ament_flake8.ini
 extend-ignore = B902,C816,D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404,I202,CNL100,E203,E501,Q000