diff --git a/.clang-format-ignore b/.clang-format-ignore new file mode 100644 index 0000000..1c3914a --- /dev/null +++ b/.clang-format-ignore @@ -0,0 +1,3 @@ +include/pros/* +include/okapi/* +include/display/* diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..a81e10c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,38 @@ +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 + + 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: + 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 + style: "google" + ignore: "*firmware*, *display*, *okapi*, *pros*" 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/*