diff --git a/cartographer_ws/.devcontainer/postCreateCommand.sh b/cartographer_ws/.devcontainer/postCreateCommand.sh deleted file mode 100644 index efce9e5b..00000000 --- a/cartographer_ws/.devcontainer/postCreateCommand.sh +++ /dev/null @@ -1,6 +0,0 @@ -sudo apt-get update -sudo rosdep update -# Note: The following commands are commented out to prevent unintended install/builds. -# sudo rosdep install --from-paths src --ignore-src -y -# sudo chown -R user /home/ros2-agv-essentials/ -# colcon build \ No newline at end of file diff --git a/cartographer_ws/docker/cache/.gazebo/.gitkeep b/cartographer_ws/docker/cache/.gazebo/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/husky_ws/.devcontainer/postCreateCommand.sh b/husky_ws/.devcontainer/postCreateCommand.sh deleted file mode 100755 index a6a4f868..00000000 --- a/husky_ws/.devcontainer/postCreateCommand.sh +++ /dev/null @@ -1,6 +0,0 @@ -sudo apt-get update --fix-missing -sudo rosdep update -# Note: The following commands are commented out to prevent unintended install/builds. -# sudo rosdep install --from-paths src --ignore-src --rosdistro humble -y -# sudo chown -R user /home/ros2-agv-essentials/ -# colcon build \ No newline at end of file diff --git a/husky_ws/docker/cache/.gazebo/.gitkeep b/husky_ws/docker/cache/.gazebo/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/kobuki_ws/.devcontainer/postCreateCommand.sh b/kobuki_ws/.devcontainer/postCreateCommand.sh deleted file mode 100755 index efce9e5b..00000000 --- a/kobuki_ws/.devcontainer/postCreateCommand.sh +++ /dev/null @@ -1,6 +0,0 @@ -sudo apt-get update -sudo rosdep update -# Note: The following commands are commented out to prevent unintended install/builds. -# sudo rosdep install --from-paths src --ignore-src -y -# sudo chown -R user /home/ros2-agv-essentials/ -# colcon build \ No newline at end of file diff --git a/kobuki_ws/docker/cache/.gazebo/.gitkeep b/kobuki_ws/docker/cache/.gazebo/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/orbslam3_ws/.devcontainer/postCreateCommand.sh b/orbslam3_ws/.devcontainer/postCreateCommand.sh deleted file mode 100644 index efce9e5b..00000000 --- a/orbslam3_ws/.devcontainer/postCreateCommand.sh +++ /dev/null @@ -1,6 +0,0 @@ -sudo apt-get update -sudo rosdep update -# Note: The following commands are commented out to prevent unintended install/builds. -# sudo rosdep install --from-paths src --ignore-src -y -# sudo chown -R user /home/ros2-agv-essentials/ -# colcon build \ No newline at end of file diff --git a/rtabmap_ws/.devcontainer/postCreateCommand.sh b/rtabmap_ws/.devcontainer/postCreateCommand.sh deleted file mode 100644 index efce9e5b..00000000 --- a/rtabmap_ws/.devcontainer/postCreateCommand.sh +++ /dev/null @@ -1,6 +0,0 @@ -sudo apt-get update -sudo rosdep update -# Note: The following commands are commented out to prevent unintended install/builds. -# sudo rosdep install --from-paths src --ignore-src -y -# sudo chown -R user /home/ros2-agv-essentials/ -# colcon build \ No newline at end of file diff --git a/rtabmap_ws/docker/cache/.gazebo/.gitkeep b/rtabmap_ws/docker/cache/.gazebo/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/lint_filenames.py b/tests/lint_filenames.py index dbec8cf5..06860f84 100644 --- a/tests/lint_filenames.py +++ b/tests/lint_filenames.py @@ -34,6 +34,20 @@ # Ref: https://docs.docker.com/compose/compose-file/04-version-and-name/#version-top-level-element-optional raise ValueError(f"`version` should not exist since it's obsolete: '{filename}'") +# Check if all obsolete files do not exist +OBSOLETE_FILES = [ + "docker/cache/.gazebo/.gitkeep", + "docker/compose.yml", + "docker/docker-compose.yaml", + "docker/docker-compose.yml", + ".devcontainer/postCreateCommand.sh", +] +for filename in OBSOLETE_FILES: + print(f"Checking non-existence of: '{filename}'...") + for workspace_path in glob.glob(f"{repo_dir}/*_ws"): + if os.path.isfile(f"{workspace_path}/{filename}"): + raise ValueError(f"'{filename}' exists in: '{workspace_path}'") + # Check if `master` branch is accidentally used for filename in glob.glob(f"{repo_dir}/.github/workflows/*.yaml", recursive=True): print(f"Checking: '{filename[len(repo_dir)+1:]}'...") diff --git a/vlp_ws/.devcontainer/postCreateCommand.sh b/vlp_ws/.devcontainer/postCreateCommand.sh deleted file mode 100644 index efce9e5b..00000000 --- a/vlp_ws/.devcontainer/postCreateCommand.sh +++ /dev/null @@ -1,6 +0,0 @@ -sudo apt-get update -sudo rosdep update -# Note: The following commands are commented out to prevent unintended install/builds. -# sudo rosdep install --from-paths src --ignore-src -y -# sudo chown -R user /home/ros2-agv-essentials/ -# colcon build \ No newline at end of file diff --git a/vlp_ws/docker/cache/.gazebo/.gitkeep b/vlp_ws/docker/cache/.gazebo/.gitkeep deleted file mode 100644 index e69de29b..00000000