From 35756ef5f37e1d0f726c7add2bac801e5cd73ce1 Mon Sep 17 00:00:00 2001 From: NotJohnnyTamale <81783950+ABUCKY0@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:10:43 -0500 Subject: [PATCH 1/8] Create lint.yml --- .github/workflows/lint.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..93ccb4b --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,34 @@ +name: Lint + +on: + # Trigger the workflow on push or pull request, + # but only for the main branch + push: + branches: + - main + # Replace pull_request with pull_request_target if you + # plan to use this action with forks, see the Limitations section + pull_request: + branches: + - main + +# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token +permissions: + checks: write + contents: write + +jobs: + run-linters: + name: Run linters + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v3 + + # Install your linters here + + - name: Run linters + uses: wearerequired/lint-action@v2 + with: + clang-format: true From 09a64a0bb0758c475c7fd3569b8a94b194b6c877 Mon Sep 17 00:00:00 2001 From: NotJohnnyTamale <81783950+ABUCKY0@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:12:26 -0500 Subject: [PATCH 2/8] Update lint.yml --- .github/workflows/lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 93ccb4b..a58fe45 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,6 +11,8 @@ on: pull_request: branches: - main + + workflow_dispatch: # Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token permissions: From fbe9aa3eb34354021d98046cb082f18dd1e48af1 Mon Sep 17 00:00:00 2001 From: NotJohnnyTamale <81783950+ABUCKY0@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:16:17 -0500 Subject: [PATCH 3/8] Update lint.yml --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a58fe45..8e158a9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -33,4 +33,4 @@ jobs: - name: Run linters uses: wearerequired/lint-action@v2 with: - clang-format: true + clang_format: true From 19dd4ce962e6675b726d55f99486c549bd87a2d1 Mon Sep 17 00:00:00 2001 From: NotJohnnyTamale <81783950+ABUCKY0@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:20:05 -0500 Subject: [PATCH 4/8] Update lint.yml --- .github/workflows/lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8e158a9..055dda8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -34,3 +34,5 @@ jobs: uses: wearerequired/lint-action@v2 with: clang_format: true + style: "google" + ignore: "*firmware*" From 38a5eecd70c27202a9977aa687808629b18a1b40 Mon Sep 17 00:00:00 2001 From: NotJohnnyTamale <81783950+ABUCKY0@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:52:06 -0500 Subject: [PATCH 5/8] Add More include folders to exclude --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 055dda8..a81e10c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -35,4 +35,4 @@ jobs: with: clang_format: true style: "google" - ignore: "*firmware*" + ignore: "*firmware*, *display*, *okapi*, *pros*" From 04ee8ffbe7bca578963e59f60bf05a5b7e9155f7 Mon Sep 17 00:00:00 2001 From: NotJohnnyTamale <81783950+ABUCKY0@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:57:51 -0500 Subject: [PATCH 6/8] Create .clang-format-ignore --- .clang-format-ignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .clang-format-ignore diff --git a/.clang-format-ignore b/.clang-format-ignore new file mode 100644 index 0000000..7735fed --- /dev/null +++ b/.clang-format-ignore @@ -0,0 +1,2 @@ +include/pros/* +include/okapi/* From af01deb88e04a1b0a7d644ff93f8902461ad97de Mon Sep 17 00:00:00 2001 From: NotJohnnyTamale <81783950+ABUCKY0@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:59:05 -0500 Subject: [PATCH 7/8] Update .clang-format-ignore --- .clang-format-ignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-format-ignore b/.clang-format-ignore index 7735fed..1c3914a 100644 --- a/.clang-format-ignore +++ b/.clang-format-ignore @@ -1,2 +1,3 @@ include/pros/* include/okapi/* +include/display/* From 16d10464a6c5e2ba11ee8bb20164428af283b414 Mon Sep 17 00:00:00 2001 From: NotJohnnyTamale <81783950+ABUCKY0@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:02:08 -0500 Subject: [PATCH 8/8] Create .clang-format-ignore --- include/.clang-format-ignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 include/.clang-format-ignore diff --git a/include/.clang-format-ignore b/include/.clang-format-ignore new file mode 100644 index 0000000..fb9092b --- /dev/null +++ b/include/.clang-format-ignore @@ -0,0 +1,2 @@ +* +!LedLib/*