Skip to content

Commit ed23587

Browse files
authored
Merge pull request ros2#103 from ros2/lint
run doc8 linter
2 parents 671226c + f15f5ae commit ed23587

30 files changed

+99
-99
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
language: python
22
sudo: false
33
install:
4-
- pip install sphinx
4+
- pip install doc8 sphinx
55
script:
66
- make html 2> stderr.log
77
- cat stderr.log
8+
- doc8 --ignore D001 --ignore-path build
89
# fail the build for any stderr output
910
- if [ -s "stderr.log" ]; then false; fi
1011
notifications:

source/Concepts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
ROS 2 Concepts
2+
ROS 2 Concepts
33
==============
44

55
.. toctree::

source/Concepts/Overview-of-ROS-2-concepts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Quick Overview of Graph Concepts
1414
--------------------------------
1515

1616

17-
* Nodes: A node is an entity that uses ROS to communicate with other nodes.
18-
* Messages: ROS data type used when subscribing or publishing to a topic.
17+
* Nodes: A node is an entity that uses ROS to communicate with other nodes.
18+
* Messages: ROS data type used when subscribing or publishing to a topic.
1919
* Topics: Nodes can publish messages to a topic as well as subscribe to a topic to receive messages.
2020
* Discovery: The automatic process through which nodes determine how to talk to each other.
2121

source/Concepts/ROS-2-Client-Libraries.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Furthermore, having the common core means that maintaining multiple client libra
6060
Language-specific functionality
6161
-------------------------------
6262

63-
Client library concepts that require language-specific features/properties are not implemented in the RCL but instead are implemented in each client library.
63+
Client library concepts that require language-specific features/properties are not implemented in the RCL but instead are implemented in each client library.
6464
For example, threading models used by “spin” functions will have implementations that are specific to the language of the client library.
6565

6666
Demo

source/Contributing/Developer-Guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ For example, everyone should have a PEP8 checker built into their editor to cut
151151

152152
Also where possible, packages should check style as part of their unit tests to help with the automated detection of style issues (see `ament_lint_auto <https://github.com/ament/ament_lint/blob/master/ament_lint_auto/doc/index.rst>`__).
153153

154-
C
154+
C
155155
^
156156

157157
Standard

source/Contributing/Inter-Sphinx-Support.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Examples of intersphinx in action
3939

4040
Links to **source code** can be created as follows:
4141

42-
.. note::
42+
.. note::
4343

4444
Class :class:`vcstools.VcsClient` implements the :meth:`vcstools.VcsClient.checkout` method.
4545

source/Contributing/MISRA-Compliance-Guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This section tries to give guidance about how to integrate ROS2 into a system th
2020
**Relation to other sections of this wiki:**
2121

2222

23-
* The `Quality Guide <Quality-Guide>` summarizes overall techniques and strategies for producing high quality ROS2 packages.
23+
* The `Quality Guide <Quality-Guide>` summarizes overall techniques and strategies for producing high quality ROS2 packages.
2424

2525
What are the MISRA guidelines?
2626
------------------------------

source/Contributing/Migration-Guide.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Before being able to migrate a ROS 1 package to ROS 2 all of its dependencies mu
1414
Migration steps
1515
---------------
1616

17-
.. contents::
17+
.. contents::
1818
:depth: 1
1919
:local:
2020

@@ -76,7 +76,7 @@ Pure Python package
7676
If the ROS 1 package uses CMake only to invoke the ``setup.py`` file and does not contain anything beside Python code (e.g. also no messages, services, etc.) it should be converted into a pure Python package in ROS 2:
7777

7878

79-
*
79+
*
8080
Update or add the build type in the ``package.xml`` file:
8181

8282
.. code-block:: xml
@@ -85,10 +85,10 @@ If the ROS 1 package uses CMake only to invoke the ``setup.py`` file and does no
8585
<build_type>ament_python</build_type>
8686
</export>
8787
88-
*
88+
*
8989
Remove the ``CMakeLists.txt`` file
9090

91-
*
91+
*
9292
Update the ``setup.py`` file to be a standard Python setup script
9393

9494
ROS 2 supports Python 3 only.
@@ -100,7 +100,7 @@ Update the *CMakeLists.txt* to use *ament_cmake*
100100
Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
101101

102102

103-
*
103+
*
104104
Set the build type in the ``package.xml`` file export section:
105105

106106
.. code-block:: xml
@@ -109,7 +109,7 @@ Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
109109
<build_type>ament_cmake</build_type>
110110
</export>
111111
112-
*
112+
*
113113
Replace the ``find_package`` invocation with ``catkin`` and the ``COMPONENTS`` with:
114114

115115
.. code-block:: cmake
@@ -119,14 +119,14 @@ Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
119119
# ...
120120
find_package(componentN REQUIRED)
121121
122-
*
122+
*
123123
Move and update the ``catkin_package`` invocation with:
124124

125125

126-
*
126+
*
127127
Invoke ``ament_package`` instead but **after** all targets have been registered.
128128

129-
*
129+
*
130130
The only valid argument for `ament_package <https://github.com/ament/ament_cmake/blob/master/ament_cmake_core/cmake/core/ament_package.cmake>`__ is ``CONFIG_EXTRAS``.
131131
All other arguments are covered by separate functions which all need to be invoked *before* ``ament_package``:
132132

@@ -137,21 +137,21 @@ Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
137137
*
138138
**TODO document ament_export_interfaces?**
139139

140-
*
140+
*
141141
Replace the invocation of ``add_message_files``, ``add_service_files`` and ``generate_messages`` with `rosidl_generate_interfaces <https://github.com/ros2/rosidl/blob/master/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake>`__.
142142

143143

144-
*
144+
*
145145
The first argument is the ``target_name``.
146146
If you're building just one library it's ``${PROJECT_NAME}``
147147

148-
*
148+
*
149149
Followed by the list of message filenames, relative to the package root.
150150

151151

152152
* If you will be using the list of filenames multiple times, it is recommended to compose a list of message files and pass the list to the function for clarity.
153153

154-
*
154+
*
155155
The final multi-value-keyword argument fpr ``generate_messages`` is ``DEPENDENCIES`` which requires the list of dependent message packages.
156156

157157
.. code-block:: cmake
@@ -161,17 +161,17 @@ Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
161161
DEPENDENCIES std_msgs
162162
)
163163
164-
*
164+
*
165165
Remove any occurrences of the *devel space*.
166166
Related CMake variables like ``CATKIN_DEVEL_PREFIX`` do not exist anymore.
167167

168168

169169
* The ``CATKIN_DEPENDS`` and ``DEPENDS`` arguments are passed to the new function `ament_export_dependencies <https://github.com/ament/ament_cmake/blob/master/ament_cmake_export_dependencies/cmake/ament_export_dependencies.cmake>`__.
170170

171-
*
171+
*
172172
Replace the invocation of ``add_message_files``, ``add_service_files`` and ``generate_messages`` with `rosidl_generate_interfaces <https://github.com/ros2/rosidl/blob/master/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake>`__.
173173

174-
*
174+
*
175175
Remove any occurrences of the *devel space*.
176176
Related CMake variables like ``CATKIN_DEVEL_PREFIX`` do not exist anymore.
177177

@@ -584,7 +584,7 @@ Inside the publishing loop, we use the ``->`` operator to access the ``data`` fi
584584
// msg.data = ss.str();
585585
msg->data = ss.str();
586586
587-
To print a console message, instead of using ``ROS_INFO()``, we use ``RCLCPP_INFO()`` and its various cousins. The key difference is that ``RCLCPP_INFO()`` takes a Logger object as the first argument.
587+
To print a console message, instead of using ``ROS_INFO()``, we use ``RCLCPP_INFO()`` and its various cousins. The key difference is that ``RCLCPP_INFO()`` takes a Logger object as the first argument.
588588

589589
.. code-block:: cpp
590590

source/Contributing/Set-up-a-new-Linux-CI-node.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In short, make sure the jenkins master can ssh into the new node and run docker.
3636

3737
* ``ssh -i ci_ros2_linux_4.pem ubuntu@IPADDRESS``
3838

39-
#.
39+
#.
4040
Run the following commands
4141

4242
.. code-block:: bash
@@ -53,7 +53,7 @@ In short, make sure the jenkins master can ssh into the new node and run docker.
5353
sudo usermod -aG docker jenkins
5454
sudo service docker start
5555
56-
#.
56+
#.
5757
Make sure the jenkins user can run docker
5858

5959
.. code-block:: bash

source/Contributing/Set-up-a-new-macOS-CI-node.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Install JDK for Jenkins.
5757
Easiest way is to type ``java`` at the terminal and let Apple link you to Oracle’s JDK download.
5858
I installed the latest JDK 8 (withholding Java 9 for now).
5959
60-
Install Homebrew following instructions at https://brew.sh
60+
Install Homebrew following instructions at https://brew.sh
6161
6262
Install ``ssh-askpass`` via homebrew
6363
@@ -122,7 +122,7 @@ RTI Connext Specific Instructions
122122
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123123
124124
125-
* The Open Robotics license is here (private repo): https://github.com/osrf/rticonnextdds-src/blob/license/rti_license.dat
125+
* The Open Robotics license is here (private repo): https://github.com/osrf/rticonnextdds-src/blob/license/rti_license.dat
126126
* Open the RTI launcher application
127127
128128
* In the RTI launcher, open the file dialog to choose the license file.

0 commit comments

Comments
 (0)