From cd433ea2f3bae2dfefaac1ca4ab8f914099c4183 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Wed, 8 Nov 2023 15:59:52 +0100 Subject: [PATCH] Require haml-lint to run in CI Also setup haml-lint TODO file --- .github/workflows/tests.yml | 4 ++-- .haml-lint.yml | 1 + .haml-lint_todo.yml | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .haml-lint_todo.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3234ddffc..4143675f3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,7 +39,7 @@ jobs: - name: Run linter run: bundle exec haml-lint app/views/ unit: - needs: linter + needs: [linter, haml-linter] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -50,7 +50,7 @@ jobs: - name: Run unit tests run: bundle exec rake test system: - needs: linter + needs: [linter, haml-linter] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.haml-lint.yml b/.haml-lint.yml index 6704fe70f..d8a9354ec 100644 --- a/.haml-lint.yml +++ b/.haml-lint.yml @@ -1,3 +1,4 @@ +inherits_from: .haml-lint_todo.yml linters: MultilinePipe: enabled: false diff --git a/.haml-lint_todo.yml b/.haml-lint_todo.yml new file mode 100644 index 000000000..a0edd0927 --- /dev/null +++ b/.haml-lint_todo.yml @@ -0,0 +1,7 @@ +# This configuration was generated by +# `haml-lint --auto-gen-config` +# on 2023-11-08 15:22:15 +0000 using Haml-Lint version 0.40.1. +# The point is for the user to remove these configuration records +# one by one as the lints are removed from the code base. +# Note that changes in the inspected code, or installation of new +# versions of Haml-Lint, may require this file to be generated again.