Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add minimal coding guidelines #110

Merged
merged 7 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/contributing/coding-guidelines/.pages
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nav:
- index.md
- Language-specific coding guidelines: languages
- ROS nodes coding guidelines: ros-nodes
- Language-specific guidelines: languages
- ROS nodes guidelines: ros-nodes
9 changes: 9 additions & 0 deletions docs/contributing/coding-guidelines/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@
Under Construction

## Common guidelines

Refer to the following links for now:

- <https://docs.ros.org/en/foxy/Contributing/Developer-Guide.html>
kenji-miyake marked this conversation as resolved.
Show resolved Hide resolved

Also, keep in mind the following concepts.

- Keep things consistent.
- Don't stick to the parts that can't be automated.
kenji-miyake marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 0 additions & 2 deletions docs/contributing/coding-guidelines/languages/.pages
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
nav:
- index.md
- cpp.md
- python.md
- shell-scripts.md
- markdown.md
- cmake.md
- package-xml.md
- ros2-interfaces.md
- docker.md
- github-actions.md
9 changes: 9 additions & 0 deletions docs/contributing/coding-guidelines/languages/cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://docs.ros.org/en/foxy/Contributing/Code-Style-Language-Versions.html#cmake>
kenji-miyake marked this conversation as resolved.
Show resolved Hide resolved

## Use the autoware_package macro

To reduce duplications in CMakeLists.txt, there is the `autoware_package()` macro.
See the [README](https://github.com/autowarefoundation/autoware_common/tree/main/autoware_cmake) and use it in your package.
6 changes: 6 additions & 0 deletions docs/contributing/coding-guidelines/languages/cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://docs.ros.org/en/foxy/Contributing/Code-Style-Language-Versions.html#id1>
kenji-miyake marked this conversation as resolved.
Show resolved Hide resolved
- <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines>
- <https://www.autosar.org/fileadmin/user_upload/standards/adaptive/21-11/AUTOSAR_RS_CPP14Guidelines.pdf>
4 changes: 4 additions & 0 deletions docs/contributing/coding-guidelines/languages/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://github.com/hadolint/hadolint>
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://docs.github.com/en/actions/guides>
5 changes: 0 additions & 5 deletions docs/contributing/coding-guidelines/languages/index.md

This file was deleted.

5 changes: 5 additions & 0 deletions docs/contributing/coding-guidelines/languages/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://docs.ros.org/en/foxy/Contributing/Code-Style-Language-Versions.html#markdown-restructured-text-docblocks>
- <https://github.com/DavidAnson/markdownlint>
5 changes: 5 additions & 0 deletions docs/contributing/coding-guidelines/languages/package-xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://ros.org/reps/rep-0149.html>
- <https://github.com/tier4/pre-commit-hooks-ros#prettier-package-xml>
6 changes: 6 additions & 0 deletions docs/contributing/coding-guidelines/languages/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://docs.ros.org/en/foxy/Contributing/Code-Style-Language-Versions.html#python>
- <https://github.com/psf/black>
- <https://github.com/PyCQA/isort>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://google.github.io/styleguide/shellguide.html>
- <https://github.com/koalaman/shellcheck>
- <https://github.com/mvdan/sh>
1 change: 0 additions & 1 deletion docs/contributing/coding-guidelines/ros-nodes/.pages
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
nav:
- index.md
- class-design.md
- console-logging.md
- coordinate-system.md
Expand Down
5 changes: 0 additions & 5 deletions docs/contributing/coding-guidelines/ros-nodes/index.md

This file was deleted.

5 changes: 5 additions & 0 deletions docs/contributing/discussion-guidelines/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://docs.github.com/en/discussions/guides/best-practices-for-community-conversations-on-github>
- <https://opensource.guide/how-to-contribute/#communicating-effectively>
4 changes: 4 additions & 0 deletions docs/contributing/documentation-guidelines/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://developers.google.com/style>
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
!!! warning

Under Construction

Refer to the following links for now:

- <https://google.github.io/eng-practices/review/>
- <https://docs.gitlab.com/ee/development/code_review.html>
- <https://www.swarmia.com/blog/a-complete-guide-to-code-reviews/>
- <https://rewind.com/blog/best-practices-for-reviewing-pull-requests-in-github/>