mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
util: Downgrade ignored errors to warnings.
If the error is ignored it is not important enough - make it a warning instead. From: Mian Luo <mianl@google.com> Change-Id: If2641c3d4e0a4d57fdf04e4570c49be55f526535 Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
parent
2aa9cb9333
commit
f2011e1c76
3 changed files with 10 additions and 8 deletions
12
Makefile
12
Makefile
|
|
@ -440,12 +440,12 @@ lint:
|
|||
shellcheck -x test/others/crit/*.sh test/others/criu-coredump/*.sh
|
||||
shellcheck -x test/others/config-file/*.sh
|
||||
codespell -S tags
|
||||
# Do not append \n to pr_perror or fail
|
||||
! git --no-pager grep -E '^\s*\<(pr_perror|fail)\>.*\\n"'
|
||||
# Do not use %m with pr_perror or fail
|
||||
! git --no-pager grep -E '^\s*\<(pr_(err|perror|warn|debug|info|msg)|fail)\>.*%m'
|
||||
# Do not use errno with pr_perror or fail
|
||||
! git --no-pager grep -E '^\s*\<(pr_perror|fail)\>\(".*".*errno'
|
||||
# Do not append \n to pr_perror, pr_pwarn or fail
|
||||
! git --no-pager grep -E '^\s*\<(pr_perror|pr_pwarn|fail)\>.*\\n"'
|
||||
# Do not use %m with pr_* or fail
|
||||
! git --no-pager grep -E '^\s*\<(pr_(err|perror|warn|pwarn|debug|info|msg)|fail)\>.*%m'
|
||||
# Do not use errno with pr_perror, pr_pwarn or fail
|
||||
! git --no-pager grep -E '^\s*\<(pr_perror|pr_pwarn|fail)\>\(".*".*errno'
|
||||
# End pr_(err|warn|msg|info|debug) with \n
|
||||
! git --no-pager grep -En '^\s*\<pr_(err|warn|msg|info|debug)\>.*);$$' | grep -v '\\n'
|
||||
# No EOL whitespace for C files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue