From 83e47bd247d49aa28c1ba74e6fe7a517078ea3c5 Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Fri, 16 Aug 2024 23:54:23 +0000 Subject: [PATCH] ci: add integration workflow to check if files end in a newline character --- .github/workflows/integration.yaml | 11 +++++++++++ .linelint.yml | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/integration.yaml create mode 100644 .linelint.yml diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml new file mode 100644 index 000000000..cd481d9a9 --- /dev/null +++ b/.github/workflows/integration.yaml @@ -0,0 +1,11 @@ +name: 🔄 Integration + +on: + pull_request: + +jobs: + linelint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: fernandrone/linelint@0.0.6 diff --git a/.linelint.yml b/.linelint.yml new file mode 100644 index 000000000..75a08500e --- /dev/null +++ b/.linelint.yml @@ -0,0 +1,18 @@ +# 'true' will fix files +autofix: false + +# list of paths to ignore, uses gitignore syntaxes (executes before any rule) +ignore: + - "*.md" + +rules: + # checks if file ends in a newline character + end-of-file: + # set to true to enable this rule + enable: true + + # set to true to disable autofix (if enabled globally) + disable-autofix: false + + # if true also checks if file ends in a single newline character + single-new-line: false