-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating lint files, readme, and API
Signed-off-by: Aaron Chong <[email protected]>
- Loading branch information
1 parent
0fa0b40
commit 7f33cc5
Showing
13 changed files
with
151 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# -*- yaml -*- | ||
|
||
# Taken from RobotLocomotion/drake @ 73925c7eb71361e2e97601af4182ba54072d192a | ||
# This file determines clang-format's style settings; for details, refer to | ||
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
|
||
BasedOnStyle: Google | ||
|
||
Language: Cpp | ||
|
||
# Force pointers to the type for C++. | ||
DerivePointerAlignment: false | ||
PointerAlignment: Left | ||
|
||
# Specify the #include statement order. This implements the order mandated by | ||
# the Google C++ Style Guide: related header, C headers, C++ headers, library | ||
# headers, and finally the project headers. | ||
# | ||
# To obtain updated lists of system headers used in the below expressions, see: | ||
# http://stackoverflow.com/questions/2027991/list-of-standard-header-files-in-c-and-c/2029106#2029106. | ||
IncludeCategories: | ||
# Spacers used by drake/tools/formatter.py. | ||
- Regex: '^<clang-format-priority-15>$' | ||
Priority: 15 | ||
- Regex: '^<clang-format-priority-25>$' | ||
Priority: 25 | ||
- Regex: '^<clang-format-priority-35>$' | ||
Priority: 35 | ||
- Regex: '^<clang-format-priority-45>$' | ||
Priority: 45 | ||
# C system headers. | ||
- Regex: '^[<"](aio|arpa/inet|assert|complex|cpio|ctype|curses|dirent|dlfcn|errno|fcntl|fenv|float|fmtmsg|fnmatch|ftw|glob|grp|iconv|inttypes|iso646|langinfo|libgen|limits|locale|math|monetary|mqueue|ndbm|netdb|net/if|netinet/in|netinet/tcp|nl_types|poll|pthread|pwd|regex|sched|search|semaphore|setjmp|signal|spawn|stdalign|stdarg|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|strings|stropts|sys/ipc|syslog|sys/mman|sys/msg|sys/resource|sys/select|sys/sem|sys/shm|sys/socket|sys/stat|sys/statvfs|sys/time|sys/times|sys/types|sys/uio|sys/un|sys/utsname|sys/wait|tar|term|termios|tgmath|threads|time|trace|uchar|ulimit|uncntrl|unistd|utime|utmpx|wchar|wctype|wordexp)\.h[">]$' | ||
Priority: 20 | ||
# C++ system headers (as of C++17). | ||
- Regex: '^[<"](algorithm|any|array|atomic|bitset|cassert|ccomplex|cctype|cerrno|cfenv|cfloat|charconv|chrono|cinttypes|ciso646|climits|clocale|cmath|codecvt|complex|condition_variable|csetjmp|csignal|cstdalign|cstdarg|cstdbool|cstddef|cstdint|cstdio|cstdlib|cstring|ctgmath|ctime|cuchar|cwchar|cwctype|deque|exception|execution|filesystem|forward_list|fstream|functional|future|initializer_list|iomanip|ios|iosfwd|iostream|istream|iterator|limits|list|locale|map|memory|memory_resource|mutex|new|numeric|optional|ostream|queue|random|ratio|regex|scoped_allocator|set|shared_mutex|sstream|stack|stdexcept|streambuf|string|string_view|strstream|system_error|thread|tuple|type_traits|typeindex|typeinfo|unordered_map|unordered_set|utility|valarray|variant|vector)[">]$' | ||
Priority: 30 | ||
# Other libraries' h files (with angles). | ||
- Regex: '^<' | ||
Priority: 40 | ||
# Your project's h files. | ||
- Regex: '^"drake_ros_examples' | ||
Priority: 50 | ||
# Other libraries' h files (with quotes). | ||
- Regex: '^"' | ||
Priority: 40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Taken from RobotLocomotion/drake @ 73925c7eb71361e2e97601af4182ba54072d192a | ||
# | ||
# Copyright 2016 Robot Locomotion Group @ CSAIL. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without modification, | ||
# are permitted provided that the following conditions are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# 3. Neither the name of the copyright holder nor the names of its contributors | ||
# may be used to endorse or promote products derived from this software without | ||
# specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT | ||
# SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT | ||
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
# Stop searching for additional config files. | ||
set noparent | ||
|
||
# Disable a warning about C++ features that were not in the original | ||
# C++11 specification (and so might not be well-supported). In the | ||
# case of Drake, our supported minimum platforms are new enough that | ||
# this warning is irrelevant. | ||
filter=-build/c++11 | ||
|
||
# Drake uses `#pragma once`, not the `#ifndef FOO_H` guard. | ||
# https://drake.mit.edu/styleguide/cppguide.html#The__pragma_once_Guard | ||
filter=-build/header_guard | ||
filter=+build/pragma_once | ||
|
||
# Disable cpplint's include order. We have our own via //tools:drakelint. | ||
filter=-build/include_order | ||
|
||
# TODO(hidmic): uncomment when ament_cpplint updates its vendored cpplint | ||
# version to support the following filters. Also remove corresponding NOLINT | ||
# codetags in sources. | ||
## Allow private, sibling include files. | ||
#filter=-build/include_subdir | ||
|
||
# We do not care about the whitespace details of a TODO comment. It is not | ||
# relevant for easy grepping, and the GSG does not specify any particular | ||
# whitespace style. (We *do* care what the "TODO(username)" itself looks like | ||
# because GSG forces a particular style there, but that formatting is covered | ||
# by the readability/todo rule, which we leave enabled.) | ||
filter=-whitespace/todo | ||
|
||
# TODO(#1805) Fix this. | ||
filter=-legal/copyright | ||
|
||
# Ignore code that isn't ours. | ||
exclude_files=third_party | ||
|
||
# It's not worth lint-gardening the documentation. | ||
exclude_files=doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[pycodestyle] | ||
# This is close to the ignore's that Drake uses, as of | ||
# https://github.com/RobotLocomotion/drake/blob/v0.35.0/tools/lint/python_lint.bzl#L7 | ||
ignore = 'E121,E123,E126,E226,E24,E704,W503' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters