From 1d99afba2d170a855c31a30f91696c6129381eb8 Mon Sep 17 00:00:00 2001 From: Tomoya Fujita Date: Wed, 26 Feb 2025 17:28:50 -0800 Subject: [PATCH 1/2] codespell ROS 2 documentation dictionary support. Signed-off-by: Tomoya Fujita --- codespell.cfg | 3 +++ codespell_dictionary.txt | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 codespell_dictionary.txt diff --git a/codespell.cfg b/codespell.cfg index e34631dee88..3debfca9156 100644 --- a/codespell.cfg +++ b/codespell.cfg @@ -7,6 +7,9 @@ builtin = clear,rare,informal,code # Ignore words listed in this file. ignore-words = codespell_whitelist.txt +# Add ROS 2 custom dictionary file. +dictionary = codespell_dictionary.txt + # Skip checking files in this directory. # This folder is ignored for a couple of reasons. # *-Changelog.rst files are generated by commit history that could include some misspellings, diff --git a/codespell_dictionary.txt b/codespell_dictionary.txt new file mode 100644 index 00000000000..c91e45e5901 --- /dev/null +++ b/codespell_dictionary.txt @@ -0,0 +1,2 @@ +amnet->ament +amemt->ament From 1525285dea604aa766a19f5e7fc1dcf1acb3aa3f Mon Sep 17 00:00:00 2001 From: Tomoya Fujita Date: Sun, 9 Mar 2025 17:12:42 -0700 Subject: [PATCH 2/2] add more ROS specific words in the dictionary. Signed-off-by: Tomoya Fujita --- codespell_dictionary.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/codespell_dictionary.txt b/codespell_dictionary.txt index c91e45e5901..fe5d37686e1 100644 --- a/codespell_dictionary.txt +++ b/codespell_dictionary.txt @@ -1,2 +1,20 @@ amnet->ament amemt->ament +amentt->ament +catikn->catkin +catin->catkin +caktin->catkin +colcno->colcon +colcn->colcon +colcom->colcon +colconb->colcon +colconm->colcon +rosabg->rosbag +rosbagg->rosbag +rosbg->rosbag +rosbg2->rosbag2 +rosbgz->rosbag +rosdist->rosdistro +rosdistr->rosdistro +rosdistroy->rosdistro +rosditro->rosdistro