You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2025/06/13 09:27:01 UTC
(mynewt-core) 04/04: ci: Add coding standards information
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 3bff29cd3e7a417162b461b71a50d615d0d4d274
Author: Szymon Czapracki <sz...@codecoup.pl>
AuthorDate: Thu Jun 12 17:39:58 2025 +0200
ci: Add coding standards information
If the job fails inform about coding standards.
---
.github/workflows/check_compliance.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.github/workflows/check_compliance.yml b/.github/workflows/check_compliance.yml
index c5a15f8aa..81910c0d2 100644
--- a/.github/workflows/check_compliance.yml
+++ b/.github/workflows/check_compliance.yml
@@ -45,11 +45,15 @@ jobs:
shell: bash
run: |
set +e
+ INFO_URL="https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md"
git diff -U0 origin/master...HEAD > diff.patch
clang-format-diff -p1 -style=file < diff.patch > clang-fmt.patch
if [ -s clang-fmt.patch ]; then
echo "Code formatting issues found:"
cat clang-fmt.patch
+ echo ""
+ echo "For formatting guidelines, see:"
+ echo " $INFO_URL"
exit 1
else
echo "All good, no formatting issues."