-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Sergei Shirokov <sergei@Sergeis-Mac-mini.local> Co-authored-by: Sergei Shirokov <sshirokov@malwarebytes.com> Co-authored-by: Pavel Kirienko <pavel.kirienko@gmail.com>
- Loading branch information
1 parent
ee5f1e2
commit 5e652de
Showing
56 changed files
with
5,695 additions
and
600 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,37 @@ | ||
Checks: >- | ||
boost-*, | ||
bugprone-*, | ||
cert-*, | ||
clang-analyzer-*, | ||
cppcoreguidelines-*, | ||
google-*, | ||
hicpp-*, | ||
llvm-*, | ||
misc-*, | ||
modernize-*, | ||
performance-*, | ||
portability-*, | ||
readability-*, | ||
-clang-analyzer-core.uninitialized.Assign, | ||
-cppcoreguidelines-avoid-const-or-ref-data-members, | ||
-cppcoreguidelines-use-default-member-init, | ||
-google-readability-avoid-underscore-in-googletest-name, | ||
-google-readability-todo, | ||
-llvm-header-guard, | ||
-modernize-concat-nested-namespaces, | ||
-modernize-type-traits, | ||
-modernize-use-constraints, | ||
-modernize-use-default-member-init, | ||
-modernize-use-nodiscard, | ||
-readability-avoid-const-params-in-decls, | ||
-readability-identifier-length, | ||
-*-use-trailing-return-type, | ||
-*-named-parameter, | ||
CheckOptions: | ||
- key: readability-function-cognitive-complexity.Threshold | ||
value: '90' | ||
- key: readability-magic-numbers.IgnoredIntegerValues | ||
value: '1;2;3;4;5;8;10;16;20;32;60;64;100;128;256;500;512;1000' | ||
WarningsAsErrors: '*' | ||
HeaderFilterRegex: 'include/libcyphal/.*\.hpp' | ||
FormatStyle: file |
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,79 @@ | ||
name: "libcyphal_sonar" | ||
|
||
on: | ||
push: # Further filtering is done in the jobs. | ||
pull_request: | ||
branches: | ||
- main | ||
- 'issue/*' | ||
|
||
jobs: | ||
sonarcloud: | ||
if: > | ||
contains(github.event.head_commit.message, '#sonar') || | ||
contains(github.ref, '/main') || | ||
contains(github.ref, '/issue/') || | ||
(github.event_name == 'pull_request') | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/opencyphal/toolshed:ts22.4.7 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: get nunavut | ||
run: > | ||
pip install nunavut | ||
- name: Install sonar-scanner and build-wrapper | ||
uses: SonarSource/sonarcloud-github-c-cpp@v2 | ||
- name: Run tests | ||
env: | ||
GTEST_COLOR: yes | ||
run: > | ||
./build-tools/bin/verify.py | ||
--verbose | ||
--online | ||
--no-exceptions | ||
--cpp-standard 14 | ||
--build-flavor Coverage | ||
--toolchain gcc | ||
test | ||
- name: Generate XML coverage report | ||
run: | | ||
cd build | ||
cmake --build . --target test/unittest/coverage.xml | ||
cmake --build . --target docs/examples/coverage.xml | ||
- name: upload-artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Coverage-14-gcc | ||
path: | | ||
build/compile_commands.json | ||
build/*/**/coverage.xml | ||
build/*/**/*-sonarqube.xml | ||
build/*/**/gcovr_html/*.* | ||
if-no-files-found: error | ||
- name: Run sonar-scanner | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: > | ||
sonar-scanner | ||
-X | ||
--define sonar.organization=opencyphal-garage | ||
--define sonar.projectKey=OpenCyphal-Garage_libcyphal | ||
--define sonar.projectName=libcyphal | ||
--define sonar.projectVersion=1.0 | ||
--define sonar.sources=include,test/unittest/sonar.cpp | ||
--define sonar.tests=test/unittest,docs/examples | ||
--define sonar.test.inclusions=test_*.cpp,example_*.cpp | ||
--define sonar.sourceEncoding=UTF-8 | ||
--define sonar.host.url=https://sonarcloud.io | ||
--define sonar.cfamily.ignoreHeaderComments=false | ||
--define sonar.coverage.exclusions="test/unittest/**/*,docs/examples/**/*,**/sonar.cpp" | ||
--define sonar.cpd.exclusions="test/unittest/**/*,docs/examples/**/*,**/sonar.cpp" | ||
--define sonar.cfamily.compile-commands="build/compile_commands.json" | ||
--define sonar.cfamily.reportingCppStandardOverride=c++14 | ||
--define sonar.coverageReportPaths="build/test/unittest/coverage.xml,build/docs/examples/coverage.xml" | ||
--define sonar.issue.ignore.multicriteria=r1 | ||
--define sonar.issue.ignore.multicriteria.r1.ruleKey=cpp:S3230 | ||
--define sonar.issue.ignore.multicriteria.r1.resourceKey=** |
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
![Cyphal](docs/images/html/opencyphal_logo.svg) Cyphal stack in C++ | ||
=================== | ||
|
||
[![Build Status](https://badge.buildkite.com/af844974c06af6406e3b2192d98298b02b30f6ebebb5f8b16c.svg)](https://buildkite.com/uavcan/libcyphal-v1) | ||
[![Build Status](https://github.com/OpenCyphal-Garage/libcyphal/actions/workflows/tests.yml/badge.svg)](https://github.com/OpenCyphal-Garage/libcyphal) | ||
[![Forum](https://img.shields.io/discourse/https/forum.opencyphal.org/users.svg)](https://forum.opencyphal.org) | ||
[![Sonarqube Badge](https://sonarcloud.io/api/project_badges/measure?project=UAVCAN_libuavcan&metric=alert_status)](https://sonarcloud.io/dashboard?id=UAVCAN_libuavcan) | ||
[![Sonarqube Coverage](https://sonarcloud.io/api/project_badges/measure?project=UAVCAN_libuavcan&metric=coverage)](https://sonarcloud.io/dashboard?id=UAVCAN_libuavcan) | ||
[![Sonarqube Badge](https://sonarcloud.io/api/project_badges/measure?project=OpenCyphal-Garage_libcyphal&metric=alert_status)](https://sonarcloud.io/project/overview?id=OpenCyphal-Garage_libcyphal) | ||
[![Sonarqube Coverage](https://sonarcloud.io/api/project_badges/measure?project=OpenCyphal-Garage_libcyphal&metric=coverage)](https://sonarcloud.io/project/overview?id=OpenCyphal-Garage_libcyphal) | ||
[![Documentation](https://img.shields.io/badge/docs-passing-green.svg)](https://opencyphal.org/libcyphal/) | ||
|
||
> **WARNING** libcyphal v1 is not yet complete. This is a work-in-progress. | ||
Portable reference implementation of the [Cyphal protocol stack](https://opencyphal.org) in C++ for embedded systems, Linux, and POSIX-compliant RTOSs. | ||
|
||
Cyphal is a lightweight protocol designed for reliable communication in aerospace and robotic applications over robust vehicular networks. | ||
|
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
Oops, something went wrong.