From 7f9a31278d5a3a3efbb181e6bb071e4a5ebcf8bd Mon Sep 17 00:00:00 2001 From: Tiago Ferreira Date: Tue, 4 Apr 2023 02:01:09 +0100 Subject: [PATCH] chore: add workflow to verify EOF (#4661) Co-authored-by: James Maslek --- reviewpad.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reviewpad.yaml b/reviewpad.yaml index 5b0ac391f0d..f9f489b95fc 100644 --- a/reviewpad.yaml +++ b/reviewpad.yaml @@ -53,3 +53,12 @@ workflows: - rule: '!$isDraft() && $hasFileName("pyproject.toml") && !$rule("changes-requirements")' extra-actions: - $warn("The `pyproject.toml` file has been changed. Please make sure that the files `requirements.txt` and `requirements-full.txt` do not need to be updated") + - name: EOF + description: Verify files EOF + always-run: true + if: + # By default, Reviewpad splits each file in the patch using the line feed character (\n or LF). + # This means that if a file has a carriage return character (\r) at the end, it indicates that the file has CRLF line endings instead. + - rule: $hasCodePattern("\r$$") + extra-actions: + - $warn("It looks like you have files with `CRLF` line endings. Please make sure that all files have `LF` line endings")