From 937df3dcd9d0589d0814ff992a0b0cff586771ad Mon Sep 17 00:00:00 2001 From: Ewan Miller Date: Wed, 24 Jul 2024 23:59:41 +0100 Subject: [PATCH 1/5] Update README.md to include cpp linter badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7c01b9c..73fa0c5 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ nuTens is a software library which uses [tensors](https://en.wikipedia.org/wiki/ [![CI badge](https://github.com/ewanwm/nuTens/actions/workflows/CI-build-and-test.yml/badge.svg)](https://github.com/ewanwm/nuTens/actions/workflows/CI-build-and-test.yml) [![Code - Doxygen](https://img.shields.io/badge/Code-Doxygen-2ea44f)](https://ewanwm.github.io/nuTens/index.html) [![test - coverage](https://codecov.io/github/ewanwm/nuTens/graph/badge.svg?token=PJ8C8CX37O)](https://codecov.io/github/ewanwm/nuTens) +[![cpp - linter](https://github.com/ewanwm/nuTens/actions/workflows/cpp-linter.yaml/badge.svg)](https://github.com/ewanwm/nuTens/actions/workflows/cpp-linter.yaml/cpp-linter.yml) + ## Installation ### Requirements From 64e9a45eb2f8029d397aab8451c9885a33c364c9 Mon Sep 17 00:00:00 2001 From: Ewan Miller Date: Thu, 25 Jul 2024 00:15:38 +0100 Subject: [PATCH 2/5] Update cpp-linter.yaml --- .github/workflows/cpp-linter.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cpp-linter.yaml b/.github/workflows/cpp-linter.yaml index 9cc1c86..b58be6b 100644 --- a/.github/workflows/cpp-linter.yaml +++ b/.github/workflows/cpp-linter.yaml @@ -18,6 +18,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: style: file + format-review: true files-changed-only: false thread-comments: false From bda6f50527c9ef693070462313c3dcd715c49848 Mon Sep 17 00:00:00 2001 From: Ewan Miller Date: Thu, 25 Jul 2024 00:29:02 +0100 Subject: [PATCH 3/5] Update cpp-linter.yaml --- .github/workflows/cpp-linter.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cpp-linter.yaml b/.github/workflows/cpp-linter.yaml index b58be6b..1e199ba 100644 --- a/.github/workflows/cpp-linter.yaml +++ b/.github/workflows/cpp-linter.yaml @@ -19,8 +19,9 @@ jobs: with: style: file format-review: true + tidy-review: true files-changed-only: false - thread-comments: false + thread-comments: true - name: Fail fast?! if: steps.linter.outputs.checks-failed != 0 From 8603da1df2208fe620040167fe3dafe20cd5eb13 Mon Sep 17 00:00:00 2001 From: Ewan Miller Date: Thu, 25 Jul 2024 00:34:50 +0100 Subject: [PATCH 4/5] Update cpp-linter.yaml --- .github/workflows/cpp-linter.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cpp-linter.yaml b/.github/workflows/cpp-linter.yaml index 1e199ba..57f3d62 100644 --- a/.github/workflows/cpp-linter.yaml +++ b/.github/workflows/cpp-linter.yaml @@ -8,6 +8,7 @@ on: jobs: cpp-linter: + permissions: write-all runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 9c28b9963cfc642d062b756d299e32fee8c33b06 Mon Sep 17 00:00:00 2001 From: Ewan Miller Date: Thu, 25 Jul 2024 00:42:06 +0100 Subject: [PATCH 5/5] Update cpp-linter.yaml --- .github/workflows/cpp-linter.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpp-linter.yaml b/.github/workflows/cpp-linter.yaml index 57f3d62..da26cb9 100644 --- a/.github/workflows/cpp-linter.yaml +++ b/.github/workflows/cpp-linter.yaml @@ -18,7 +18,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - style: file + ##style: file format-review: true tidy-review: true files-changed-only: false