Skip to content

Commit

Permalink
Travis: Enable warnings, clang-tidy, and noetic build
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Oct 6, 2020
1 parent 04cd003 commit cfb3e8f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
Checks: '-*,
performance-*,
llvm-namespace-comment,
modernize-redundant-void-arg,
modernize-use-nullptr,
modernize-use-default,
modernize-use-override,
modernize-loop-convert,
readability-named-parameter,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-simplify-boolean-expr,
readability-container-size-empty,
readability-identifier-naming,
'
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
CheckOptions:
- key: llvm-namespace-comment.ShortNamespaceLines
value: '10'
- key: llvm-namespace-comment.SpacesBeforeComments
value: '2'
- key: readability-braces-around-statements.ShortStatementLines
value: '2'
# type names
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
# method names
- key: readability-identifier-naming.MethodCase
value: camelBack
...
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ compiler: gcc

env:
global:
- ROS_DISTRO=melodic
- DOCKER_IMAGE=moveit/moveit:master-source
- ROS_DISTRO=noetic
- CXXFLAGS="-Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls"
- WARNINGS_OK=false
matrix:
- TEST="clang-format"
- ROS_DISTRO=melodic
- TEST="clang-format catkin_lint"
- TEST="clang-tidy-fix"
- DOCKER_IMAGE=moveit/moveit:master-source

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

0 comments on commit cfb3e8f

Please sign in to comment.