Skip to content

Commit cfb3e8f

Browse files
committedOct 6, 2020
Travis: Enable warnings, clang-tidy, and noetic build
1 parent 04cd003 commit cfb3e8f

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed
 

‎.clang-tidy

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
Checks: '-*,
3+
performance-*,
4+
llvm-namespace-comment,
5+
modernize-redundant-void-arg,
6+
modernize-use-nullptr,
7+
modernize-use-default,
8+
modernize-use-override,
9+
modernize-loop-convert,
10+
readability-named-parameter,
11+
readability-redundant-smartptr-get,
12+
readability-redundant-string-cstr,
13+
readability-simplify-boolean-expr,
14+
readability-container-size-empty,
15+
readability-identifier-naming,
16+
'
17+
HeaderFilterRegex: ''
18+
AnalyzeTemporaryDtors: false
19+
CheckOptions:
20+
- key: llvm-namespace-comment.ShortNamespaceLines
21+
value: '10'
22+
- key: llvm-namespace-comment.SpacesBeforeComments
23+
value: '2'
24+
- key: readability-braces-around-statements.ShortStatementLines
25+
value: '2'
26+
# type names
27+
- key: readability-identifier-naming.ClassCase
28+
value: CamelCase
29+
- key: readability-identifier-naming.EnumCase
30+
value: CamelCase
31+
- key: readability-identifier-naming.UnionCase
32+
value: CamelCase
33+
# method names
34+
- key: readability-identifier-naming.MethodCase
35+
value: camelBack
36+
...

‎.travis.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ compiler: gcc
1111

1212
env:
1313
global:
14-
- ROS_DISTRO=melodic
15-
- DOCKER_IMAGE=moveit/moveit:master-source
14+
- ROS_DISTRO=noetic
15+
- CXXFLAGS="-Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls"
16+
- WARNINGS_OK=false
1617
matrix:
17-
- TEST="clang-format"
18-
- ROS_DISTRO=melodic
18+
- TEST="clang-format catkin_lint"
19+
- TEST="clang-tidy-fix"
20+
- DOCKER_IMAGE=moveit/moveit:master-source
1921

2022
before_install: # Use this to prepare the system to install prerequisites or dependencies
2123
# Define some config vars

0 commit comments

Comments
 (0)
Please sign in to comment.