mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
Whitespace at EOL cleanup and check
My editor (vim) auto-removes whitespace at EOL for *.c and *.h files, and I think it makes sense to have a separate commit for this, rather than littering other commits with such changes. To make sure this won't pile up again, add a line to Makefile under the linter target to check for such things (so CI will fail). This is all whitespace except an addition to Makefile. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
7ea20e8f5a
commit
96b7178bab
2
Makefile
2
Makefile
@ -411,6 +411,8 @@ lint:
|
||||
! git --no-pager grep -E '^\s*\<(pr_perror|fail)\>.*%m'
|
||||
# Do not use errno with pr_perror or fail
|
||||
! git --no-pager grep -E '^\s*\<(pr_perror|fail)\>\(".*".*errno'
|
||||
# No EOL whitespace for C files
|
||||
! git --no-pager grep -E '\s+$$' \*.c \*.h
|
||||
.PHONY: lint
|
||||
|
||||
codecov: SHELL := $(shell which bash)
|
||||
|
Loading…
x
Reference in New Issue
Block a user