Skip to content

Commit 4f1506c

Browse files
authored
Merge pull request space-ros#317 from space-ros/add-shellcheck
add shellcheck from our new lint action (space-ros#80)
2 parents 5f6f551 + 5f6d62b commit 4f1506c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/pr.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: ROS 2 Repos Check
44
on:
55
pull_request:
66
branches:
7-
- '*'
7+
- "*"
88

99
jobs:
1010
format_and_validity:
@@ -23,6 +23,13 @@ jobs:
2323
- name: Validate repositories
2424
run: vcs validate --input ros2.repos
2525

26+
lint:
27+
name: Space ROS Lint
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: space-ros/space-ros-lint-action@main
32+
2633
commit_message_standards:
2734
name: Space ROS Commit Message Standards
2835
runs-on: ubuntu-latest

docker/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22

33
# Setup the Space ROS environment
4+
5+
# Tell shellcheck to ignore generated file from ROS build scripts
6+
# shellcheck source=/dev/null
47
source "${SPACEROS_DIR}/setup.bash"
58

69
exec "$@"

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ docker run \
1717
--rm \
1818
-it \
1919
--network host \
20-
--name ${CONTAINER_NAME} \
20+
--name "${CONTAINER_NAME}" \
2121
-e DISPLAY \
2222
-e TERM \
2323
-e QT_X11_NO_MITSHM=1 \

0 commit comments

Comments
 (0)