From 613badc111ec3d71813dc1a80ff5ec2cdfb6ee60 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Sun, 21 May 2023 16:52:40 +0100 Subject: [PATCH] ci: Improve detection of emacs lines --- utils/tests/gitlab-ci-code-linting.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/tests/gitlab-ci-code-linting.yml b/utils/tests/gitlab-ci-code-linting.yml index b4dbc33b1..10a53e021 100644 --- a/utils/tests/gitlab-ci-code-linting.yml +++ b/utils/tests/gitlab-ci-code-linting.yml @@ -94,9 +94,9 @@ emacs-line: stage: .pre image: ubuntu:latest script: - - (! grep -rn --include="*.h" --include="*.cc" "c-file-style:\"gnu\"" ) || - (echo "Found Emacs lines on the above C++ files" && exit 1) - - echo "No Emacs lines found on C++ files" + - (! egrep -rn --include="*.h" --include="*.cc" --include="*.py" "c-file-style:|py-indent-offset:" ) || + (echo "Found Emacs lines on the above C++ / Python files" && exit 1) + - echo "No Emacs lines found on C++ / Python files" timeout: 1h # Spell checking