Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
12 changes: 12 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BasedOnStyle: Mozilla
InsertNewlineAtEOF: true
UseTab: Always
IndentWidth: 4
TabWidth: 4
ColumnLimit: 120
BreakConstructorInitializers: AfterColon
PackConstructorInitializers: Never
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: True
21 changes: 21 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# TODO: Enable the disabled checks.
Checks:
modernize*,
cppcoreguidelines*,
misc*,
google*,
clang-analyzer*,
hicpp*,
performance*,
readability*,
-google-readability-todo,
-hicpp-named-parameter,
-misc-include-cleaner,
-misc-non-private-member-variables-in-classes,
-cppcoreguidelines-avoid-magic-numbers,
-readability-magic-numbers,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
-readability-avoid-const-params-in-decls,
-readability-identifier-length,
-readability-named-parameter,
45 changes: 0 additions & 45 deletions .github/workflows/clang-format.yaml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/clang-tidy.yaml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/code-checks.yaml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/cpp-linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: cpp-linter
on:
pull_request:
branches: [main, dev]
paths: ['**.c', '**.h', '**.cpp', '**.hpp', '**CMakeLists.txt']

jobs:
cpp-linter:
runs-on: ubuntu-24.04
container: ros:humble
permissions:
contents: read
pull-requests: write
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: recursive

- run: git config --system --add safe.directory "$PWD"

- name: Install ATOS
run: |
./setup_atos.sh
shell: bash

- name: Add to PATH
shell: bash
run: |
echo "/github/home/.local/bin/" >> $GITHUB_PATH

- uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: 'file'
tidy-checks: ''
database: "build"
version: 18
# lines-changed-only: true
files-changed-only: false
tidy-review: true
passive-reviews: true
48 changes: 0 additions & 48 deletions .github/workflows/cppcheck.yaml

This file was deleted.

1 change: 1 addition & 0 deletions atos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set(CMAKE_COLOR_MAKEFILE ON)
set(COMPILER_WARNINGS "-Wall -Wextra")
set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_C_COMPILER "clang")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

#Set preprocessor macros depending on used ros version
if ($ENV{ROS_DISTRO} STREQUAL "foxy")
Expand Down
Loading