Skip to content

Commit

Permalink
ci: Add emacs-line job to code-linting
Browse files Browse the repository at this point in the history
  • Loading branch information
edalm committed Nov 11, 2022
1 parent fe15c39 commit db839d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/tests/gitlab-ci-code-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ clang-tidy:
- clang-tidy-errors.log
when: on_failure
timeout: 3h

emacs-line:
stage: code-linting
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"
timeout: 1h

0 comments on commit db839d1

Please sign in to comment.